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
SQLException
ClassNotFoundException
public void init(String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException
SQLException
public ConnectionBundle checkoutBundle() throws SQLException, InterruptedException, BrokenObjectException
checkoutBundle
in interface ConnectionBundlePool
SQLException
InterruptedException
BrokenObjectException
public void checkinBundle(ConnectionBundle bndl) throws SQLException, BrokenObjectException
checkinBundle
in interface ConnectionBundlePool
SQLException
BrokenObjectException
public void close() throws SQLException
ClosableResource
close
in interface ConnectionBundlePool
close
in interface ClosableResource
SQLException
protected void setConnectionOptions(Connection con) throws SQLException
SQLException
Copyright © 2017 com.mchange. All rights reserved.