com.ibatis.db.dao.jdbc
Class DbcpDaoTransactionPool
java.lang.Object
com.ibatis.db.dao.jdbc.DbcpDaoTransactionPool
- All Implemented Interfaces:
- DaoTransactionPool
public class DbcpDaoTransactionPool
- extends java.lang.Object
- implements DaoTransactionPool
A DaoTransactionPool implementation that uses Jakarta Commons DBCP
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
DbcpDaoTransactionPool
public DbcpDaoTransactionPool()
getTransaction
public DaoTransaction getTransaction()
throws DaoException
- Specified by:
getTransaction
in interface DaoTransactionPool
- Throws:
DaoException
releaseTransaction
public void releaseTransaction(DaoTransaction trans)
throws DaoException
- Specified by:
releaseTransaction
in interface DaoTransactionPool
- Throws:
DaoException
configure
public void configure(java.util.Map properties)
throws DaoException
- Specified by:
configure
in interface DaoTransactionPool
- Throws:
DaoException
notEmpty
private boolean notEmpty(java.lang.String s)