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 Summary
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO - 
Constructor Summary
ConstructorsConstructorDescriptionDefaultStatement(Statement delegate) DefaultStatement(Statement delegate, Connection creator) DefaultStatement(Statement delegate, Connection creator, Supplier<? extends SQLException> errorIfUnsupported)  - 
Method Summary
Modifier 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.JDBC41Statement
getObject, getObject 
- 
Constructor Details
- 
DefaultStatement
 - 
DefaultStatement
 - 
DefaultStatement
public DefaultStatement(Statement delegate, Connection creator, Supplier<? extends SQLException> errorIfUnsupported)  
 - 
 - 
Method Details
- 
getDelegate
- Throws:
 SQLException
 - 
getDelegateStatement
- Throws:
 SQLException
 - 
wrap
 - 
execute
- Specified by:
 executein interfaceStatement- Throws:
 SQLException
 - 
execute
- Specified by:
 executein interfaceStatement- Throws:
 SQLException
 - 
execute
- Specified by:
 executein interfaceStatement- Throws:
 SQLException
 - 
execute
- Specified by:
 executein interfaceStatement- Throws:
 SQLException
 - 
executeBatch
- Specified by:
 executeBatchin interfaceStatement- Throws:
 SQLException
 - 
executeQuery
- Specified by:
 executeQueryin interfaceStatement- Throws:
 SQLException
 - 
executeUpdate
- Specified by:
 executeUpdatein interfaceStatement- Throws:
 SQLException
 - 
executeUpdate
- Specified by:
 executeUpdatein interfaceStatement- Throws:
 SQLException
 - 
executeUpdate
- Specified by:
 executeUpdatein interfaceStatement- Throws:
 SQLException
 - 
executeUpdate
- Specified by:
 executeUpdatein interfaceStatement- Throws:
 SQLException
 - 
unwrap
- Specified by:
 unwrapin interfaceWrapper- Throws:
 SQLException
 - 
isWrapperFor
- Specified by:
 isWrapperForin interfaceWrapper- Throws:
 SQLException
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceStatement- Throws:
 SQLException
 - 
getMaxFieldSize
- Specified by:
 getMaxFieldSizein interfaceStatement- Throws:
 SQLException
 - 
setMaxFieldSize
- Specified by:
 setMaxFieldSizein interfaceStatement- Throws:
 SQLException
 - 
getMaxRows
- Specified by:
 getMaxRowsin interfaceStatement- Throws:
 SQLException
 - 
setMaxRows
- Specified by:
 setMaxRowsin interfaceStatement- Throws:
 SQLException
 - 
setEscapeProcessing
- Specified by:
 setEscapeProcessingin interfaceStatement- Throws:
 SQLException
 - 
getQueryTimeout
- Specified by:
 getQueryTimeoutin interfaceStatement- Throws:
 SQLException
 - 
setQueryTimeout
- Specified by:
 setQueryTimeoutin interfaceStatement- Throws:
 SQLException
 - 
cancel
- Specified by:
 cancelin interfaceStatement- Throws:
 SQLException
 - 
getWarnings
- Specified by:
 getWarningsin interfaceStatement- Throws:
 SQLException
 - 
clearWarnings
- Specified by:
 clearWarningsin interfaceStatement- Throws:
 SQLException
 - 
setCursorName
- Specified by:
 setCursorNamein interfaceStatement- Throws:
 SQLException
 - 
getResultSet
- Specified by:
 getResultSetin interfaceStatement- Throws:
 SQLException
 - 
getUpdateCount
- Specified by:
 getUpdateCountin interfaceStatement- Throws:
 SQLException
 - 
getMoreResults
- Specified by:
 getMoreResultsin interfaceStatement- Throws:
 SQLException
 - 
setFetchDirection
- Specified by:
 setFetchDirectionin interfaceStatement- Throws:
 SQLException
 - 
getFetchDirection
- Specified by:
 getFetchDirectionin interfaceStatement- Throws:
 SQLException
 - 
setFetchSize
- Specified by:
 setFetchSizein interfaceStatement- Throws:
 SQLException
 - 
getFetchSize
- Specified by:
 getFetchSizein interfaceStatement- Throws:
 SQLException
 - 
getResultSetConcurrency
- Specified by:
 getResultSetConcurrencyin interfaceStatement- Throws:
 SQLException
 - 
getResultSetType
- Specified by:
 getResultSetTypein interfaceStatement- Throws:
 SQLException
 - 
addBatch
- Specified by:
 addBatchin interfaceStatement- Throws:
 SQLException
 - 
clearBatch
- Specified by:
 clearBatchin interfaceStatement- Throws:
 SQLException
 - 
getConnection
- Specified by:
 getConnectionin interfaceStatement- Throws:
 SQLException
 - 
getMoreResults
- Specified by:
 getMoreResultsin interfaceStatement- Throws:
 SQLException
 - 
getGeneratedKeys
- Specified by:
 getGeneratedKeysin interfaceStatement- Throws:
 SQLException
 - 
getResultSetHoldability
- Specified by:
 getResultSetHoldabilityin interfaceStatement- Throws:
 SQLException
 - 
isClosed
- Specified by:
 isClosedin interfaceStatement- Throws:
 SQLException
 - 
setPoolable
- Specified by:
 setPoolablein interfaceStatement- Throws:
 SQLException
 - 
isPoolable
- Specified by:
 isPoolablein interfaceStatement- Throws:
 SQLException
 - 
closeOnCompletion
- Specified by:
 closeOnCompletionin interfaceStatement- Overrides:
 closeOnCompletionin classJDBC41Statement- Throws:
 SQLException
 - 
isCloseOnCompletion
- Specified by:
 isCloseOnCompletionin interfaceStatement- Overrides:
 isCloseOnCompletionin classJDBC41Statement- Throws:
 SQLException
 - 
getLargeUpdateCount
- Specified by:
 getLargeUpdateCountin interfaceStatement- Throws:
 SQLException
 - 
setLargeMaxRows
- Specified by:
 setLargeMaxRowsin interfaceStatement- Throws:
 SQLException
 - 
getLargeMaxRows
- Specified by:
 getLargeMaxRowsin interfaceStatement- Throws:
 SQLException
 - 
executeLargeBatch
- Specified by:
 executeLargeBatchin interfaceStatement- Throws:
 SQLException
 - 
executeLargeUpdate
- Specified by:
 executeLargeUpdatein interfaceStatement- Throws:
 SQLException
 - 
executeLargeUpdate
- Specified by:
 executeLargeUpdatein interfaceStatement- Throws:
 SQLException
 - 
executeLargeUpdate
- Specified by:
 executeLargeUpdatein interfaceStatement- Throws:
 SQLException
 - 
executeLargeUpdate
- Specified by:
 executeLargeUpdatein interfaceStatement- Throws:
 SQLException
 - 
enquoteLiteral
- Specified by:
 enquoteLiteralin interfaceStatement- Throws:
 SQLException
 - 
enquoteIdentifier
- Specified by:
 enquoteIdentifierin interfaceStatement- Throws:
 SQLException
 - 
isSimpleIdentifier
- Specified by:
 isSimpleIdentifierin interfaceStatement- Throws:
 SQLException
 - 
enquoteNCharLiteral
- Specified by:
 enquoteNCharLiteralin interfaceStatement- Throws:
 SQLException
 
 -