public class ConnectionBundlePoolBean extends Object implements ConnectionBundlePool
| Constructor and Description |
|---|
ConnectionBundlePoolBean() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void init(String jdbcDriverClass, String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException, ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic void init(String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException
SQLExceptionpublic ConnectionBundle checkoutBundle() throws SQLException, InterruptedException, BrokenObjectException
checkoutBundle in interface ConnectionBundlePoolSQLExceptionInterruptedExceptionBrokenObjectExceptionpublic void checkinBundle(ConnectionBundle bndl) throws SQLException, BrokenObjectException
checkinBundle in interface ConnectionBundlePoolSQLExceptionBrokenObjectExceptionpublic void close()
throws SQLException
ClosableResourceclose in interface ConnectionBundlePoolclose in interface ClosableResourceSQLExceptionprotected void setConnectionOptions(Connection con) throws SQLException
SQLException