Package org.apache.openjpa.lib.jdbc
Class LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement
java.lang.Object
org.apache.openjpa.lib.jdbc.DelegatingCallableStatement
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement
- All Implemented Interfaces:
AutoCloseable
,CallableStatement
,PreparedStatement
,Statement
,Wrapper
,Closeable
- Enclosing class:
- LoggingConnectionDecorator.LoggingConnection
protected class LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement
extends DelegatingCallableStatement
CallableStatement decorated with logging.
Similar to
LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
but can not be extended
due to the existing delegation hierarchy.-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatch()
protected void
appendInfo
(StringBuffer buf) void
cancel()
protected void
clearLogParameters
(boolean batch) void
boolean
execute()
boolean
boolean
boolean
boolean
int[]
protected ResultSet
executeQuery
(boolean wrap) Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.protected ResultSet
executeQuery
(String sql, boolean wrap) Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.int
int
executeUpdate
(String sql) int
executeUpdate
(String s, int i) int
executeUpdate
(String s, int[] ia) int
executeUpdate
(String s, String[] sa) void
void
setAsciiStream
(int i1, InputStream is, int i2) void
setBigDecimal
(int i, BigDecimal bd) void
setBinaryStream
(int i1, InputStream is, int i2) void
void
setBoolean
(int i, boolean b) void
setByte
(int i, byte b) void
setBytes
(int i, byte[] b) void
setCharacterStream
(int i1, Reader r, int i2) void
void
void
void
setDouble
(int i, double d) void
setFloat
(int i, float f) void
setInt
(int i1, int i2) void
setLong
(int i, long l) void
setNull
(int i1, int i2) void
void
void
void
void
void
setShort
(int i, short s) void
void
void
void
setTimestamp
(int i, Timestamp t) void
setTimestamp
(int i, Timestamp t, Calendar c) void
setUnicodeStream
(int i1, InputStream is, int i2) Deprecated.void
protected ResultSet
wrapResult
(ResultSet rs, boolean wrap) Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingCallableStatement
addBatch, clearBatch, clearWarnings, close, closeOnCompletion, equals, executeQuery, executeQuery, getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConnection, getDate, getDate, getDate, getDate, getDelegate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getGeneratedKeys, getInnermostDelegate, getInt, getInt, getLong, getLong, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getParameterMetaData, getQueryTimeout, getRef, getRef, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUpdateCount, getURL, getURL, getWarnings, hashCode, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setAsciiStream, setAsciiStream, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setClob, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNCharacterStream, setNCharacterStream, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNClob, setNClob, setNClob, setNString, setNString, setNull, setNull, setObject, setObject, setObject, setPoolable, setQueryTimeout, setRowId, setRowId, setShort, setSQLXML, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, toString, unwrap, wasNull, wrapResult
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.sql.CallableStatement
registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setObject, setObject
Methods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObject
Methods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRows
-
Constructor Details
-
LoggingCallableStatement
- Throws:
SQLException
-
-
Method Details
-
wrapResult
-
executeQuery
Description copied from class:DelegatingCallableStatement
Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.- Overrides:
executeQuery
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingCallableStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeQuery
Description copied from class:DelegatingCallableStatement
Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.- Overrides:
executeQuery
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfacePreparedStatement
- Overrides:
executeUpdate
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatch
in interfaceStatement
- Overrides:
executeBatch
in classDelegatingCallableStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfacePreparedStatement
- Overrides:
execute
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingCallableStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingCallableStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingCallableStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingCallableStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingCallableStatement
- Throws:
SQLException
-
cancel
- Specified by:
cancel
in interfaceStatement
- Overrides:
cancel
in classDelegatingCallableStatement
- Throws:
SQLException
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Overrides:
setNull
in classDelegatingCallableStatement
- Throws:
SQLException
-
setBoolean
- Specified by:
setBoolean
in interfacePreparedStatement
- Overrides:
setBoolean
in classDelegatingCallableStatement
- Throws:
SQLException
-
setByte
- Specified by:
setByte
in interfacePreparedStatement
- Overrides:
setByte
in classDelegatingCallableStatement
- Throws:
SQLException
-
setShort
- Specified by:
setShort
in interfacePreparedStatement
- Overrides:
setShort
in classDelegatingCallableStatement
- Throws:
SQLException
-
setInt
- Specified by:
setInt
in interfacePreparedStatement
- Overrides:
setInt
in classDelegatingCallableStatement
- Throws:
SQLException
-
setLong
- Specified by:
setLong
in interfacePreparedStatement
- Overrides:
setLong
in classDelegatingCallableStatement
- Throws:
SQLException
-
setFloat
- Specified by:
setFloat
in interfacePreparedStatement
- Overrides:
setFloat
in classDelegatingCallableStatement
- Throws:
SQLException
-
setDouble
- Specified by:
setDouble
in interfacePreparedStatement
- Overrides:
setDouble
in classDelegatingCallableStatement
- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimal
in interfacePreparedStatement
- Overrides:
setBigDecimal
in classDelegatingCallableStatement
- Throws:
SQLException
-
setString
- Specified by:
setString
in interfacePreparedStatement
- Overrides:
setString
in classDelegatingCallableStatement
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfacePreparedStatement
- Overrides:
setBytes
in classDelegatingCallableStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Overrides:
setDate
in classDelegatingCallableStatement
- Throws:
SQLException
-
setTime
- Specified by:
setTime
in interfacePreparedStatement
- Overrides:
setTime
in classDelegatingCallableStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Overrides:
setTimestamp
in classDelegatingCallableStatement
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Overrides:
setAsciiStream
in classDelegatingCallableStatement
- Throws:
SQLException
-
setUnicodeStream
Deprecated.- Specified by:
setUnicodeStream
in interfacePreparedStatement
- Overrides:
setUnicodeStream
in classDelegatingCallableStatement
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Overrides:
setBinaryStream
in classDelegatingCallableStatement
- Throws:
SQLException
-
clearParameters
- Specified by:
clearParameters
in interfacePreparedStatement
- Overrides:
clearParameters
in classDelegatingCallableStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classDelegatingCallableStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classDelegatingCallableStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classDelegatingCallableStatement
- Throws:
SQLException
-
addBatch
- Specified by:
addBatch
in interfacePreparedStatement
- Overrides:
addBatch
in classDelegatingCallableStatement
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Overrides:
setCharacterStream
in classDelegatingCallableStatement
- Throws:
SQLException
-
setRef
- Specified by:
setRef
in interfacePreparedStatement
- Overrides:
setRef
in classDelegatingCallableStatement
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Overrides:
setBlob
in classDelegatingCallableStatement
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Overrides:
setClob
in classDelegatingCallableStatement
- Throws:
SQLException
-
setArray
- Specified by:
setArray
in interfacePreparedStatement
- Overrides:
setArray
in classDelegatingCallableStatement
- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaData
in interfacePreparedStatement
- Overrides:
getMetaData
in classDelegatingCallableStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Overrides:
setDate
in classDelegatingCallableStatement
- Throws:
SQLException
-
setTime
- Specified by:
setTime
in interfacePreparedStatement
- Overrides:
setTime
in classDelegatingCallableStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Overrides:
setTimestamp
in classDelegatingCallableStatement
- Throws:
SQLException
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Overrides:
setNull
in classDelegatingCallableStatement
- Throws:
SQLException
-
setURL
- Specified by:
setURL
in interfacePreparedStatement
- Overrides:
setURL
in classDelegatingCallableStatement
- Throws:
SQLException
-
appendInfo
- Overrides:
appendInfo
in classDelegatingCallableStatement
-
clearLogParameters
protected void clearLogParameters(boolean batch)
-