org.apache.openjpa.jdbc.kernel
Class JDBCStoreManager.ClientConnection

java.lang.Object
  extended by org.apache.openjpa.lib.jdbc.DelegatingConnection
      extended by org.apache.openjpa.jdbc.kernel.JDBCStoreManager.ClientConnection
All Implemented Interfaces:
Connection, Wrapper, Closeable
Enclosing class:
JDBCStoreManager

public abstract static class JDBCStoreManager.ClientConnection
extends DelegatingConnection

Connection returned to client code. Makes sure its wrapped connection ref count is decremented on finalize.


Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
JDBCStoreManager.ClientConnection(Connection conn)
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection
appendInfo, clearWarnings, commit, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, enforceAbstract, equals, getAutoCommit, getCatalog, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isWrapperFor, nativeSQL, newInstance, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.Connection
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo
 

Constructor Detail

JDBCStoreManager.ClientConnection

public JDBCStoreManager.ClientConnection(Connection conn)
Method Detail

close

public void close()
           throws SQLException
Specified by:
close in interface Connection
Specified by:
close in interface Closeable
Overrides:
close in class DelegatingConnection
Throws:
SQLException

finalize

protected void finalize()
                 throws SQLException
Overrides:
finalize in class Object
Throws:
SQLException


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.