org.apache.openjpa.jdbc.kernel
Class JDBCStoreManager.RefCountConnection
java.lang.Object
org.apache.openjpa.lib.jdbc.DelegatingConnection
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.RefCountConnection
- All Implemented Interfaces:
- Connection, Wrapper, Closeable
- Enclosing class:
- JDBCStoreManager
protected class JDBCStoreManager.RefCountConnection
- extends DelegatingConnection
Connection wrapper that keeps an internal ref count so that it knows
when to really close.
| Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection |
abort, appendInfo, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrap |
JDBCStoreManager.RefCountConnection
public JDBCStoreManager.RefCountConnection(Connection conn)
getRetain
public boolean getRetain()
setRetain
public void setRetain(boolean retain)
ref
public void ref()
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
free
public void free()
createStatement
protected Statement createStatement(boolean wrap)
throws SQLException
- Overrides:
createStatement in class DelegatingConnection
- Throws:
SQLException
createStatement
protected Statement createStatement(int rsType,
int rsConcur,
boolean wrap)
throws SQLException
- Overrides:
createStatement in class DelegatingConnection
- Throws:
SQLException
prepareStatement
protected PreparedStatement prepareStatement(String sql,
boolean wrap)
throws SQLException
- Overrides:
prepareStatement in class DelegatingConnection
- Throws:
SQLException
prepareStatement
protected PreparedStatement prepareStatement(String sql,
int rsType,
int rsConcur,
boolean wrap)
throws SQLException
- Overrides:
prepareStatement in class DelegatingConnection
- Throws:
SQLException
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.