Class JtaTransaction
java.lang.Object
com.ibatis.sqlmap.engine.transaction.jta.JtaTransaction
- All Implemented Interfaces:
Transaction
The Class JtaTransaction.
-
Constructor Summary
ConstructorsConstructorDescriptionJtaTransaction
(UserTransaction utx, DataSource ds, int isolationLevel) Instantiates a new jta transaction. -
Method Summary
-
Constructor Details
-
JtaTransaction
public JtaTransaction(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:Transaction
Commit.- Specified by:
commit
in interfaceTransaction
- Throws:
SQLException
- the SQL exceptionTransactionException
- the transaction exception
-
rollback
Description copied from interface:Transaction
Rollback.- Specified by:
rollback
in interfaceTransaction
- Throws:
SQLException
- the SQL exceptionTransactionException
- the transaction exception
-
close
Description copied from interface:Transaction
Close.- Specified by:
close
in interfaceTransaction
- Throws:
SQLException
- the SQL exceptionTransactionException
- the transaction exception
-
getConnection
Description copied from interface:Transaction
Gets the connection.- Specified by:
getConnection
in interfaceTransaction
- Returns:
- the connection
- Throws:
SQLException
- the SQL exceptionTransactionException
- the transaction exception
-