com.mchange.v1.db.sql
Class ConnectionBundlePoolBean

java.lang.Object
  extended by com.mchange.v1.db.sql.ConnectionBundlePoolBean
All Implemented Interfaces:
ConnectionBundlePool, ClosableResource

public class ConnectionBundlePoolBean
extends Object
implements ConnectionBundlePool


Constructor Summary
ConnectionBundlePoolBean()
           
 
Method Summary
 void checkinBundle(ConnectionBundle bndl)
           
 ConnectionBundle checkoutBundle()
           
 void close()
          forces the release of any resources that might be associated with this object.
 void init(String jdbcUrl, String username, String pwd, int start, int max, int inc)
           
 void init(String jdbcDriverClass, String jdbcUrl, String username, String pwd, int start, int max, int inc)
           
protected  void setConnectionOptions(Connection con)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionBundlePoolBean

public ConnectionBundlePoolBean()
Method Detail

init

public void init(String jdbcDriverClass,
                 String jdbcUrl,
                 String username,
                 String pwd,
                 int start,
                 int max,
                 int inc)
          throws SQLException,
                 ClassNotFoundException
Throws:
SQLException
ClassNotFoundException

init

public void init(String jdbcUrl,
                 String username,
                 String pwd,
                 int start,
                 int max,
                 int inc)
          throws SQLException
Throws:
SQLException

checkoutBundle

public ConnectionBundle checkoutBundle()
                                throws SQLException,
                                       InterruptedException,
                                       BrokenObjectException
Specified by:
checkoutBundle in interface ConnectionBundlePool
Throws:
SQLException
InterruptedException
BrokenObjectException

checkinBundle

public void checkinBundle(ConnectionBundle bndl)
                   throws SQLException,
                          BrokenObjectException
Specified by:
checkinBundle in interface ConnectionBundlePool
Throws:
SQLException
BrokenObjectException

close

public void close()
           throws SQLException
Description copied from interface: ClosableResource
forces the release of any resources that might be associated with this object.

Specified by:
close in interface ConnectionBundlePool
Specified by:
close in interface ClosableResource
Throws:
SQLException

setConnectionOptions

protected void setConnectionOptions(Connection con)
                             throws SQLException
Throws:
SQLException