org.apache.openjpa.lib.jdbc
Class LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
java.lang.Object
   org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
       org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
- All Implemented Interfaces: 
- PreparedStatement, Statement, Wrapper, Closeable
- Enclosing class:
- LoggingConnectionDecorator.LoggingConnection
- protected abstract class LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement 
- extends DelegatingPreparedStatement
 
 
 
 
| Method Summary | 
|  void | addBatch()
 | 
| protected  void | appendInfo(StringBuffer buf)
 | 
|  void | cancel()
 | 
|  void | clearParameters()
 | 
|  boolean | execute()
 | 
|  boolean | execute(String sql)
 | 
|  boolean | execute(String s,
        int i)
 | 
|  boolean | execute(String s,
        int[] ia)
 | 
|  boolean | execute(String s,
        String[] sa)
 | 
|  int[] | executeBatch()
 | 
| protected  ResultSet | executeQuery(boolean wrap)Execute the query, with the option of not wrapping it in a
 DelegatingResultSet, which is the default. | 
| protected  ResultSet | executeQuery(String sql,
             boolean wrap)Execute the query, with the option of not wrapping it in a
 DelegatingResultSet, which is the default. | 
|  int | executeUpdate()
 | 
|  int | executeUpdate(String sql)
 | 
|  int | executeUpdate(String s,
              int i)
 | 
|  int | executeUpdate(String s,
              int[] ia)
 | 
|  int | executeUpdate(String s,
              String[] sa)
 | 
|  ResultSetMetaData | getMetaData()
 | 
|  void | setArray(int i,
         Array a)
 | 
|  void | setAsciiStream(int i1,
               InputStream is,
               int i2)
 | 
|  void | setBigDecimal(int i,
              BigDecimal bd)
 | 
|  void | setBinaryStream(int i1,
                InputStream is,
                int i2)
 | 
|  void | setBlob(int i,
        Blob b)
 | 
|  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 | setClob(int i,
        Clob c)
 | 
|  void | setDate(int i,
        Date d)
 | 
|  void | setDate(int i,
        Date d,
        Calendar c)
 | 
|  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 | setNull(int i1,
        int i2,
        String s)
 | 
|  void | setObject(int i,
          Object o)
 | 
|  void | setObject(int i1,
          Object o,
          int i2)
 | 
|  void | setObject(int i1,
          Object o,
          int i2,
          int i3)
 | 
|  void | setRef(int i,
       Ref r)
 | 
|  void | setShort(int i,
         short s)
 | 
|  void | setString(int i,
          String s)
 | 
|  void | setTime(int i,
        Time t)
 | 
|  void | setTime(int i,
        Time t,
        Calendar c)
 | 
|  void | setTimestamp(int i,
             Timestamp t)
 | 
|  void | setTimestamp(int i,
             Timestamp t,
             Calendar c)
 | 
|  void | setUnicodeStream(int i1,
                 InputStream is,
                 int i2)Deprecated.
 | 
|  void | setURL(int i,
       URL u)
 | 
| protected  ResultSet | wrapResult(ResultSet rs,
           boolean wrap)
 | 
 
| Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement | 
| addBatch, clearBatch, clearWarnings, close, equals, executeQuery, executeQuery, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, isClosed, isPoolable, isWrapperFor, newInstance, setAsciiStream, setAsciiStream, setBinaryStream, 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 | 
 
 
batchedRowsBaseIndex
int batchedRowsBaseIndex
LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
public LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement(PreparedStatement stmnt,
                                                                             String sql)
                                                                      throws SQLException
- Throws:
- SQLException
wrapResult
protected ResultSet wrapResult(ResultSet rs,
                               boolean wrap)
- 
- Overrides:
- wrapResultin class- DelegatingPreparedStatement
 
- 
 
executeQuery
protected ResultSet executeQuery(String sql,
                                 boolean wrap)
                          throws SQLException
