|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.lib.jdbc.DelegatingConnection
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.RefCountConnection
protected class JDBCStoreManager.RefCountConnection
Connection wrapper that keeps an internal ref count so that it knows when to really close.
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.RefCountConnection(Connection conn)
|
Method Summary | |
---|---|
void |
close()
|
protected Statement |
createStatement(boolean wrap)
|
protected Statement |
createStatement(int rsType,
int rsConcur,
boolean wrap)
|
void |
free()
|
boolean |
getRetain()
|
protected PreparedStatement |
prepareStatement(String sql,
boolean wrap)
|
protected PreparedStatement |
prepareStatement(String sql,
int rsType,
int rsConcur,
boolean wrap)
|
void |
ref()
|
void |
setRetain(boolean retain)
|
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection |
---|
appendInfo, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, 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, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JDBCStoreManager.RefCountConnection(Connection conn)
Method Detail |
---|
public boolean getRetain()
public void setRetain(boolean retain)
public void ref()
public void close() throws SQLException
close
in interface Connection
close
in interface org.apache.openjpa.lib.util.Closeable
close
in class org.apache.openjpa.lib.jdbc.DelegatingConnection
SQLException
public void free()
protected Statement createStatement(boolean wrap) throws SQLException
createStatement
in class org.apache.openjpa.lib.jdbc.DelegatingConnection
SQLException
protected Statement createStatement(int rsType, int rsConcur, boolean wrap) throws SQLException
createStatement
in class org.apache.openjpa.lib.jdbc.DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, boolean wrap) throws SQLException
prepareStatement
in class org.apache.openjpa.lib.jdbc.DelegatingConnection
SQLException
protected PreparedStatement prepareStatement(String sql, int rsType, int rsConcur, boolean wrap) throws SQLException
prepareStatement
in class org.apache.openjpa.lib.jdbc.DelegatingConnection
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |