public class BatchingStatementWrapper
extends groovy.lang.GroovyObjectSupport
| Modifier and Type | Field and Description |
|---|---|
protected int |
batchCount |
protected int |
batchSize |
protected Logger |
log |
protected List<Integer> |
results |
| Constructor and Description |
|---|
BatchingStatementWrapper(Statement delegate,
int batchSize,
Logger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String sql) |
void |
clearBatch() |
void |
close() |
int[] |
executeBatch() |
Object |
invokeMethod(String name,
Object args) |
protected void |
processResult(int[] lastResult) |
protected void |
reset() |
protected int batchSize
protected int batchCount
protected Logger log
protected void reset()
public Object invokeMethod(String name, Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class groovy.lang.GroovyObjectSupportpublic void addBatch(String sql) throws SQLException
SQLExceptionpublic void clearBatch()
throws SQLException
SQLExceptionpublic int[] executeBatch()
throws SQLException
SQLExceptionprotected void processResult(int[] lastResult)
public void close()
throws SQLException
SQLException