Package com.mchange.v1.db.sql
Class ConnectionBundlePoolBean
- java.lang.Object
-
- com.mchange.v1.db.sql.ConnectionBundlePoolBean
-
- All Implemented Interfaces:
ConnectionBundlePool,ClosableResource
public class ConnectionBundlePoolBean extends java.lang.Object implements ConnectionBundlePool
-
-
Constructor Summary
Constructors Constructor Description ConnectionBundlePoolBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckinBundle(ConnectionBundle bndl)ConnectionBundlecheckoutBundle()voidclose()forces the release of any resources that might be associated with this object.voidinit(java.lang.String jdbcUrl, java.lang.String username, java.lang.String pwd, int start, int max, int inc)voidinit(java.lang.String jdbcDriverClass, java.lang.String jdbcUrl, java.lang.String username, java.lang.String pwd, int start, int max, int inc)protected voidsetConnectionOptions(java.sql.Connection con)
-
-
-
Method Detail
-
init
public void init(java.lang.String jdbcDriverClass, java.lang.String jdbcUrl, java.lang.String username, java.lang.String pwd, int start, int max, int inc) throws java.sql.SQLException, java.lang.ClassNotFoundException- Throws:
java.sql.SQLExceptionjava.lang.ClassNotFoundException
-
init
public void init(java.lang.String jdbcUrl, java.lang.String username, java.lang.String pwd, int start, int max, int inc) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
checkoutBundle
public ConnectionBundle checkoutBundle() throws java.sql.SQLException, java.lang.InterruptedException, BrokenObjectException
- Specified by:
checkoutBundlein interfaceConnectionBundlePool- Throws:
java.sql.SQLExceptionjava.lang.InterruptedExceptionBrokenObjectException
-
checkinBundle
public void checkinBundle(ConnectionBundle bndl) throws java.sql.SQLException, BrokenObjectException
- Specified by:
checkinBundlein interfaceConnectionBundlePool- Throws:
java.sql.SQLExceptionBrokenObjectException
-
close
public void close() throws java.sql.SQLExceptionDescription copied from interface:ClosableResourceforces the release of any resources that might be associated with this object.- Specified by:
closein interfaceClosableResource- Specified by:
closein interfaceConnectionBundlePool- Throws:
java.sql.SQLException
-
setConnectionOptions
protected void setConnectionOptions(java.sql.Connection con) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-