public class BatchingStatementWrapper extends GroovyObjectSupport
| Constructor and Description |
|---|
BatchingStatementWrapper(java.sql.Statement delegate,
int batchSize,
java.util.logging.Logger log,
java.sql.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(java.lang.String sql) |
void |
clearBatch() |
void |
close() |
int[] |
executeBatch() |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method.
|
getMetaClass, getProperty, setMetaClass, setPropertypublic BatchingStatementWrapper(java.sql.Statement delegate,
int batchSize,
java.util.logging.Logger log,
java.sql.Connection connection)
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.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(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void clearBatch()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
java.sql.SQLException