java.lang.Object
com.aoapps.sql.wrapper.StatementWrapperImpl
com.aoapps.sql.failfast.FailFastStatementImpl
- All Implemented Interfaces:
StatementWrapper
,Wrapper
,AutoCloseable
,Statement
,Wrapper
- Author:
- AO Industries, Inc.
-
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
ConstructorDescriptionFailFastStatementImpl
(FailFastConnectionImpl failFastConnection, Statement wrapped) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cancel()
void
void
void
close()
void
enquoteIdentifier
(String identifier, boolean alwaysQuote) enquoteLiteral
(String val) boolean
boolean
boolean
boolean
int[]
long[]
long
executeLargeUpdate
(String sql) long
executeLargeUpdate
(String sql, int autoGeneratedKeys) long
executeLargeUpdate
(String sql, int[] columnIndexes) long
executeLargeUpdate
(String sql, String[] columnNames) executeQuery
(String sql) int
executeUpdate
(String sql) int
executeUpdate
(String sql, int autoGeneratedKeys) int
executeUpdate
(String sql, int[] columnIndexes) int
executeUpdate
(String sql, String[] columnNames) protected FailFastConnectionImpl
int
int
long
long
int
int
boolean
boolean
getMoreResults
(int current) int
int
int
int
int
boolean
isClosed()
boolean
boolean
boolean
isSimpleIdentifier
(String identifier) void
setCursorName
(String name) void
setEscapeProcessing
(boolean enable) void
setFetchDirection
(int direction) void
setFetchSize
(int rows) void
setLargeMaxRows
(long max) void
setMaxFieldSize
(int max) void
setMaxRows
(int max) void
setPoolable
(boolean poolable) void
setQueryTimeout
(int seconds) Methods inherited from class com.aoapps.sql.wrapper.StatementWrapperImpl
getWrapped, toString, wrapResultSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
FailFastStatementImpl
-
-
Method Details
-
getConnectionWrapper
- Overrides:
getConnectionWrapper
in classStatementWrapperImpl
-
executeQuery
- Specified by:
executeQuery
in interfaceStatement
- Specified by:
executeQuery
in interfaceStatementWrapper
- Overrides:
executeQuery
in classStatementWrapperImpl
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
close
- Throws:
SQLException
-
getMaxFieldSize
- Throws:
SQLException
-
setMaxFieldSize
- Throws:
SQLException
-
getMaxRows
- Throws:
SQLException
-
setMaxRows
- Throws:
SQLException
-
setEscapeProcessing
- Throws:
SQLException
-
getQueryTimeout
- Throws:
SQLException
-
setQueryTimeout
- Throws:
SQLException
-
cancel
- Throws:
SQLException
-
getWarnings
- Throws:
SQLException
-
clearWarnings
- Throws:
SQLException
-
setCursorName
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSet
in interfaceStatement
- Specified by:
getResultSet
in interfaceStatementWrapper
- Overrides:
getResultSet
in classStatementWrapperImpl
- Throws:
SQLException
-
getUpdateCount
- Throws:
SQLException
-
getMoreResults
- Throws:
SQLException
-
setFetchDirection
- Throws:
SQLException
-
getFetchDirection
- Throws:
SQLException
-
setFetchSize
- Throws:
SQLException
-
getFetchSize
- Throws:
SQLException
-
getResultSetConcurrency
- Throws:
SQLException
-
getResultSetType
- Throws:
SQLException
-
addBatch
- Throws:
SQLException
-
clearBatch
- Throws:
SQLException
-
executeBatch
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceStatement
- Specified by:
getConnection
in interfaceStatementWrapper
- Overrides:
getConnection
in classStatementWrapperImpl
- Throws:
SQLException
-
getMoreResults
- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeys
in interfaceStatement
- Specified by:
getGeneratedKeys
in interfaceStatementWrapper
- Overrides:
getGeneratedKeys
in classStatementWrapperImpl
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
getResultSetHoldability
- Throws:
SQLException
-
isClosed
- Throws:
SQLException
-
setPoolable
- Throws:
SQLException
-
isPoolable
- Throws:
SQLException
-
closeOnCompletion
- Throws:
SQLException
-
isCloseOnCompletion
- Throws:
SQLException
-
getLargeUpdateCount
- Throws:
SQLException
-
setLargeMaxRows
- Throws:
SQLException
-
getLargeMaxRows
- Throws:
SQLException
-
executeLargeBatch
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-
enquoteLiteral
- Throws:
SQLException
-
enquoteIdentifier
- Throws:
SQLException
-
isSimpleIdentifier
- Throws:
SQLException
-
enquoteNCharLiteral
- Throws:
SQLException
-