org.apache.ibatis.transaction.jdbc
Class JdbcTransaction

java.lang.Object
  extended by org.apache.ibatis.transaction.jdbc.JdbcTransaction
All Implemented Interfaces:
Transaction

public class JdbcTransaction
extends Object
implements Transaction


Field Summary
protected  Connection connection
           
 
Constructor Summary
JdbcTransaction(Connection connection, boolean desiredAutoCommit)
           
 
Method Summary
 void close()
           
 void commit()
           
 Connection getConnection()
           
protected  void resetAutoCommit()
           
 void rollback()
           
protected  void setDesiredAutoCommit(boolean desiredAutoCommit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected Connection connection
Constructor Detail

JdbcTransaction

public JdbcTransaction(Connection connection,
                       boolean desiredAutoCommit)
Method Detail

getConnection

public Connection getConnection()
Specified by:
getConnection in interface Transaction

commit

public void commit()
            throws SQLException
Specified by:
commit in interface Transaction
Throws:
SQLException

rollback

public void rollback()
              throws SQLException
Specified by:
rollback in interface Transaction
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface Transaction
Throws:
SQLException

setDesiredAutoCommit

protected void setDesiredAutoCommit(boolean desiredAutoCommit)

resetAutoCommit

protected void resetAutoCommit()


Copyright © 2010-2011 MyBatis.org. All Rights Reserved.