Package org.apache.openjpa.lib.jdbc
Class LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
java.lang.Object
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
- All Implemented Interfaces:
AutoCloseable
,PreparedStatement
,Statement
,Wrapper
,Closeable
- Enclosing class:
- LoggingConnectionDecorator.LoggingConnection
protected class LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
extends DelegatingPreparedStatement
-
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()
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) 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.DelegatingPreparedStatement
addBatch, clearBatch, clearWarnings, close, closeOnCompletion, equals, executeQuery, executeQuery, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, initialize, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setAsciiStream, setAsciiStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setPoolable, setQueryTimeout, setRowId, setSQLXML, toString, unwrap
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
-
LoggingPreparedStatement
- Throws:
SQLException
-
-
Method Details
-
wrapResult
- Overrides:
wrapResult
in classDelegatingPreparedStatement
-
executeQuery
Description copied from class:DelegatingPreparedStatement
Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.- Overrides:
executeQuery
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeQuery
Description copied from class:DelegatingPreparedStatement
Execute the query, with the option of not wrapping it in aDelegatingResultSet
, which is the default.- Overrides:
executeQuery
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfacePreparedStatement
- Overrides:
executeUpdate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatch
in interfaceStatement
- Overrides:
executeBatch
in classDelegatingPreparedStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfacePreparedStatement
- Overrides:
execute
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingPreparedStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingPreparedStatement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classDelegatingPreparedStatement
- Throws:
SQLException
-
cancel
- Specified by:
cancel
in interfaceStatement
- Overrides:
cancel
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Overrides:
setNull
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setBoolean
- Specified by:
setBoolean
in interfacePreparedStatement
- Overrides:
setBoolean
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setByte
- Specified by:
setByte
in interfacePreparedStatement
- Overrides:
setByte
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setShort
- Specified by:
setShort
in interfacePreparedStatement
- Overrides:
setShort
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setInt
- Specified by:
setInt
in interfacePreparedStatement
- Overrides:
setInt
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setLong
- Specified by:
setLong
in interfacePreparedStatement
- Overrides:
setLong
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setFloat
- Specified by:
setFloat
in interfacePreparedStatement
- Overrides:
setFloat
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setDouble
- Specified by:
setDouble
in interfacePreparedStatement
- Overrides:
setDouble
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimal
in interfacePreparedStatement
- Overrides:
setBigDecimal
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setString
- Specified by:
setString
in interfacePreparedStatement
- Overrides:
setString
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfacePreparedStatement
- Overrides:
setBytes
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Overrides:
setDate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setTime
- Specified by:
setTime
in interfacePreparedStatement
- Overrides:
setTime
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Overrides:
setTimestamp
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfacePreparedStatement
- Overrides:
setAsciiStream
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setUnicodeStream
Deprecated.- Specified by:
setUnicodeStream
in interfacePreparedStatement
- Overrides:
setUnicodeStream
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Overrides:
setBinaryStream
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfacePreparedStatement
- Overrides:
setBinaryStream
in classDelegatingPreparedStatement
- Throws:
SQLException
-
clearParameters
- Specified by:
clearParameters
in interfacePreparedStatement
- Overrides:
clearParameters
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classDelegatingPreparedStatement
- Throws:
SQLException
-
addBatch
- Specified by:
addBatch
in interfacePreparedStatement
- Overrides:
addBatch
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfacePreparedStatement
- Overrides:
setCharacterStream
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setRef
- Specified by:
setRef
in interfacePreparedStatement
- Overrides:
setRef
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setBlob
- Specified by:
setBlob
in interfacePreparedStatement
- Overrides:
setBlob
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setClob
- Specified by:
setClob
in interfacePreparedStatement
- Overrides:
setClob
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setArray
- Specified by:
setArray
in interfacePreparedStatement
- Overrides:
setArray
in classDelegatingPreparedStatement
- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaData
in interfacePreparedStatement
- Overrides:
getMetaData
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Overrides:
setDate
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setTime
- Specified by:
setTime
in interfacePreparedStatement
- Overrides:
setTime
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Overrides:
setTimestamp
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Overrides:
setNull
in classDelegatingPreparedStatement
- Throws:
SQLException
-
setURL
- Specified by:
setURL
in interfacePreparedStatement
- Overrides:
setURL
in classDelegatingPreparedStatement
- Throws:
SQLException
-
appendInfo
- Overrides:
appendInfo
in classDelegatingPreparedStatement
-