org.enhydra.jdbc.standard
Class StandardXAConnectionHandle
java.lang.Object
org.enhydra.jdbc.util.JdbcUtil
org.enhydra.jdbc.core.CoreConnection
org.enhydra.jdbc.standard.StandardConnectionHandle
org.enhydra.jdbc.standard.StandardXAConnectionHandle
- All Implemented Interfaces:
- Connection, Wrapper
public class StandardXAConnectionHandle
- extends StandardConnectionHandle
| Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
log |
|
Method Summary |
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()
|
| Methods inherited from class org.enhydra.jdbc.core.CoreConnection |
clearWarnings, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, nativeSQL, releaseSavepoint, rollback, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap |
| Methods inherited from interface java.sql.Connection |
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo |
transactionManager
public TransactionManager transactionManager
tx
public Transaction tx
xacon
public StandardXAConnection xacon
thisAutoCommit
public boolean thisAutoCommit
StandardXAConnectionHandle
public StandardXAConnectionHandle(StandardXAConnection pooledCon,
Hashtable preparedStatementCache,
int preparedStmtCacheSize,
TransactionManager tm)
- Constructor
setTransactionManager
public void setTransactionManager(TransactionManager tm)
close
public void close()
throws SQLException
- Description copied from class:
StandardConnectionHandle
- Closes this StandardConnectionHandle and prevents it
from being reused. It also returns used PreparedStatements
to the PreparedStatement cache and notifies all listeners.
- Specified by:
close in interface Connection- Overrides:
close in class StandardConnectionHandle
- Throws:
SQLException
setAutoCommit
public void setAutoCommit(boolean autoCommit)
throws SQLException
- Specified by:
setAutoCommit in interface Connection- Overrides:
setAutoCommit in class CoreConnection
- Throws:
SQLException
commit
public void commit()
throws SQLException
- Specified by:
commit in interface Connection- Overrides:
commit in class CoreConnection
- Throws:
SQLException
rollback
public void rollback()
throws SQLException
- Specified by:
rollback in interface Connection- Overrides:
rollback in class CoreConnection
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql)
throws SQLException
- Creates a PreparedStatement for the given SQL. If possible, the
statement is fetched from the cache.
- Specified by:
prepareStatement in interface Connection- Overrides:
prepareStatement in class StandardConnectionHandle
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
throws SQLException
- Description copied from class:
StandardConnectionHandle
- Creates a PreparedStatement for the given SQL, type and concurrency.
If possible, the statement is fetched from the cache.
- Specified by:
prepareStatement in interface Connection- Overrides:
prepareStatement in class StandardConnectionHandle
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws SQLException
- Creates a PreparedStatement for the given SQL, type and concurrency.
If possible, the statement is fetched from the cache.
- Specified by:
prepareStatement in interface Connection- Overrides:
prepareStatement in class StandardConnectionHandle
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql,
int autoGeneratedKeys)
throws SQLException
- Specified by:
prepareStatement in interface Connection- Overrides:
prepareStatement in class CoreConnection
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql,
int[] columnIndexes)
throws SQLException
- not yet implemented
- Specified by:
prepareStatement in interface Connection- Overrides:
prepareStatement in class CoreConnection
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql,
String[] columnNames)
throws SQLException
- not yet implemented
- Specified by:
prepareStatement in interface Connection- Overrides:
prepareStatement in class CoreConnection
- Throws:
SQLException
prepareCall
public CallableStatement prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
throws SQLException
- Creates a CallableStatement for the given SQL, result set type and concurency
- Specified by:
prepareCall in interface Connection- Overrides:
prepareCall in class StandardConnectionHandle
- Throws:
SQLException
prepareCall
public CallableStatement prepareCall(String sql)
throws SQLException
- Creates a CallableStatement for the given SQL
- Specified by:
prepareCall in interface Connection- Overrides:
prepareCall in class CoreConnection
- Throws:
SQLException
prepareCall
public CallableStatement prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws SQLException
- Specified by:
prepareCall in interface Connection- Overrides:
prepareCall in class CoreConnection
- Throws:
SQLException
createStatement
public Statement createStatement()
throws SQLException
- Specified by:
createStatement in interface Connection- Overrides:
createStatement in class StandardConnectionHandle
- Throws:
SQLException
createStatement
public Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws SQLException
- Specified by:
createStatement in interface Connection- Overrides:
createStatement in class CoreConnection
- Throws:
SQLException
createStatement
public Statement createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws SQLException
- Specified by:
createStatement in interface Connection- Overrides:
createStatement in class CoreConnection
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.