- Description copied from class: DelegatingPreparedStatement
- Execute the query, with the option of not wrapping it in a
 DelegatingResultSet, which is the default.
 
- 
- Overrides:
- executeQueryin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String sql)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String sql)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeQuery
protected ResultSet executeQuery(boolean wrap)
                          throws SQLException
- Description copied from class: DelegatingPreparedStatement
- Execute the query, with the option of not wrapping it in a
 DelegatingResultSet, which is the default.
 
- 
- Overrides:
- executeQueryin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate()
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- PreparedStatement
- Overrides:
- executeUpdatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeBatch
public int[] executeBatch()
                   throws SQLException
- 
- Specified by:
- executeBatchin interface- Statement
- Overrides:
- executeBatchin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute()
                throws SQLException
- 
- Specified by:
- executein interface- PreparedStatement
- Overrides:
- executein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String s,
                         int i)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String s,
                         int[] ia)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String s,
                         String[] sa)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String s,
                       int i)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String s,
                       int[] ia)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String s,
                       String[] sa)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
cancel
public void cancel()
            throws SQLException
- 
- Specified by:
- cancelin interface- Statement
- Overrides:
- cancelin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setNull
public void setNull(int i1,
                    int i2)
             throws SQLException
- 
- Specified by:
- setNullin interface- PreparedStatement
- Overrides:
- setNullin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setBoolean
public void setBoolean(int i,
                       boolean b)
                throws SQLException
- 
- Specified by:
- setBooleanin interface- PreparedStatement
- Overrides:
- setBooleanin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setByte
public void setByte(int i,
                    byte b)
             throws SQLException
- 
- Specified by:
- setBytein interface- PreparedStatement
- Overrides:
- setBytein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setShort
public void setShort(int i,
                     short s)
              throws SQLException
- 
- Specified by:
- setShortin interface- PreparedStatement
- Overrides:
- setShortin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setInt
public void setInt(int i1,
                   int i2)
            throws SQLException
- 
- Specified by:
- setIntin interface- PreparedStatement
- Overrides:
- setIntin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setLong
public void setLong(int i,
                    long l)
             throws SQLException
- 
- Specified by:
- setLongin interface- PreparedStatement
- Overrides:
- setLongin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setFloat
public void setFloat(int i,
                     float f)
              throws SQLException
- 
- Specified by:
- setFloatin interface- PreparedStatement
- Overrides:
- setFloatin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setDouble
public void setDouble(int i,
                      double d)
               throws SQLException
- 
- Specified by:
- setDoublein interface- PreparedStatement
- Overrides:
- setDoublein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setBigDecimal
public void setBigDecimal(int i,
                          BigDecimal bd)
                   throws SQLException
- 
- Specified by:
- setBigDecimalin interface- PreparedStatement
- Overrides:
- setBigDecimalin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setString
public void setString(int i,
                      String s)
               throws SQLException
- 
- Specified by:
- setStringin interface- PreparedStatement
- Overrides:
- setStringin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setBytes
public void setBytes(int i,
                     byte[] b)
              throws SQLException
- 
- Specified by:
- setBytesin interface- PreparedStatement
- Overrides:
- setBytesin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setDate
public void setDate(int i,
                    Date d)
             throws SQLException
- 
- Specified by:
- setDatein interface- PreparedStatement
- Overrides:
- setDatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setTime
public void setTime(int i,
                    Time t)
             throws SQLException
- 
- Specified by:
- setTimein interface- PreparedStatement
- Overrides:
- setTimein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setTimestamp
public void setTimestamp(int i,
                         Timestamp t)
                  throws SQLException
- 
- Specified by:
- setTimestampin interface- PreparedStatement
- Overrides:
- setTimestampin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setAsciiStream
public void setAsciiStream(int i1,
                           InputStream is,
                           int i2)
                    throws SQLException
