com.ibatis.sqlmap.engine.transaction.jdbc
Class JdbcTransaction

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction
All Implemented Interfaces:
Transaction

public class JdbcTransaction
extends java.lang.Object
implements Transaction


Constructor Summary
JdbcTransaction(javax.sql.DataSource ds, int isolationLevel)
           
 
Method Summary
 void close()
           
 void commit()
           
 java.sql.Connection getConnection()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcTransaction

public JdbcTransaction(javax.sql.DataSource ds,
                       int isolationLevel)
                throws TransactionException
Method Detail

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