com.ibatis.db.dao.jdbc
Class JdbcDaoTransaction
java.lang.Object
com.ibatis.db.dao.jdbc.JdbcDaoTransaction
- All Implemented Interfaces:
- DaoTransaction
- public class JdbcDaoTransaction
- extends java.lang.Object
- implements DaoTransaction
A DaoTransaction implementation that wraps a JDBC Connection object.
- Author:
- clinton_begin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pool
private DaoTransactionPool pool
connection
private java.sql.Connection connection
- Holds value of property connection.
JdbcDaoTransaction
public JdbcDaoTransaction(DaoTransactionPool pool,
java.sql.Connection conn)
- Creates new JdbcDaoTransaction
getConnection
public java.sql.Connection getConnection()
throws DaoException
- Getter for property connection.
- Returns:
- Value of property connection.
- Throws:
DaoException
commit
public void commit()
throws DaoException
- Specified by:
commit
in interface DaoTransaction
- Throws:
DaoException
rollback
public void rollback()
throws DaoException
- Specified by:
rollback
in interface DaoTransaction
- Throws:
DaoException
release
public void release()
throws DaoException
- Specified by:
release
in interface DaoTransaction
- Throws:
DaoException