java.lang.Object
com.aoapps.sql.wrapper.StatementWrapperImpl
com.aoapps.sql.wrapper.PreparedStatementWrapperImpl
com.aoapps.sql.wrapper.CallableStatementWrapperImpl
- All Implemented Interfaces:
CallableStatementWrapper
,PreparedStatementWrapper
,StatementWrapper
,Wrapper
,AutoCloseable
,CallableStatement
,PreparedStatement
,Statement
,Wrapper
public class CallableStatementWrapperImpl
extends PreparedStatementWrapperImpl
implements CallableStatementWrapper
Wraps a
CallableStatement
.- 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
ConstructorDescriptionCallableStatementWrapperImpl
(ConnectionWrapperImpl connectionWrapper, CallableStatement wrapped) -
Method Summary
Modifier and TypeMethodDescriptiongetArray
(int parameterIndex) getBlob
(int parameterIndex) getCharacterStream
(int parameterIndex) getCharacterStream
(String parameterName) getClob
(int parameterIndex) getNCharacterStream
(int parameterIndex) getNCharacterStream
(String parameterName) getNClob
(int parameterIndex) getRef
(int parameterIndex) getRowId
(int parameterIndex) getSQLXML
(int parameterIndex) Gets the statement that is wrapped.void
setAsciiStream
(String parameterName, InputStream x) void
setAsciiStream
(String parameterName, InputStream x, int length) void
setAsciiStream
(String parameterName, InputStream x, long length) void
setBinaryStream
(String parameterName, InputStream x) void
setBinaryStream
(String parameterName, InputStream x, int length) void
setBinaryStream
(String parameterName, InputStream x, long length) void
setBlob
(String parameterName, InputStream inputStream) void
setBlob
(String parameterName, InputStream inputStream, long length) void
void
setCharacterStream
(String parameterName, Reader reader) void
setCharacterStream
(String parameterName, Reader reader, int length) void
setCharacterStream
(String parameterName, Reader reader, long length) void
void
void
void
setNCharacterStream
(String parameterName, Reader value) void
setNCharacterStream
(String parameterName, Reader value, long length) void
void
void
void
void
protected ArrayWrapperImpl
Wraps anArray
, if not already wrapped by this wrapper.protected BlobWrapperImpl
Wraps aBlob
, if not already wrapped by this wrapper.protected ClobWrapperImpl
Wraps aClob
, if not already wrapped by this wrapper.protected NClobWrapperImpl
Wraps aNClob
, if not already wrapped by this wrapper.protected ReaderWrapper
wrapReader
(Reader in) Wraps aReader
, if not already wrapped by this wrapper.protected RefWrapperImpl
Wraps aRef
, if not already wrapped by this wrapper.protected RowIdWrapperImpl
Wraps aRowId
, if not already wrapped by this wrapper.protected SQLXMLWrapperImpl
wrapSQLXML
(SQLXML sqlXml) Wraps aSQLXML
, if not already wrapped by this wrapper.Methods inherited from class com.aoapps.sql.wrapper.PreparedStatementWrapperImpl
executeQuery, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setRef, setRowId, setSQLXML, setUnicodeStream, unwrapArray, unwrapBlob, unwrapClob, unwrapInputStream, unwrapNClob, unwrapReader, unwrapRef, unwrapRowId, unwrapSQLXML, wrapParameterMetaData, wrapResultSetMetaData
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.CallableStatementWrapper
getBigDecimal, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, 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, wasNull
Methods inherited from interface com.aoapps.sql.wrapper.PreparedStatementWrapper
addBatch, clearParameters, execute, executeLargeUpdate, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, 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
-
CallableStatementWrapperImpl
public CallableStatementWrapperImpl(ConnectionWrapperImpl connectionWrapper, CallableStatement wrapped)
-
-
Method Details
-
getWrapped
Description copied from interface:StatementWrapper
Gets the statement that is wrapped.- Specified by:
getWrapped
in interfaceCallableStatementWrapper
- Specified by:
getWrapped
in interfacePreparedStatementWrapper
- Specified by:
getWrapped
in interfaceStatementWrapper
- Specified by:
getWrapped
in interfaceWrapper
- Overrides:
getWrapped
in classPreparedStatementWrapperImpl
-
wrapArray
Wraps anArray
, if not already wrapped by this wrapper.- See Also:
-
wrapBlob
Wraps aBlob
, if not already wrapped by this wrapper.- See Also:
-
wrapClob
Wraps aClob
, if not already wrapped by this wrapper.- See Also:
-
wrapNClob
Wraps aNClob
, if not already wrapped by this wrapper.- See Also:
-
wrapReader
Wraps aReader
, if not already wrapped by this wrapper.- See Also:
-
wrapRef
Wraps aRef
, if not already wrapped by this wrapper.- See Also:
-
wrapRowId
Wraps aRowId
, if not already wrapped by this wrapper.- See Also:
-
wrapSQLXML
Wraps aSQLXML
, if not already wrapped by this wrapper.- See Also:
-
getRef
- Specified by:
getRef
in interfaceCallableStatement
- Specified by:
getRef
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getBlob
- Specified by:
getBlob
in interfaceCallableStatement
- Specified by:
getBlob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getClob
- Specified by:
getClob
in interfaceCallableStatement
- Specified by:
getClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getArray
- Specified by:
getArray
in interfaceCallableStatement
- Specified by:
getArray
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Specified by:
setAsciiStream
in interfaceCallableStatement
- Specified by:
setAsciiStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Specified by:
setBinaryStream
in interfaceCallableStatement
- Specified by:
setBinaryStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setCharacterStream
- Specified by:
setCharacterStream
in interfaceCallableStatement
- Specified by:
setCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getRef
- Specified by:
getRef
in interfaceCallableStatement
- Specified by:
getRef
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getBlob
- Specified by:
getBlob
in interfaceCallableStatement
- Specified by:
getBlob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getClob
- Specified by:
getClob
in interfaceCallableStatement
- Specified by:
getClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getArray
- Specified by:
getArray
in interfaceCallableStatement
- Specified by:
getArray
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getRowId
- Specified by:
getRowId
in interfaceCallableStatement
- Specified by:
getRowId
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getRowId
- Specified by:
getRowId
in interfaceCallableStatement
- Specified by:
getRowId
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setRowId
- Specified by:
setRowId
in interfaceCallableStatement
- Specified by:
setRowId
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setNCharacterStream
public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException - Specified by:
setNCharacterStream
in interfaceCallableStatement
- Specified by:
setNCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setNClob
- Specified by:
setNClob
in interfaceCallableStatement
- Specified by:
setNClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setClob
- Specified by:
setClob
in interfaceCallableStatement
- Specified by:
setClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setBlob
- Specified by:
setBlob
in interfaceCallableStatement
- Specified by:
setBlob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setNClob
- Specified by:
setNClob
in interfaceCallableStatement
- Specified by:
setNClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getNClob
- Specified by:
getNClob
in interfaceCallableStatement
- Specified by:
getNClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getNClob
- Specified by:
getNClob
in interfaceCallableStatement
- Specified by:
getNClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setSQLXML
- Specified by:
setSQLXML
in interfaceCallableStatement
- Specified by:
setSQLXML
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getSQLXML
- Specified by:
getSQLXML
in interfaceCallableStatement
- Specified by:
getSQLXML
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getSQLXML
- Specified by:
getSQLXML
in interfaceCallableStatement
- Specified by:
getSQLXML
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getNCharacterStream
- Specified by:
getNCharacterStream
in interfaceCallableStatement
- Specified by:
getNCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getNCharacterStream
- Specified by:
getNCharacterStream
in interfaceCallableStatement
- Specified by:
getNCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceCallableStatement
- Specified by:
getCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceCallableStatement
- Specified by:
getCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setBlob
- Specified by:
setBlob
in interfaceCallableStatement
- Specified by:
setBlob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setClob
- Specified by:
setClob
in interfaceCallableStatement
- Specified by:
setClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Specified by:
setAsciiStream
in interfaceCallableStatement
- Specified by:
setAsciiStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Specified by:
setBinaryStream
in interfaceCallableStatement
- Specified by:
setBinaryStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setCharacterStream
public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException - Specified by:
setCharacterStream
in interfaceCallableStatement
- Specified by:
setCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Specified by:
setAsciiStream
in interfaceCallableStatement
- Specified by:
setAsciiStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Specified by:
setBinaryStream
in interfaceCallableStatement
- Specified by:
setBinaryStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setCharacterStream
- Specified by:
setCharacterStream
in interfaceCallableStatement
- Specified by:
setCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setNCharacterStream
- Specified by:
setNCharacterStream
in interfaceCallableStatement
- Specified by:
setNCharacterStream
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setClob
- Specified by:
setClob
in interfaceCallableStatement
- Specified by:
setClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setBlob
- Specified by:
setBlob
in interfaceCallableStatement
- Specified by:
setBlob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-
setNClob
- Specified by:
setNClob
in interfaceCallableStatement
- Specified by:
setNClob
in interfaceCallableStatementWrapper
- Throws:
SQLException
- See Also:
-