public class StandardConnectionHandle extends CoreConnection
| Modifier and Type | Field and Description |
|---|---|
Hashtable |
inUse |
boolean |
isReallyUsed |
protected Hashtable |
masterPrepStmtCache |
protected LRUCache |
preparedStatementCache |
conTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
StandardConnectionHandle(StandardPooledConnection pooledCon,
Hashtable preparedStatementCache,
int preparedStmtCacheSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
catchInvoke(SQLException e)
Exception management : catch or throw the exception
|
void |
close()
Closes this StandardConnectionHandle and prevents it
from being reused.
|
protected PreparedStatement |
createPreparedStatement(String sql,
int autogeneratedkeys) |
protected PreparedStatement |
createPreparedStatement(String sql,
int type,
int concurrency,
int holdability) |
boolean |
isClosed() |
void |
preInvoke()
Pre-invokation of the delegation, in case of connection is
closed, we throw an exception
|
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sql)
Creates a PreparedStatement for the given SQL.
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
Creates a PreparedStatement for the given SQL, type and concurrency.
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
protected void |
setupPreparedStatementCache() |
abort, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrapprotected Hashtable masterPrepStmtCache
protected LRUCache preparedStatementCache
public Hashtable inUse
public boolean isReallyUsed
public StandardConnectionHandle(StandardPooledConnection pooledCon, Hashtable preparedStatementCache, int preparedStmtCacheSize)
protected void setupPreparedStatementCache()
public void preInvoke()
throws SQLException
preInvoke in class CoreConnectionSQLExceptionpublic void catchInvoke(SQLException e) throws SQLException
catchInvoke in class CoreConnectionSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface Connectionclose in class CoreConnectionSQLExceptionprotected PreparedStatement createPreparedStatement(String sql, int type, int concurrency, int holdability) throws SQLException
SQLExceptionprotected PreparedStatement createPreparedStatement(String sql, int autogeneratedkeys) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class CoreConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class CoreConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class CoreConnectionSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface ConnectionisClosed in class CoreConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall in interface ConnectionprepareCall in class CoreConnectionSQLExceptionCopyright © 2014–2015. All rights reserved.