- 
- Specified by:
- setAsciiStreamin interface- PreparedStatement
- Overrides:
- setAsciiStreamin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setUnicodeStream
@Deprecated
public void setUnicodeStream(int i1,
                                        InputStream is,
                                        int i2)
                      throws SQLException
- Deprecated. 
 
- 
- Specified by:
- setUnicodeStreamin interface- PreparedStatement
- Overrides:
- setUnicodeStreamin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setBinaryStream
public void setBinaryStream(int i1,
                            InputStream is,
                            int i2)
                     throws SQLException
- 
- Specified by:
- setBinaryStreamin interface- PreparedStatement
- Overrides:
- setBinaryStreamin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
clearParameters
public void clearParameters()
                     throws SQLException
- 
- Specified by:
- clearParametersin interface- PreparedStatement
- Overrides:
- clearParametersin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setObject
public void setObject(int i1,
                      Object o,
                      int i2,
                      int i3)
               throws SQLException
- 
- Specified by:
- setObjectin interface- PreparedStatement
- Overrides:
- setObjectin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setObject
public void setObject(int i1,
                      Object o,
                      int i2)
               throws SQLException
- 
- Specified by:
- setObjectin interface- PreparedStatement
- Overrides:
- setObjectin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setObject
public void setObject(int i,
                      Object o)
               throws SQLException
- 
- Specified by:
- setObjectin interface- PreparedStatement
- Overrides:
- setObjectin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
addBatch
public void addBatch()
              throws SQLException
- 
- Specified by:
- addBatchin interface- PreparedStatement
- Overrides:
- addBatchin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setCharacterStream
public void setCharacterStream(int i1,
                               Reader r,
                               int i2)
                        throws SQLException
- 
- Specified by:
- setCharacterStreamin interface- PreparedStatement
- Overrides:
- setCharacterStreamin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setRef
public void setRef(int i,
                   Ref r)
            throws SQLException
- 
- Specified by:
- setRefin interface- PreparedStatement
- Overrides:
- setRefin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setBlob
public void setBlob(int i,
                    Blob b)
             throws SQLException
- 
- Specified by:
- setBlobin interface- PreparedStatement
- Overrides:
- setBlobin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setClob
public void setClob(int i,
                    Clob c)
             throws SQLException
- 
- Specified by:
- setClobin interface- PreparedStatement
- Overrides:
- setClobin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setArray
public void setArray(int i,
                     Array a)
              throws SQLException
- 
- Specified by:
- setArrayin interface- PreparedStatement
- Overrides:
- setArrayin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
getMetaData
public ResultSetMetaData getMetaData()
                              throws SQLException
- 
- Specified by:
- getMetaDatain interface- PreparedStatement
- Overrides:
- getMetaDatain class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setDate
public void setDate(int i,
                    Date d,
                    Calendar c)
             throws SQLException
- 
- Specified by:
- setDatein interface- PreparedStatement
- Overrides:
- setDatein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setTime
public void setTime(int i,
                    Time t,
                    Calendar c)
             throws SQLException
- 
- Specified by:
- setTimein interface- PreparedStatement
- Overrides:
- setTimein class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setTimestamp
public void setTimestamp(int i,
                         Timestamp t,
                         Calendar c)
                  throws SQLException
- 
- Specified by:
- setTimestampin interface- PreparedStatement
- Overrides:
- setTimestampin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setNull
public void setNull(int i1,
                    int i2,
                    String s)
             throws SQLException
- 
- Specified by:
- setNullin interface- PreparedStatement
- Overrides:
- setNullin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
setURL
public void setURL(int i,
                   URL u)
            throws SQLException
- 
- Specified by:
- setURLin interface- PreparedStatement
- Overrides:
- setURLin class- DelegatingPreparedStatement
 
- 
- Throws:
- SQLException
 
appendInfo
protected void appendInfo(StringBuffer buf)
- 
- Overrides:
- appendInfoin class- DelegatingPreparedStatement
 
- 
 
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.