groovy.sql
[Java] Class BatchingPreparedStatementWrapper
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.sql.BatchingStatementWrapper
groovy.sql.BatchingPreparedStatementWrapper
public class BatchingPreparedStatementWrapper
extends BatchingStatementWrapper
Class which delegates to a PreparedStatement 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.
- Authors:
- Daniel Henrique Alves Lima
- Paul King
Method Summary |
void
|
addBatch(java.lang.Object[] parameters)
|
void
|
addBatch(java.util.List parameters)
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
BatchingPreparedStatementWrapper
public BatchingPreparedStatementWrapper(java.sql.PreparedStatement delegate, java.util.List indexPropList, int batchSize, java.util.logging.Logger log, Sql sql)
-
addBatch
public void addBatch(java.lang.Object[] parameters)
-
addBatch
public void addBatch(java.util.List parameters)
-
Groovy Documentation