Class ExternalTransaction
java.lang.Object
com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction
- All Implemented Interfaces:
Transaction
The Class ExternalTransaction.
-
Constructor Summary
ConstructorsConstructorDescriptionExternalTransaction(DataSource ds, boolean defaultAutoCommit, boolean setAutoCommitAllowed, int isolationLevel) Instantiates a new external transaction. -
Method Summary
-
Constructor Details
-
ExternalTransaction
public ExternalTransaction(DataSource ds, boolean defaultAutoCommit, boolean setAutoCommitAllowed, int isolationLevel) throws TransactionException Instantiates a new external transaction.- Parameters:
ds- the dsdefaultAutoCommit- the default auto commitsetAutoCommitAllowed- the set auto commit allowedisolationLevel- 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
-