org.apache.ibatis.transaction.jdbc
Class JdbcTransaction
java.lang.Object
org.apache.ibatis.transaction.jdbc.JdbcTransaction
- All Implemented Interfaces:
- Transaction
public class JdbcTransaction
- extends java.lang.Object
- implements Transaction
Field Summary |
protected java.sql.Connection |
connection
|
Constructor Summary |
JdbcTransaction(java.sql.Connection connection,
boolean desiredAutoCommit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected java.sql.Connection connection
JdbcTransaction
public JdbcTransaction(java.sql.Connection connection,
boolean desiredAutoCommit)
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnection
in interface Transaction
commit
public void commit()
throws java.sql.SQLException
- Specified by:
commit
in interface Transaction
- Throws:
java.sql.SQLException
rollback
public void rollback()
throws java.sql.SQLException
- Specified by:
rollback
in interface Transaction
- Throws:
java.sql.SQLException
close
public void close()
throws java.sql.SQLException
- Specified by:
close
in interface Transaction
- Throws:
java.sql.SQLException
setDesiredAutoCommit
protected void setDesiredAutoCommit(boolean desiredAutoCommit)
resetAutoCommit
protected void resetAutoCommit()
Copyright © 2010 MyBatis.org. All Rights Reserved.