org.apache.openjpa.jdbc.kernel
protected abstract class JDBCStoreManager.RefCountConnection extends DelegatingConnection
Constructor and Description |
---|
JDBCStoreManager.RefCountConnection(java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected java.sql.Statement |
createStatement(boolean wrap)
Create a statement, with the option of not wrapping it in a
DelegatingStatement , which is the default. |
protected java.sql.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. |
void |
free() |
boolean |
getRetain() |
protected java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
boolean wrap)
Prepare a statement, with the option of not wrapping it in a
DelegatingPreparedStatement , which is the default. |
protected java.sql.PreparedStatement |
prepareStatement(java.lang.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 |
ref() |
void |
setRetain(boolean retain) |
appendInfo, clearWarnings, commit, 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, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
public JDBCStoreManager.RefCountConnection(java.sql.Connection conn)
public boolean getRetain()
public void setRetain(boolean retain)
public void ref()
public void close() throws java.sql.SQLException
close
in interface java.sql.Connection
close
in interface Closeable
close
in class DelegatingConnection
java.sql.SQLException
public void free()
protected java.sql.Statement createStatement(boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingStatement
, which is the default.createStatement
in class DelegatingConnection
java.sql.SQLException
protected java.sql.Statement createStatement(int rsType, int rsConcur, boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingStatement
, which is the default.createStatement
in class DelegatingConnection
java.sql.SQLException
protected java.sql.PreparedStatement prepareStatement(java.lang.String sql, boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingPreparedStatement
, which is the default.prepareStatement
in class DelegatingConnection
java.sql.SQLException
protected java.sql.PreparedStatement prepareStatement(java.lang.String sql, int rsType, int rsConcur, boolean wrap) throws java.sql.SQLException
DelegatingConnection
DelegatingPreparedStatement
, which is the default.prepareStatement
in class DelegatingConnection
java.sql.SQLException