ConnectionBundlePool, ClosableResourcepublic class ConnectionBundlePoolBean extends java.lang.Object implements ConnectionBundlePool
| Constructor | Description |
|---|---|
ConnectionBundlePoolBean() |
| 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) |
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
java.sql.SQLExceptionjava.lang.ClassNotFoundExceptionpublic void init(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd,
int start,
int max,
int inc)
throws java.sql.SQLException
java.sql.SQLExceptionpublic ConnectionBundle checkoutBundle() throws java.sql.SQLException, java.lang.InterruptedException, BrokenObjectException
checkoutBundle in interface ConnectionBundlePooljava.sql.SQLExceptionjava.lang.InterruptedExceptionBrokenObjectExceptionpublic void checkinBundle(ConnectionBundle bndl) throws java.sql.SQLException, BrokenObjectException
checkinBundle in interface ConnectionBundlePooljava.sql.SQLExceptionBrokenObjectExceptionpublic void close()
throws java.sql.SQLException
ClosableResourceclose in interface ClosableResourceclose in interface ConnectionBundlePooljava.sql.SQLExceptionprotected void setConnectionOptions(java.sql.Connection con)
throws java.sql.SQLException
java.sql.SQLException