java.lang.Object
org.jooq.tools.jdbc.JDBC41Statement
org.jooq.tools.jdbc.DefaultStatement
- All Implemented Interfaces:
- AutoCloseable,- Statement,- Wrapper
- Direct Known Subclasses:
- DefaultPreparedStatement,- LoggingStatement
A default JDBC Statement implementation delegating all JDBC 4.0 calls to an
 internal delegate.
- Author:
- Lukas Eder
- 
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 SummaryConstructorsConstructorDescriptionDefaultStatement(Statement delegate) DefaultStatement(Statement delegate, Connection creator) DefaultStatement(Statement delegate, Connection creator, Supplier<? extends SQLException> errorIfUnsupported) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidcancel()voidvoidvoidclose()voidenquoteIdentifier(String identifier, boolean alwaysQuote) enquoteLiteral(String val) booleanbooleanbooleanbooleanint[]long[]longexecuteLargeUpdate(String sql) longexecuteLargeUpdate(String sql, int autoGeneratedKeys) longexecuteLargeUpdate(String sql, int[] columnIndexes) longexecuteLargeUpdate(String sql, String[] columnNames) executeQuery(String sql) intexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] columnIndexes) intexecuteUpdate(String sql, String[] columnNames) intintlonglongintintbooleanbooleangetMoreResults(int current) intintintintintbooleanisClosed()booleanbooleanbooleanisSimpleIdentifier(String identifier) booleanisWrapperFor(Class<?> iface) voidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int rows) voidsetLargeMaxRows(long max) voidsetMaxFieldSize(int max) voidsetMaxRows(int max) voidsetPoolable(boolean poolable) voidsetQueryTimeout(int seconds) <T> Tprotected ResultSetMethods inherited from class org.jooq.tools.jdbc.JDBC41StatementgetObject, getObject
- 
Constructor Details- 
DefaultStatement
- 
DefaultStatement
- 
DefaultStatementpublic DefaultStatement(Statement delegate, Connection creator, Supplier<? extends SQLException> errorIfUnsupported) 
 
- 
- 
Method Details- 
getDelegate- Throws:
- SQLException
 
- 
getDelegateStatement- Throws:
- SQLException
 
- 
wrap
- 
execute- Specified by:
- executein interface- Statement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- Statement
- Throws:
- SQLException
 
- 
executeBatch- Specified by:
- executeBatchin interface- Statement
- Throws:
- SQLException
 
- 
executeQuery- Specified by:
- executeQueryin interface- Statement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
unwrap- Specified by:
- unwrapin interface- Wrapper
- Throws:
- SQLException
 
- 
isWrapperFor- Specified by:
- isWrapperForin interface- Wrapper
- Throws:
- SQLException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Statement
- Throws:
- SQLException
 
- 
getMaxFieldSize- Specified by:
- getMaxFieldSizein interface- Statement
- Throws:
- SQLException
 
- 
setMaxFieldSize- Specified by:
- setMaxFieldSizein interface- Statement
- Throws:
- SQLException
 
- 
getMaxRows- Specified by:
- getMaxRowsin interface- Statement
- Throws:
- SQLException
 
- 
setMaxRows- Specified by:
- setMaxRowsin interface- Statement
- Throws:
- SQLException
 
- 
setEscapeProcessing- Specified by:
- setEscapeProcessingin interface- Statement
- Throws:
- SQLException
 
- 
getQueryTimeout- Specified by:
- getQueryTimeoutin interface- Statement
- Throws:
- SQLException
 
- 
setQueryTimeout- Specified by:
- setQueryTimeoutin interface- Statement
- Throws:
- SQLException
 
- 
cancel- Specified by:
- cancelin interface- Statement
- Throws:
- SQLException
 
- 
getWarnings- Specified by:
- getWarningsin interface- Statement
- Throws:
- SQLException
 
- 
clearWarnings- Specified by:
- clearWarningsin interface- Statement
- Throws:
- SQLException
 
- 
setCursorName- Specified by:
- setCursorNamein interface- Statement
- Throws:
- SQLException
 
- 
getResultSet- Specified by:
- getResultSetin interface- Statement
- Throws:
- SQLException
 
- 
getUpdateCount- Specified by:
- getUpdateCountin interface- Statement
- Throws:
- SQLException
 
- 
getMoreResults- Specified by:
- getMoreResultsin interface- Statement
- Throws:
- SQLException
 
- 
setFetchDirection- Specified by:
- setFetchDirectionin interface- Statement
- Throws:
- SQLException
 
- 
getFetchDirection- Specified by:
- getFetchDirectionin interface- Statement
- Throws:
- SQLException
 
- 
setFetchSize- Specified by:
- setFetchSizein interface- Statement
- Throws:
- SQLException
 
- 
getFetchSize- Specified by:
- getFetchSizein interface- Statement
- Throws:
- SQLException
 
- 
getResultSetConcurrency- Specified by:
- getResultSetConcurrencyin interface- Statement
- Throws:
- SQLException
 
- 
getResultSetType- Specified by:
- getResultSetTypein interface- Statement
- Throws:
- SQLException
 
- 
addBatch- Specified by:
- addBatchin interface- Statement
- Throws:
- SQLException
 
- 
clearBatch- Specified by:
- clearBatchin interface- Statement
- Throws:
- SQLException
 
- 
getConnection- Specified by:
- getConnectionin interface- Statement
- Throws:
- SQLException
 
- 
getMoreResults- Specified by:
- getMoreResultsin interface- Statement
- Throws:
- SQLException
 
- 
getGeneratedKeys- Specified by:
- getGeneratedKeysin interface- Statement
- Throws:
- SQLException
 
- 
getResultSetHoldability- Specified by:
- getResultSetHoldabilityin interface- Statement
- Throws:
- SQLException
 
- 
isClosed- Specified by:
- isClosedin interface- Statement
- Throws:
- SQLException
 
- 
setPoolable- Specified by:
- setPoolablein interface- Statement
- Throws:
- SQLException
 
- 
isPoolable- Specified by:
- isPoolablein interface- Statement
- Throws:
- SQLException
 
- 
closeOnCompletion- Specified by:
- closeOnCompletionin interface- Statement
- Overrides:
- closeOnCompletionin class- JDBC41Statement
- Throws:
- SQLException
 
- 
isCloseOnCompletion- Specified by:
- isCloseOnCompletionin interface- Statement
- Overrides:
- isCloseOnCompletionin class- JDBC41Statement
- Throws:
- SQLException
 
- 
getLargeUpdateCount- Specified by:
- getLargeUpdateCountin interface- Statement
- Throws:
- SQLException
 
- 
setLargeMaxRows- Specified by:
- setLargeMaxRowsin interface- Statement
- Throws:
- SQLException
 
- 
getLargeMaxRows- Specified by:
- getLargeMaxRowsin interface- Statement
- Throws:
- SQLException
 
- 
executeLargeBatch- Specified by:
- executeLargeBatchin interface- Statement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
executeLargeUpdate- Specified by:
- executeLargeUpdatein interface- Statement
- Throws:
- SQLException
 
- 
enquoteLiteral- Specified by:
- enquoteLiteralin interface- Statement
- Throws:
- SQLException
 
- 
enquoteIdentifier- Specified by:
- enquoteIdentifierin interface- Statement
- Throws:
- SQLException
 
- 
isSimpleIdentifier- Specified by:
- isSimpleIdentifierin interface- Statement
- Throws:
- SQLException
 
- 
enquoteNCharLiteral- Specified by:
- enquoteNCharLiteralin interface- Statement
- Throws:
- SQLException
 
 
-