public class ConnectionBundlePoolBean extends java.lang.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(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.SQLException
java.lang.ClassNotFoundException
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
java.sql.SQLException
public ConnectionBundle checkoutBundle() throws java.sql.SQLException, java.lang.InterruptedException, BrokenObjectException
checkoutBundle
in interface ConnectionBundlePool
java.sql.SQLException
java.lang.InterruptedException
BrokenObjectException
public void checkinBundle(ConnectionBundle bndl) throws java.sql.SQLException, BrokenObjectException
checkinBundle
in interface ConnectionBundlePool
java.sql.SQLException
BrokenObjectException
public void close() throws java.sql.SQLException
ClosableResource
close
in interface ConnectionBundlePool
close
in interface ClosableResource
java.sql.SQLException
protected void setConnectionOptions(java.sql.Connection con) throws java.sql.SQLException
java.sql.SQLException