public class StandardXAConnectionHandle extends StandardConnectionHandle
| Modifier and Type | Field and Description |
|---|---|
boolean |
thisAutoCommit |
TransactionManager |
transactionManager |
Transaction |
tx |
StandardXAConnection |
xacon |
inUse, isReallyUsed, masterPrepStmtCache, preparedStatementCacheconTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
StandardXAConnectionHandle(StandardXAConnection pooledCon,
Hashtable preparedStatementCache,
int preparedStmtCacheSize,
TransactionManager tm)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this StandardConnectionHandle and prevents it
from being reused.
|
void |
commit() |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
CallableStatement |
prepareCall(String sql)
Creates a CallableStatement for the given SQL
|
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
Creates a CallableStatement for the given SQL, result set type and concurency
|
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql)
Creates a PreparedStatement for the given SQL.
|
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes)
not yet implemented
|
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)
Creates a PreparedStatement for the given SQL, type and concurrency.
|
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
not yet implemented
|
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setTransactionManager(TransactionManager tm) |
String |
toString() |
catchInvoke, createPreparedStatement, createPreparedStatement, isClosed, preInvoke, setupPreparedStatementCacheabort, clearWarnings, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isValid, isWrapperFor, nativeSQL, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrappublic TransactionManager transactionManager
public Transaction tx
public StandardXAConnection xacon
public boolean thisAutoCommit
public StandardXAConnectionHandle(StandardXAConnection pooledCon, Hashtable preparedStatementCache, int preparedStmtCacheSize, TransactionManager tm)
public void setTransactionManager(TransactionManager tm)
public void close()
throws SQLException
StandardConnectionHandleclose in interface AutoCloseableclose in interface Connectionclose in class StandardConnectionHandleSQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionsetAutoCommit in class CoreConnectionSQLExceptionpublic void commit()
throws SQLException
commit in interface Connectioncommit in class CoreConnectionSQLExceptionpublic void rollback()
throws SQLException
rollback in interface Connectionrollback in class CoreConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class StandardConnectionHandleSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
StandardConnectionHandleprepareStatement in interface ConnectionprepareStatement in class StandardConnectionHandleSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class StandardConnectionHandleSQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class CoreConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class CoreConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement in interface ConnectionprepareStatement in class CoreConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall in interface ConnectionprepareCall in class StandardConnectionHandleSQLExceptionpublic CallableStatement prepareCall(String sql) throws SQLException
prepareCall in interface ConnectionprepareCall in class CoreConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall in interface ConnectionprepareCall in class CoreConnectionSQLExceptionpublic Statement createStatement() throws SQLException
createStatement in interface ConnectioncreateStatement in class CoreConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement in interface ConnectioncreateStatement in class CoreConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement in interface ConnectioncreateStatement in class CoreConnectionSQLExceptionCopyright © 2014–2015. All rights reserved.