java.lang.Object
org.jooq.tools.jdbc.JDBC41Statement
org.jooq.tools.jdbc.DefaultStatement
org.jooq.tools.jdbc.DefaultPreparedStatement
org.jooq.tools.jdbc.BatchedPreparedStatement
- All Implemented Interfaces:
- AutoCloseable,- PreparedStatement,- Statement,- Wrapper
A batched statement.
 
 This statement doesn't execute immediately, but buffers all bind variables in
 batch, delaying execution until a new SQL string is encountered. See
 BatchedConnection for details.
- Author:
- Lukas Eder
- See Also:
- 
Field SummaryFields inherited from interface java.sql.StatementCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
- 
Constructor SummaryConstructorsConstructorDescriptionBatchedPreparedStatement(String sql, BatchedConnection connection, PreparedStatement delegate) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBatch()voidvoidvoidclose()booleanexecute()booleanbooleanbooleanbooleanint[]long[]longlonglongexecuteLargeUpdate(String s, int autoGeneratedKeys) longexecuteLargeUpdate(String s, int[] columnIndexes) longexecuteLargeUpdate(String s, String[] columnNames) intintintexecuteUpdate(String s, int autoGeneratedKeys) intexecuteUpdate(String s, int[] columnIndexes) intexecuteUpdate(String s, String[] columnNames) booleanlongbooleanbooleangetMoreResults(int current) intbooleanisWrapperFor(Class<?> iface) voidsetExecuteImmediate(boolean executeImmediate) <T> TMethods inherited from class org.jooq.tools.jdbc.DefaultPreparedStatementclearParameters, getDelegate, getDelegatePreparedStatement, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from class org.jooq.tools.jdbc.DefaultStatementcancel, clearWarnings, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, getConnection, getDelegateStatement, getFetchDirection, getFetchSize, getLargeMaxRows, getMaxFieldSize, getMaxRows, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, wrapMethods inherited from class org.jooq.tools.jdbc.JDBC41StatementgetObject, getObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Statementcancel, clearWarnings, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, getConnection, getFetchDirection, getFetchSize, getLargeMaxRows, getMaxFieldSize, getMaxRows, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
- 
Constructor Details- 
BatchedPreparedStatementpublic BatchedPreparedStatement(String sql, BatchedConnection connection, PreparedStatement delegate) 
 
- 
- 
Method Details- 
getBatchedConnection- Throws:
- SQLException
 
- 
getExecuteImmediatepublic boolean getExecuteImmediate()
- 
setExecuteImmediatepublic void setExecuteImmediate(boolean executeImmediate) 
- 
unwrap- Specified by:
- unwrapin interface- Wrapper
- Overrides:
- unwrapin class- DefaultStatement
- Throws:
- SQLException
 
- 
isWrapperFor- Specified by:
- isWrapperForin interface- Wrapper
- Overrides:
- isWrapperForin class- DefaultStatement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- PreparedStatement
- Overrides:
- executeUpdatein class- DefaultPreparedStatement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- PreparedStatement
- Overrides:
- executein class- DefaultPreparedStatement
- Throws:
- SQLException
 
- 
getUpdateCount- Specified by:
- getUpdateCountin interface- Statement
- Overrides:
- getUpdateCountin class- DefaultStatement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- PreparedStatement
- Overrides:
- executeLargeUpdatein class- DefaultPreparedStatement
- Throws:
- SQLException
 
- 
getLargeUpdateCount- Specified by:
- getLargeUpdateCountin interface- Statement
- Overrides:
- getLargeUpdateCountin class- DefaultStatement
- Throws:
- SQLException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Statement
- Overrides:
- closein class- DefaultStatement
- Throws:
- SQLException
 
- 
getMoreResults- Specified by:
- getMoreResultsin interface- Statement
- Overrides:
- getMoreResultsin class- DefaultStatement
- Throws:
- SQLException
 
- 
getMoreResults- Specified by:
- getMoreResultsin interface- Statement
- Overrides:
- getMoreResultsin class- DefaultStatement
- Throws:
- SQLException
 
- 
addBatch- Specified by:
- addBatchin interface- PreparedStatement
- Overrides:
- addBatchin class- DefaultPreparedStatement
- Throws:
- SQLException
 
- 
clearBatch- Specified by:
- clearBatchin interface- Statement
- Overrides:
- clearBatchin class- DefaultStatement
- Throws:
- SQLException
 
- 
executeBatch- Specified by:
- executeBatchin interface- Statement
- Overrides:
- executeBatchin class- DefaultStatement
- Throws:
- SQLException
 
- 
executeLargeBatch- Specified by:
- executeLargeBatchin interface- Statement
- Overrides:
- executeLargeBatchin class- DefaultStatement
- Throws:
- SQLException
 
- 
addBatch- Specified by:
- addBatchin interface- Statement
- Overrides:
- addBatchin class- DefaultStatement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DefaultStatement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DefaultStatement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DefaultStatement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Overrides:
- executeLargeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Overrides:
- executeLargeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Overrides:
- executeLargeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Overrides:
- executeLargeUpdatein class- DefaultStatement
- Throws:
- SQLException
 
- 
executeQuery- Specified by:
- executeQueryin interface- Statement
- Overrides:
- executeQueryin class- DefaultStatement
- Throws:
- SQLException
 
- 
executeQuery- Specified by:
- executeQueryin interface- PreparedStatement
- Overrides:
- executeQueryin class- DefaultPreparedStatement
- Throws:
- SQLException
 
- 
getResultSet- Specified by:
- getResultSetin interface- Statement
- Overrides:
- getResultSetin class- DefaultStatement
- Throws:
- SQLException
 
- 
getGeneratedKeys- Specified by:
- getGeneratedKeysin interface- Statement
- Overrides:
- getGeneratedKeysin class- DefaultStatement
- Throws:
- SQLException
 
 
-