com.ibatis.db.dao.jdbc
Class DbcpDaoTransactionPool

java.lang.Object
  extended by 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
           
 
Constructor Summary
DbcpDaoTransactionPool()
           
 
Method Summary
 void configure(java.util.Map properties)
           
 DaoTransaction getTransaction()
           
private  boolean notEmpty(java.lang.String s)
           
 void releaseTransaction(DaoTransaction trans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

private javax.sql.DataSource dataSource
Constructor Detail

DbcpDaoTransactionPool

public DbcpDaoTransactionPool()
Method Detail

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)