org.apache.openjpa.lib.jdbc
Class JDBCEventConnectionDecorator.EventConnection
java.lang.Object
   org.apache.openjpa.lib.jdbc.DelegatingConnection
org.apache.openjpa.lib.jdbc.DelegatingConnection
       org.apache.openjpa.lib.jdbc.JDBCEventConnectionDecorator.EventConnection
org.apache.openjpa.lib.jdbc.JDBCEventConnectionDecorator.EventConnection
- All Implemented Interfaces: 
- Connection, Wrapper, Closeable
- Enclosing class:
- JDBCEventConnectionDecorator
- protected abstract class JDBCEventConnectionDecorator.EventConnection 
- extends DelegatingConnection
Fires events as appropriate.
 
 
 
 
| Method Summary | 
|  void | close()
 | 
|  void | commit()
 | 
| protected  Statement | createStatement(boolean wrap)Create a statement, with the option of not wrapping it in a
 DelegatingStatement, which is the default. | 
| protected  Statement | createStatement(int rsType,
                int rsConcur,
                boolean wrap)Create a statement, with the option of not wrapping it in a
 DelegatingStatement, which is the default. | 
| protected  PreparedStatement | prepareStatement(String sql,
                 boolean wrap)Prepare a statement, with the option of not wrapping it in a
 DelegatingPreparedStatement, which is the default. | 
| protected  PreparedStatement | prepareStatement(String sql,
                 int rsType,
                 int rsConcur,
                 boolean wrap)Prepare a statement, with the option of not wrapping it in a
 DelegatingPreparedStatement, which is the default. | 
|  void | rollback()
 | 
 
| Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection | 
| appendInfo, clearWarnings, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStruct, enforceAbstract, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, newInstance, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap | 
 
 
JDBCEventConnectionDecorator.EventConnection
public JDBCEventConnectionDecorator.EventConnection(Connection conn)
commit
public void commit()
            throws SQLException
- 
- Specified by:
- commitin interface- Connection
- Overrides:
- commitin class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
rollback
public void rollback()
              throws SQLException
- 
- Specified by:
- rollbackin interface- Connection
- Overrides:
- rollbackin class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
createStatement
protected Statement createStatement(boolean wrap)
                             throws SQLException
- Description copied from class: DelegatingConnection
- Create a statement, with the option of not wrapping it in a
 DelegatingStatement, which is the default.
 
- 
- Overrides:
- createStatementin class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
createStatement
protected Statement createStatement(int rsType,
                                    int rsConcur,
                                    boolean wrap)
                             throws SQLException
- Description copied from class: DelegatingConnection
- Create a statement, with the option of not wrapping it in a
 DelegatingStatement, which is the default.
 
- 
- Overrides:
- createStatementin class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
prepareStatement
protected PreparedStatement prepareStatement(String sql,
                                             boolean wrap)
                                      throws SQLException
- Description copied from class: DelegatingConnection
- Prepare a statement, with the option of not wrapping it in a
 DelegatingPreparedStatement, which is the default.
 
- 
- Overrides:
- prepareStatementin class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
prepareStatement
protected PreparedStatement prepareStatement(String sql,
                                             int rsType,
                                             int rsConcur,
                                             boolean wrap)
                                      throws SQLException
- Description copied from class: DelegatingConnection
- Prepare a statement, with the option of not wrapping it in a
 DelegatingPreparedStatement, which is the default.
 
- 
- Overrides:
- prepareStatementin class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
close
public void close()
           throws SQLException
- 
- Specified by:
- closein interface- Connection
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- DelegatingConnection
 
- 
- Throws:
- SQLException
 
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.