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 void
checkinBundle(ConnectionBundle bndl)
ConnectionBundle
checkoutBundle()
void
close()
forces the release of any resources that might be associated with this object.void
init(java.lang.String jdbcUrl, java.lang.String username, java.lang.String pwd, int start, int max, int inc)
void
init(java.lang.String jdbcDriverClass, java.lang.String jdbcUrl, java.lang.String username, java.lang.String pwd, int start, int max, int inc)
protected void
setConnectionOptions(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.SQLException
java.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:
checkoutBundle
in interfaceConnectionBundlePool
- Throws:
java.sql.SQLException
java.lang.InterruptedException
BrokenObjectException
-
checkinBundle
public void checkinBundle(ConnectionBundle bndl) throws java.sql.SQLException, BrokenObjectException
- Specified by:
checkinBundle
in interfaceConnectionBundlePool
- Throws:
java.sql.SQLException
BrokenObjectException
-
close
public void close() throws java.sql.SQLException
Description copied from interface:ClosableResource
forces the release of any resources that might be associated with this object.- Specified by:
close
in interfaceClosableResource
- Specified by:
close
in interfaceConnectionBundlePool
- Throws:
java.sql.SQLException
-
setConnectionOptions
protected void setConnectionOptions(java.sql.Connection con) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-