groovy.sql
public class BatchingStatementWrapper extends GroovyObjectSupport
| Constructor and Description |
|---|
BatchingStatementWrapper(Statement delegate,
int batchSize,
Logger log,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String sql) |
void |
clearBatch() |
void |
close() |
int[] |
executeBatch() |
Object |
invokeMethod(String name,
Object args)
Invokes the given method.
|
getMetaClass, getProperty, setMetaClass, setPropertypublic BatchingStatementWrapper(Statement delegate, int batchSize, Logger log, Connection connection)
public Object invokeMethod(String name, Object args)
GroovyObjectinvokeMethod in interface GroovyObjectinvokeMethod in class GroovyObjectSupportname - the name of the method to callargs - the arguments to use for the method callpublic void addBatch(String sql) throws SQLException
SQLExceptionpublic void clearBatch()
throws SQLException
SQLExceptionpublic int[] executeBatch()
throws SQLException
SQLExceptionpublic void close()
throws SQLException
SQLException