java.lang.Object
com.aoapps.sql.wrapper.StatementWrapperImpl
com.aoapps.sql.wrapper.PreparedStatementWrapperImpl
com.aoapps.sql.failfast.FailFastPreparedStatementImpl
- All Implemented Interfaces:
PreparedStatementWrapper
,StatementWrapper
,Wrapper
,AutoCloseable
,PreparedStatement
,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
ConstructorDescriptionFailFastPreparedStatementImpl
(FailFastConnectionImpl failFastConnection, PreparedStatement wrapped) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatch()
void
void
cancel()
void
void
void
void
close()
void
enquoteIdentifier
(String identifier, boolean alwaysQuote) enquoteLiteral
(String val) boolean
execute()
boolean
boolean
boolean
boolean
int[]
long[]
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
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
void
setAsciiStream
(int parameterIndex, InputStream x) void
setAsciiStream
(int parameterIndex, InputStream x, int length) void
setAsciiStream
(int parameterIndex, InputStream x, long length) void
setBigDecimal
(int parameterIndex, BigDecimal x) void
setBinaryStream
(int parameterIndex, InputStream x) void
setBinaryStream
(int parameterIndex, InputStream x, int length) void
setBinaryStream
(int parameterIndex, InputStream x, long length) void
setBlob
(int parameterIndex, InputStream inputStream) void
setBlob
(int parameterIndex, InputStream inputStream, long length) void
void
setBoolean
(int parameterIndex, boolean x) void
setByte
(int parameterIndex, byte x) void
setBytes
(int parameterIndex, byte[] x) void
setCharacterStream
(int parameterIndex, Reader reader) void
setCharacterStream
(int parameterIndex, Reader reader, int length) void
setCharacterStream
(int parameterIndex, Reader reader, long length) void
void
void
void
setCursorName
(String name) void
void
void
setDouble
(int parameterIndex, double x) void
setEscapeProcessing
(boolean enable) void
setFetchDirection
(int direction) void
setFetchSize
(int rows) void
setFloat
(int parameterIndex, float x) void
setInt
(int parameterIndex, int x) void
setLargeMaxRows
(long max) void
setLong
(int parameterIndex, long x) void
setMaxFieldSize
(int max) void
setMaxRows
(int max) void
setNCharacterStream
(int parameterIndex, Reader value) void
setNCharacterStream
(int parameterIndex, Reader value, long length) void
void
void
void
setNString
(int parameterIndex, String value) void
setNull
(int parameterIndex, int sqlType) void
void
void
void
void
void
void
setPoolable
(boolean poolable) void
setQueryTimeout
(int seconds) void
void
void
setShort
(int parameterIndex, short x) void
void
void
void
void
setTimestamp
(int parameterIndex, Timestamp x) void
setTimestamp
(int parameterIndex, Timestamp x, Calendar cal) void
setUnicodeStream
(int parameterIndex, InputStream x, int length) Deprecated.void
Methods inherited from class com.aoapps.sql.wrapper.PreparedStatementWrapperImpl
getWrapped, unwrapArray, unwrapBlob, unwrapClob, unwrapInputStream, unwrapNClob, unwrapReader, unwrapRef, unwrapRowId, unwrapSQLXML, wrapParameterMetaData, wrapResultSetMetaData
Methods inherited from class com.aoapps.sql.wrapper.StatementWrapperImpl
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
-
FailFastPreparedStatementImpl
public FailFastPreparedStatementImpl(FailFastConnectionImpl failFastConnection, PreparedStatement wrapped)
-
-
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
-
executeQuery
- Specified by:
executeQuery
in interfacePreparedStatement
- Specified by:
executeQuery
in interfacePreparedStatementWrapper
- Overrides:
executeQuery
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
setNull
- Throws:
SQLException
-
setBoolean
- Throws:
SQLException
-
setByte
- Throws:
SQLException
-
setShort
- Throws:
SQLException
-
setInt
- Throws:
SQLException
-
setLong
- Throws:
SQLException
-
setFloat
- Throws:
SQLException
-
setDouble
- Throws:
SQLException
-
setBigDecimal
- Throws:
SQLException
-
setString
- Throws:
SQLException
-
setBytes
- Throws:
SQLException
-
setDate
- Throws:
SQLException
-
setTime
- Throws:
SQLException
-
setTimestamp
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Specified by:
setAsciiStream
in interfacePreparedStatementWrapper
- Overrides:
setAsciiStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setUnicodeStream
@Deprecated(since="1.2") public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException Deprecated.- Specified by:
setUnicodeStream
in interfacePreparedStatement
- Specified by:
setUnicodeStream
in interfacePreparedStatementWrapper
- Overrides:
setUnicodeStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Specified by:
setBinaryStream
in interfacePreparedStatementWrapper
- Overrides:
setBinaryStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
clearParameters
- Throws:
SQLException
-
setObject
- Throws:
SQLException
-
setObject
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
addBatch
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Specified by:
setCharacterStream
in interfacePreparedStatementWrapper
- Overrides:
setCharacterStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setRef
- Specified by:
setRef
in interfacePreparedStatement
- Specified by:
setRef
in interfacePreparedStatementWrapper
- Overrides:
setRef
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Specified by:
setBlob
in interfacePreparedStatementWrapper
- Overrides:
setBlob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Specified by:
setClob
in interfacePreparedStatementWrapper
- Overrides:
setClob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setArray
- Specified by:
setArray
in interfacePreparedStatement
- Specified by:
setArray
in interfacePreparedStatementWrapper
- Overrides:
setArray
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaData
in interfacePreparedStatement
- Specified by:
getMetaData
in interfacePreparedStatementWrapper
- Overrides:
getMetaData
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setDate
- Throws:
SQLException
-
setTime
- Throws:
SQLException
-
setTimestamp
- Throws:
SQLException
-
setNull
- Throws:
SQLException
-
setURL
- Throws:
SQLException
-
getParameterMetaData
- Specified by:
getParameterMetaData
in interfacePreparedStatement
- Specified by:
getParameterMetaData
in interfacePreparedStatementWrapper
- Overrides:
getParameterMetaData
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setRowId
- Specified by:
setRowId
in interfacePreparedStatement
- Specified by:
setRowId
in interfacePreparedStatementWrapper
- Overrides:
setRowId
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setNString
- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfacePreparedStatement
- Specified by:
setNCharacterStream
in interfacePreparedStatementWrapper
- Overrides:
setNCharacterStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Specified by:
setNClob
in interfacePreparedStatementWrapper
- Overrides:
setNClob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Specified by:
setClob
in interfacePreparedStatementWrapper
- Overrides:
setClob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Specified by:
setBlob
in interfacePreparedStatementWrapper
- Overrides:
setBlob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Specified by:
setNClob
in interfacePreparedStatementWrapper
- Overrides:
setNClob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setSQLXML
- Specified by:
setSQLXML
in interfacePreparedStatement
- Specified by:
setSQLXML
in interfacePreparedStatementWrapper
- Overrides:
setSQLXML
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException - Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Specified by:
setAsciiStream
in interfacePreparedStatementWrapper
- Overrides:
setAsciiStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Specified by:
setBinaryStream
in interfacePreparedStatementWrapper
- Overrides:
setBinaryStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Specified by:
setCharacterStream
in interfacePreparedStatementWrapper
- Overrides:
setCharacterStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Specified by:
setAsciiStream
in interfacePreparedStatementWrapper
- Overrides:
setAsciiStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Specified by:
setBinaryStream
in interfacePreparedStatementWrapper
- Overrides:
setBinaryStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Specified by:
setCharacterStream
in interfacePreparedStatementWrapper
- Overrides:
setCharacterStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfacePreparedStatement
- Specified by:
setNCharacterStream
in interfacePreparedStatementWrapper
- Overrides:
setNCharacterStream
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Specified by:
setClob
in interfacePreparedStatementWrapper
- Overrides:
setClob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Specified by:
setBlob
in interfacePreparedStatementWrapper
- Overrides:
setBlob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Specified by:
setNClob
in interfacePreparedStatementWrapper
- Overrides:
setNClob
in classPreparedStatementWrapperImpl
- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException - Throws:
SQLException
-
setObject
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-