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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()protected voidappendInfo(StringBuffer buf) voidcancel()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) 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.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, unwrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
LoggingPreparedStatement
- Throws:
SQLException
-
-
Method Details
-
wrapResult
- Overrides:
wrapResultin classDelegatingPreparedStatement
-
executeQuery
Description copied from class:DelegatingPreparedStatementExecute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.- Overrides:
executeQueryin classDelegatingPreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingPreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingPreparedStatement- Throws:
SQLException
-
executeQuery
Description copied from class:DelegatingPreparedStatementExecute the query, with the option of not wrapping it in aDelegatingResultSet, which is the default.- Overrides:
executeQueryin classDelegatingPreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfacePreparedStatement- Overrides:
executeUpdatein classDelegatingPreparedStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classDelegatingPreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfacePreparedStatement- Overrides:
executein classDelegatingPreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingPreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingPreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classDelegatingPreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingPreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingPreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classDelegatingPreparedStatement- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Overrides:
cancelin classDelegatingPreparedStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Overrides:
setNullin classDelegatingPreparedStatement- Throws:
SQLException
-
setBoolean
- Specified by:
setBooleanin interfacePreparedStatement- Overrides:
setBooleanin classDelegatingPreparedStatement- Throws:
SQLException
-
setByte
- Specified by:
setBytein interfacePreparedStatement- Overrides:
setBytein classDelegatingPreparedStatement- Throws:
SQLException
-
setShort
- Specified by:
setShortin interfacePreparedStatement- Overrides:
setShortin classDelegatingPreparedStatement- Throws:
SQLException
-
setInt
- Specified by:
setIntin interfacePreparedStatement- Overrides:
setIntin classDelegatingPreparedStatement- Throws:
SQLException
-
setLong
- Specified by:
setLongin interfacePreparedStatement- Overrides:
setLongin classDelegatingPreparedStatement- Throws:
SQLException
-
setFloat
- Specified by:
setFloatin interfacePreparedStatement- Overrides:
setFloatin classDelegatingPreparedStatement- Throws:
SQLException
-
setDouble
- Specified by:
setDoublein interfacePreparedStatement- Overrides:
setDoublein classDelegatingPreparedStatement- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimalin interfacePreparedStatement- Overrides:
setBigDecimalin classDelegatingPreparedStatement- Throws:
SQLException
-
setString
- Specified by:
setStringin interfacePreparedStatement- Overrides:
setStringin classDelegatingPreparedStatement- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfacePreparedStatement- Overrides:
setBytesin classDelegatingPreparedStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Overrides:
setDatein classDelegatingPreparedStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Overrides:
setTimein classDelegatingPreparedStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Overrides:
setTimestampin classDelegatingPreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Overrides:
setAsciiStreamin classDelegatingPreparedStatement- Throws:
SQLException
-
setUnicodeStream
Deprecated.- Specified by:
setUnicodeStreamin interfacePreparedStatement- Overrides:
setUnicodeStreamin classDelegatingPreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Overrides:
setBinaryStreamin classDelegatingPreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Overrides:
setBinaryStreamin classDelegatingPreparedStatement- Throws:
SQLException
-
clearParameters
- Specified by:
clearParametersin interfacePreparedStatement- Overrides:
clearParametersin classDelegatingPreparedStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classDelegatingPreparedStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classDelegatingPreparedStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Overrides:
setObjectin classDelegatingPreparedStatement- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfacePreparedStatement- Overrides:
addBatchin classDelegatingPreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Overrides:
setCharacterStreamin classDelegatingPreparedStatement- Throws:
SQLException
-
setRef
- Specified by:
setRefin interfacePreparedStatement- Overrides:
setRefin classDelegatingPreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Overrides:
setBlobin classDelegatingPreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Overrides:
setClobin classDelegatingPreparedStatement- Throws:
SQLException
-
setArray
- Specified by:
setArrayin interfacePreparedStatement- Overrides:
setArrayin classDelegatingPreparedStatement- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfacePreparedStatement- Overrides:
getMetaDatain classDelegatingPreparedStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Overrides:
setDatein classDelegatingPreparedStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Overrides:
setTimein classDelegatingPreparedStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Overrides:
setTimestampin classDelegatingPreparedStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Overrides:
setNullin classDelegatingPreparedStatement- Throws:
SQLException
-
setURL
- Specified by:
setURLin interfacePreparedStatement- Overrides:
setURLin classDelegatingPreparedStatement- Throws:
SQLException
-
appendInfo
- Overrides:
appendInfoin classDelegatingPreparedStatement
-