java.lang.Object
com.aoapps.sql.wrapper.StatementWrapperImpl
com.aoapps.sql.wrapper.PreparedStatementWrapperImpl
- All Implemented Interfaces:
PreparedStatementWrapper
,StatementWrapper
,Wrapper
,AutoCloseable
,PreparedStatement
,Statement
,Wrapper
- Direct Known Subclasses:
CallableStatementWrapperImpl
public class PreparedStatementWrapperImpl
extends StatementWrapperImpl
implements PreparedStatementWrapper
Wraps a
PreparedStatement
.- 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
ConstructorDescriptionPreparedStatementWrapperImpl
(ConnectionWrapperImpl connectionWrapper, PreparedStatement wrapped) -
Method Summary
Modifier and TypeMethodDescriptionGets the statement that is wrapped.void
void
setAsciiStream
(int parameterIndex, InputStream x) void
setAsciiStream
(int parameterIndex, InputStream x, int length) void
setAsciiStream
(int parameterIndex, InputStream x, long length) 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
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
setNCharacterStream
(int parameterIndex, Reader value) void
setNCharacterStream
(int parameterIndex, Reader value, long length) void
void
void
void
void
void
void
setUnicodeStream
(int parameterIndex, InputStream x, int length) Deprecated.protected Array
unwrapArray
(Array array) Unwraps anArray
, if wrapped by this wrapper.protected Blob
unwrapBlob
(Blob blob) Unwraps aBlob
, if wrapped by this wrapper.protected Clob
unwrapClob
(Clob clob) Unwraps aClob
, if wrapped by this wrapper.protected InputStream
Unwraps anInputStream
, if wrapped by this wrapper.protected NClob
unwrapNClob
(NClob nclob) Unwraps aNClob
, if wrapped by this wrapper.protected Reader
unwrapReader
(Reader in) Unwraps aReader
, if wrapped by this wrapper.protected Ref
Unwraps aRef
, if wrapped by this wrapper.protected RowId
unwrapRowId
(RowId rowId) Unwraps aRowId
, if wrapped by this wrapper.protected SQLXML
unwrapSQLXML
(SQLXML sqlXml) Unwraps aSQLXML
, if wrapped by this wrapper.protected ParameterMetaDataWrapperImpl
wrapParameterMetaData
(ParameterMetaData metaData) Wraps aParameterMetaData
, if not already wrapped by this wrapper.protected ResultSetMetaDataWrapperImpl
wrapResultSetMetaData
(ResultSetMetaData metaData) Wraps aResultSetMetaData
, if not already wrapped by this wrapper.Methods inherited from class com.aoapps.sql.wrapper.StatementWrapperImpl
executeQuery, getConnection, getConnectionWrapper, getGeneratedKeys, getResultSet, 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.PreparedStatementWrapper
addBatch, clearParameters, execute, executeLargeUpdate, executeUpdate, setBigDecimal, setBoolean, setByte, setBytes, setDate, setDate, setDouble, setFloat, setInt, setLong, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL
Methods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, isSimpleIdentifier
Methods inherited from interface com.aoapps.sql.wrapper.StatementWrapper
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
Methods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
PreparedStatementWrapperImpl
public PreparedStatementWrapperImpl(ConnectionWrapperImpl connectionWrapper, PreparedStatement wrapped)
-
-
Method Details
-
getWrapped
Description copied from interface:StatementWrapper
Gets the statement that is wrapped.- Specified by:
getWrapped
in interfacePreparedStatementWrapper
- Specified by:
getWrapped
in interfaceStatementWrapper
- Specified by:
getWrapped
in interfaceWrapper
- Overrides:
getWrapped
in classStatementWrapperImpl
-
unwrapArray
Unwraps anArray
, if wrapped by this wrapper.- See Also:
-
unwrapBlob
Unwraps aBlob
, if wrapped by this wrapper.- See Also:
-
unwrapClob
Unwraps aClob
, if wrapped by this wrapper.- See Also:
-
unwrapInputStream
Unwraps anInputStream
, if wrapped by this wrapper.- See Also:
-
unwrapNClob
Unwraps aNClob
, if wrapped by this wrapper.- See Also:
-
wrapParameterMetaData
Wraps aParameterMetaData
, if not already wrapped by this wrapper.- See Also:
-
unwrapReader
Unwraps aReader
, if wrapped by this wrapper.- See Also:
-
unwrapRef
Unwraps aRef
, if wrapped by this wrapper.- See Also:
-
wrapResultSetMetaData
Wraps aResultSetMetaData
, if not already wrapped by this wrapper.- See Also:
-
unwrapRowId
Unwraps aRowId
, if wrapped by this wrapper.- See Also:
-
unwrapSQLXML
Unwraps aSQLXML
, if wrapped by this wrapper.- See Also:
-
executeQuery
- Specified by:
executeQuery
in interfacePreparedStatement
- Specified by:
executeQuery
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Specified by:
setAsciiStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setUnicodeStream
@Deprecated public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException Deprecated.- Specified by:
setUnicodeStream
in interfacePreparedStatement
- Specified by:
setUnicodeStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Specified by:
setBinaryStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Specified by:
setCharacterStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setRef
- Specified by:
setRef
in interfacePreparedStatement
- Specified by:
setRef
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Specified by:
setBlob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Specified by:
setClob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setArray
- Specified by:
setArray
in interfacePreparedStatement
- Specified by:
setArray
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
getMetaData
- Specified by:
getMetaData
in interfacePreparedStatement
- Specified by:
getMetaData
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
getParameterMetaData
- Specified by:
getParameterMetaData
in interfacePreparedStatement
- Specified by:
getParameterMetaData
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setRowId
- Specified by:
setRowId
in interfacePreparedStatement
- Specified by:
setRowId
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfacePreparedStatement
- Specified by:
setNCharacterStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Specified by:
setNClob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Specified by:
setClob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Specified by:
setBlob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Specified by:
setNClob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setSQLXML
- Specified by:
setSQLXML
in interfacePreparedStatement
- Specified by:
setSQLXML
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Specified by:
setAsciiStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Specified by:
setBinaryStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Specified by:
setCharacterStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Specified by:
setAsciiStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Specified by:
setBinaryStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Specified by:
setCharacterStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfacePreparedStatement
- Specified by:
setNCharacterStream
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Specified by:
setClob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Specified by:
setBlob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-
setNClob
- Specified by:
setNClob
in interfacePreparedStatement
- Specified by:
setNClob
in interfacePreparedStatementWrapper
- Throws:
SQLException
- See Also:
-