の独自のコールバックを作成する方法を知りたいのですがSqlMapClientTemplate
。具体的には、バッチ呼び出しを実行できるようにします。
1023 次
1 に答える
1
私のやり方は、 SqlMapClientCallback<T>
メソッドをオーバーライドすることdoInSqlMapClient
です。
SqlMapClientCallback<Integer> callback = new SqlMapClientCallback<Integer>() {
public Integer doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
executor.startBatch();
//... do your queries here
return executor.executeBatch();
}
};
于 2010-12-23T17:10:23.910 に答える