Class JdbcTransaction
java.lang.Object
com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction
- All Implemented Interfaces:
Transaction
The Class JdbcTransaction.
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcTransaction(DataSource ds, int isolationLevel) Instantiates a new jdbc transaction. -
Method Summary
-
Constructor Details
-
JdbcTransaction
Instantiates a new jdbc transaction.- Parameters:
ds- 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
-