org.apache.openjpa.lib.jdbc
Class LoggingConnectionDecorator.LoggingConnection.LoggingStatement
java.lang.Object
   org.apache.openjpa.lib.jdbc.DelegatingStatement
org.apache.openjpa.lib.jdbc.DelegatingStatement
       org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingStatement
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingStatement
- All Implemented Interfaces: 
- Statement, Wrapper, Closeable
- Enclosing class:
- LoggingConnectionDecorator.LoggingConnection
- protected class LoggingConnectionDecorator.LoggingConnection.LoggingStatement 
- extends DelegatingStatement
Statement wrapper that logs SQL to the parent data source and
 remembers the last piece of SQL to be executed on it.
 
 
 
| Method Summary | 
|  void | appendInfo(StringBuffer buf)
 | 
|  void | cancel()
 | 
|  boolean | execute(String sql)
 | 
|  boolean | execute(String sql,
        int i)
 | 
|  boolean | execute(String sql,
        int[] ia)
 | 
|  boolean | execute(String sql,
        String[] sa)
 | 
| 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(String sql)
 | 
|  int | executeUpdate(String sql,
              int i)
 | 
|  int | executeUpdate(String sql,
              int[] ia)
 | 
|  int | executeUpdate(String sql,
              String[] sa)
 | 
| protected  ResultSet | wrapResult(ResultSet rs,
           boolean wrap)
 | 
 
| Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingStatement | 
| addBatch, clearBatch, clearWarnings, close, closeOnCompletion, equals, executeBatch, executeQuery, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, hashCode, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, toString, unwrap | 
 
 
LoggingConnectionDecorator.LoggingConnection.LoggingStatement
public LoggingConnectionDecorator.LoggingConnection.LoggingStatement(Statement stmnt)
                                                              throws SQLException
- Throws:
- SQLException
appendInfo
public void appendInfo(StringBuffer buf)
- 
- Overrides:
- appendInfoin class- DelegatingStatement
 
- 
 
wrapResult
protected ResultSet wrapResult(ResultSet rs,
                               boolean wrap)
- 
- Overrides:
- wrapResultin class- DelegatingStatement
 
- 
 
cancel
public void cancel()
            throws SQLException
- 
- Specified by:
- cancelin interface- Statement
- Overrides:
- cancelin class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
executeQuery
protected ResultSet executeQuery(String sql,
                                 boolean wrap)
                          throws SQLException
- Description copied from class: DelegatingStatement
- Execute the query, with the option of not wrapping it in a
 DelegatingResultSet, which is the default.
 
- 
- Overrides:
- executeQueryin class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String sql)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String sql)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String sql,
                         int i)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String sql,
                         int[] ia)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate(String sql,
                         String[] sa)
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- Statement
- Overrides:
- executeUpdatein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String sql,
                       int i)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String sql,
                       int[] ia)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute(String sql,
                       String[] sa)
                throws SQLException
- 
- Specified by:
- executein interface- Statement
- Overrides:
- executein class- DelegatingStatement
 
- 
- Throws:
- SQLException
 
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.