Class JtaTransaction
java.lang.Object
com.ibatis.sqlmap.engine.transaction.jta.JtaTransaction
- All Implemented Interfaces:
Transaction
The Class JtaTransaction.
-
Constructor Summary
ConstructorsConstructorDescriptionJtaTransaction(javax.transaction.UserTransaction utx, DataSource ds, int isolationLevel) Instantiates a new jta transaction. -
Method Summary
-
Constructor Details
-
JtaTransaction
public JtaTransaction(javax.transaction.UserTransaction utx, DataSource ds, int isolationLevel) throws TransactionException Instantiates a new jta transaction.- Parameters:
utx- the utxds- the dsisolationLevel- the isolation level- Throws:
TransactionException- the transaction exception
-
-
Method Details
-
commit
Description copied from interface:TransactionCommit.- Specified by:
commitin interfaceTransaction- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
rollback
Description copied from interface:TransactionRollback.- Specified by:
rollbackin interfaceTransaction- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
close
Description copied from interface:TransactionClose.- Specified by:
closein interfaceTransaction- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
getConnection
Description copied from interface:TransactionGets the connection.- Specified by:
getConnectionin interfaceTransaction- Returns:
- the connection
- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-