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
|
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(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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionBundlePoolBean
public ConnectionBundlePoolBean()
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 interface ConnectionBundlePool
- Throws:
java.sql.SQLException
java.lang.InterruptedException
BrokenObjectException
checkinBundle
public void checkinBundle(ConnectionBundle bndl)
throws java.sql.SQLException,
BrokenObjectException
- Specified by:
checkinBundle in interface ConnectionBundlePool
- 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 interface ConnectionBundlePool- Specified by:
close in interface ClosableResource
- Throws:
java.sql.SQLException
setConnectionOptions
protected void setConnectionOptions(java.sql.Connection con)
throws java.sql.SQLException
- Throws:
java.sql.SQLException