org.apache.ibatis.transaction.managed
Class ManagedTransaction
java.lang.Object
org.apache.ibatis.transaction.managed.ManagedTransaction
- All Implemented Interfaces:
- Transaction
public class ManagedTransaction
- extends Object
- implements Transaction
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedTransaction
public ManagedTransaction(Connection connection,
boolean closeConnection)
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
Copyright © 2010-2011 MyBatis.org. All Rights Reserved.