org.apache.ibatis.transaction.jdbc
Class JdbcTransaction
java.lang.Object
org.apache.ibatis.transaction.jdbc.JdbcTransaction
- All Implemented Interfaces:
- Transaction
public class JdbcTransaction
- extends Object
- implements Transaction
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected Connection connection
JdbcTransaction
public JdbcTransaction(Connection connection,
boolean desiredAutoCommit)
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.