com.ibatis.db.dao.jdbc
Class SimpleDaoTransactionPool
java.lang.Object
com.ibatis.db.dao.jdbc.SimpleDaoTransactionPool
- All Implemented Interfaces:
- DaoTransactionPool
- Direct Known Subclasses:
- JdbcDaoTransactionPool
public class SimpleDaoTransactionPool
- extends java.lang.Object
- implements DaoTransactionPool
A DaoTransactionPool implementation that uses SimpleDataSource to manage
a pool of JDBC Connection objects.
- Author:
- clinton_begin
Field Summary |
private javax.sql.DataSource |
dataSource
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSource
private javax.sql.DataSource dataSource
SimpleDaoTransactionPool
public SimpleDaoTransactionPool()
- Creates new JdbcDaoTransactionPool
configure
public void configure(java.util.Map props)
throws DaoException
- Specified by:
configure
in interface DaoTransactionPool
- Throws:
DaoException
releaseTransaction
public void releaseTransaction(DaoTransaction trans)
throws DaoException
- Specified by:
releaseTransaction
in interface DaoTransactionPool
- Throws:
DaoException
getTransaction
public DaoTransaction getTransaction()
throws DaoException
- Specified by:
getTransaction
in interface DaoTransactionPool
- Throws:
DaoException
getDataSource
public javax.sql.DataSource getDataSource()