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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()protected voidappendInfo(StringBuffer buf) voidcancel()protected voidclearLogParameters(boolean batch) voidbooleanexecute()booleanbooleanbooleanbooleanint[]protected ResultSetexecuteQuery(boolean wrap) Execute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.protected ResultSetexecuteQuery(String sql, boolean wrap) Execute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.intintexecuteUpdate(String sql) intexecuteUpdate(String s, int i) intexecuteUpdate(String s, int[] ia) intexecuteUpdate(String s, String[] sa) voidvoidsetAsciiStream(int i1, InputStream is, int i2) voidsetBigDecimal(int i, BigDecimal bd) voidsetBinaryStream(int i1, InputStream is, int i2) voidvoidsetBoolean(int i, boolean b) voidsetByte(int i, byte b) voidsetBytes(int i, byte[] b) voidsetCharacterStream(int i1, Reader r, int i2) voidvoidvoidvoidsetDouble(int i, double d) voidsetFloat(int i, float f) voidsetInt(int i1, int i2) voidsetLong(int i, long l) voidsetNull(int i1, int i2) voidvoidvoidvoidvoidvoidsetShort(int i, short s) voidvoidvoidvoidsetTimestamp(int i, Timestamp t) voidsetTimestamp(int i, Timestamp t, Calendar c) voidsetUnicodeStream(int i1, InputStream is, int i2) Deprecated.voidprotected ResultSetwrapResult(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, wrapResultMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.sql.CallableStatement
registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setObject, setObjectMethods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObjectMethods 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:DelegatingCallableStatementExecute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.- Overrides:
executeQueryin classDelegatingCallableStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingCallableStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingCallableStatement- Throws:
SQLException
-
executeQuery
Description copied from class:DelegatingCallableStatementExecute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.- Overrides:
executeQueryin classDelegatingCallableStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfacePreparedStatement- Overrides:
executeUpdatein classDelegatingCallableStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classDelegatingCallableStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfacePreparedStatement- Overrides:
executein classDelegatingCallableStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingCallableStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingCallableStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingCallableStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingCallableStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingCallableStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingCallableStatement- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Overrides:
cancelin classDelegatingCallableStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Overrides:
setNullin classDelegatingCallableStatement- Throws:
SQLException
-
setBoolean
- Specified by:
setBooleanin interfacePreparedStatement- Overrides:
setBooleanin classDelegatingCallableStatement- Throws:
SQLException
-
setByte
- Specified by:
setBytein interfacePreparedStatement- Overrides:
setBytein classDelegatingCallableStatement- Throws:
SQLException
-
setShort
- Specified by:
setShortin interfacePreparedStatement- Overrides:
setShortin classDelegatingCallableStatement- Throws:
SQLException
-
setInt
- Specified by:
setIntin interfacePreparedStatement- Overrides:
setIntin classDelegatingCallableStatement- Throws:
SQLException
-
setLong
- Specified by:
setLongin interfacePreparedStatement- Overrides:
setLongin classDelegatingCallableStatement- Throws:
SQLException
-
setFloat
- Specified by:
setFloatin interfacePreparedStatement- Overrides:
setFloatin classDelegatingCallableStatement- Throws:
SQLException
-
setDouble
- Specified by:
setDoublein interfacePreparedStatement- Overrides:
setDoublein classDelegatingCallableStatement- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimalin interfacePreparedStatement- Overrides:
setBigDecimalin classDelegatingCallableStatement- Throws:
SQLException
-
setString
- Specified by:
setStringin interfacePreparedStatement- Overrides:
setStringin classDelegatingCallableStatement- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfacePreparedStatement- Overrides:
setBytesin classDelegatingCallableStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Overrides:
setDatein classDelegatingCallableStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Overrides:
setTimein classDelegatingCallableStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Overrides:
setTimestampin classDelegatingCallableStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Overrides:
setAsciiStreamin classDelegatingCallableStatement- Throws:
SQLException
-
setUnicodeStream
Deprecated.- Specified by:
setUnicodeStreamin interfacePreparedStatement- Overrides:
setUnicodeStreamin classDelegatingCallableStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Overrides:
setBinaryStreamin classDelegatingCallableStatement- Throws:
SQLException
-
clearParameters
- Specified by:
clearParametersin interfacePreparedStatement- Overrides:
clearParametersin classDelegatingCallableStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classDelegatingCallableStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classDelegatingCallableStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classDelegatingCallableStatement- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfacePreparedStatement- Overrides:
addBatchin classDelegatingCallableStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Overrides:
setCharacterStreamin classDelegatingCallableStatement- Throws:
SQLException
-
setRef
- Specified by:
setRefin interfacePreparedStatement- Overrides:
setRefin classDelegatingCallableStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Overrides:
setBlobin classDelegatingCallableStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Overrides:
setClobin classDelegatingCallableStatement- Throws:
SQLException
-
setArray
- Specified by:
setArrayin interfacePreparedStatement- Overrides:
setArrayin classDelegatingCallableStatement- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfacePreparedStatement- Overrides:
getMetaDatain classDelegatingCallableStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Overrides:
setDatein classDelegatingCallableStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Overrides:
setTimein classDelegatingCallableStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Overrides:
setTimestampin classDelegatingCallableStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Overrides:
setNullin classDelegatingCallableStatement- Throws:
SQLException
-
setURL
- Specified by:
setURLin interfacePreparedStatement- Overrides:
setURLin classDelegatingCallableStatement- Throws:
SQLException
-
appendInfo
- Overrides:
appendInfoin classDelegatingCallableStatement
-
clearLogParameters
protected void clearLogParameters(boolean batch)
-