Class which delegates to a Statement but keeps track of a batch count size. If the batch count reaches the predefined number, this Statement does an executeBatch() automatically. If batchSize is zero, then no batching is performed.
Constructor and description |
---|
BatchingStatementWrapper
(Statement delegate, int batchSize, Logger log) |
Type Params | Return Type | Name 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() |
Methods inherited from class | Name |
---|---|
class GroovyObjectSupport |
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.