com.ibatis.sqlmap.engine.transaction.external
Class ExternalTransaction
java.lang.Object
com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction
- All Implemented Interfaces:
- Transaction
- public class ExternalTransaction
- extends java.lang.Object
- implements Transaction
Constructor Summary |
ExternalTransaction(javax.sql.DataSource ds,
boolean defaultAutoCommit,
boolean setAutoCommitAllowed)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionLog
private static final org.apache.commons.logging.Log connectionLog
dataSource
private javax.sql.DataSource dataSource
defaultAutoCommit
private boolean defaultAutoCommit
setAutoCommitAllowed
private boolean setAutoCommitAllowed
connection
private java.sql.Connection connection
ExternalTransaction
public ExternalTransaction(javax.sql.DataSource ds,
boolean defaultAutoCommit,
boolean setAutoCommitAllowed)
throws TransactionException
init
private void init()
throws java.sql.SQLException,
TransactionException
- Throws:
java.sql.SQLException
TransactionException
commit
public void commit()
throws java.sql.SQLException,
TransactionException
- Specified by:
commit
in interface Transaction
- Throws:
java.sql.SQLException
TransactionException
rollback
public void rollback()
throws java.sql.SQLException,
TransactionException
- Specified by:
rollback
in interface Transaction
- Throws:
java.sql.SQLException
TransactionException
close
public void close()
throws java.sql.SQLException,
TransactionException
- Specified by:
close
in interface Transaction
- Throws:
java.sql.SQLException
TransactionException
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException,
TransactionException
- Specified by:
getConnection
in interface Transaction
- Throws:
java.sql.SQLException
TransactionException