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
ConstructorsConstructorDescriptionPreparedStatementWrapperImpl(ConnectionWrapperImpl connectionWrapper, PreparedStatement wrapped) -
Method Summary
Modifier and TypeMethodDescriptionGets the statement that is wrapped.voidvoidsetAsciiStream(int parameterIndex, InputStream x) voidsetAsciiStream(int parameterIndex, InputStream x, int length) voidsetAsciiStream(int parameterIndex, InputStream x, long length) voidsetBinaryStream(int parameterIndex, InputStream x) voidsetBinaryStream(int parameterIndex, InputStream x, int length) voidsetBinaryStream(int parameterIndex, InputStream x, long length) voidsetBlob(int parameterIndex, InputStream inputStream) voidsetBlob(int parameterIndex, InputStream inputStream, long length) voidvoidsetCharacterStream(int parameterIndex, Reader reader) voidsetCharacterStream(int parameterIndex, Reader reader, int length) voidsetCharacterStream(int parameterIndex, Reader reader, long length) voidvoidvoidvoidsetNCharacterStream(int parameterIndex, Reader value) voidsetNCharacterStream(int parameterIndex, Reader value, long length) voidvoidvoidvoidvoidvoidvoidsetUnicodeStream(int parameterIndex, InputStream x, int length) Deprecated.protected ArrayunwrapArray(Array array) Unwraps anArray, if wrapped by this wrapper.protected BlobunwrapBlob(Blob blob) Unwraps aBlob, if wrapped by this wrapper.protected ClobunwrapClob(Clob clob) Unwraps aClob, if wrapped by this wrapper.protected InputStreamUnwraps anInputStream, if wrapped by this wrapper.protected NClobunwrapNClob(NClob nclob) Unwraps aNClob, if wrapped by this wrapper.protected ReaderunwrapReader(Reader in) Unwraps aReader, if wrapped by this wrapper.protected RefUnwraps aRef, if wrapped by this wrapper.protected RowIdunwrapRowId(RowId rowId) Unwraps aRowId, if wrapped by this wrapper.protected SQLXMLunwrapSQLXML(SQLXML sqlXml) Unwraps aSQLXML, if wrapped by this wrapper.protected ParameterMetaDataWrapperImplwrapParameterMetaData(ParameterMetaData metaData) Wraps aParameterMetaData, if not already wrapped by this wrapper.protected ResultSetMetaDataWrapperImplwrapResultSetMetaData(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, wrapResultSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, setURLMethods inherited from interface com.aoapps.sql.wrapper.StatementWrapper
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, 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, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods 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:StatementWrapperGets the statement that is wrapped.- Specified by:
getWrappedin interfacePreparedStatementWrapper- Specified by:
getWrappedin interfaceStatementWrapper- Specified by:
getWrappedin interfaceWrapper- Overrides:
getWrappedin 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:
executeQueryin interfacePreparedStatement- Specified by:
executeQueryin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Specified by:
setAsciiStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setUnicodeStream
@Deprecated(since="1.2") public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException Deprecated.- Specified by:
setUnicodeStreamin interfacePreparedStatement- Specified by:
setUnicodeStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Specified by:
setBinaryStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Specified by:
setCharacterStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setRef
- Specified by:
setRefin interfacePreparedStatement- Specified by:
setRefin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Specified by:
setBlobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Specified by:
setClobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setArray
- Specified by:
setArrayin interfacePreparedStatement- Specified by:
setArrayin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
getMetaData
- Specified by:
getMetaDatain interfacePreparedStatement- Specified by:
getMetaDatain interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
getParameterMetaData
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Specified by:
getParameterMetaDatain interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setRowId
- Specified by:
setRowIdin interfacePreparedStatement- Specified by:
setRowIdin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Specified by:
setNCharacterStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Specified by:
setNClobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Specified by:
setClobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Specified by:
setBlobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Specified by:
setNClobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setSQLXML
- Specified by:
setSQLXMLin interfacePreparedStatement- Specified by:
setSQLXMLin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Specified by:
setAsciiStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Specified by:
setBinaryStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Specified by:
setCharacterStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Specified by:
setAsciiStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Specified by:
setBinaryStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Specified by:
setCharacterStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Specified by:
setNCharacterStreamin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Specified by:
setClobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Specified by:
setBlobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Specified by:
setNClobin interfacePreparedStatementWrapper- Throws:
SQLException- See Also:
-
