Top Fields Constructors Methods
com.mchange.v1.db.sql

public abstract Class ConnectionBundlePoolImpl

extends AbstractResourcePool
implements ConnectionBundlePool
Class Inheritance
All Implemented Interfaces
com.mchange.v1.db.sql.ConnectionBundlePool, com.mchange.v1.util.ClosableResource
Known Direct Subclasses
com.mchange.v1.db.sql.ConnectionBundlePoolBean.InnerPool
Imports
java.sql.*, com.mchange.v1.util.*

Deprecated

as a consequence of AbstractResourcePool being deprecated. See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
public
ConnectionBundlePoolImpl(String jdbcUrl, String username, String pwd, int start, int max, int inc)

protected
ConnectionBundlePoolImpl(int start, int max, int inc)

Method Summary

Modifier and TypeMethod and Description
protected Object
public void
public ConnectionBundle
public void
close()

Overrides com.mchange.v1.util.AbstractResourcePool.close.

Implements com.mchange.v1.db.sql.ConnectionBundlePool.close.

forces the release of any resources that might be associated with this object.

protected void
protected void
init(String jdbcUrl, String username, String pwd)

protected void
protected abstract void
Inherited from com.mchange.v1.util.AbstractResourcePool:
checkinResourcecheckoutResourcecheckoutResourceinitmarkBad

Field Detail

jdbcUrlback to summary
pack-priv String jdbcUrl
pwdback to summary
pack-priv String pwd
usernameback to summary
pack-priv String username

Constructor Detail

ConnectionBundlePoolImplback to summary
public ConnectionBundlePoolImpl(String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException
ConnectionBundlePoolImplback to summary
protected ConnectionBundlePoolImpl(int start, int max, int inc)

Method Detail

acquireResourceback to summary
protected Object acquireResource() throws Exception

Implements abstract com.mchange.v1.util.AbstractResourcePool.acquireResource.

checkinBundleback to summary
public void checkinBundle(ConnectionBundle bndl) throws BrokenObjectException

Implements com.mchange.v1.db.sql.ConnectionBundlePool.checkinBundle.

checkoutBundleback to summary
public ConnectionBundle checkoutBundle() throws SQLException, BrokenObjectException, InterruptedException

Implements com.mchange.v1.db.sql.ConnectionBundlePool.checkoutBundle.

closeback to summary
public void close() throws SQLException

Overrides com.mchange.v1.util.AbstractResourcePool.close.

Implements com.mchange.v1.db.sql.ConnectionBundlePool.close.

Doc from com.mchange.v1.util.ClosableResource.close.

forces the release of any resources that might be associated with this object.

destroyResourceback to summary
protected void destroyResource(Object resc) throws Exception

Implements abstract com.mchange.v1.util.AbstractResourcePool.destroyResource.

initback to summary
protected void init(String jdbcUrl, String username, String pwd) throws SQLException
refurbishResourceback to summary
protected void refurbishResource(Object resc) throws BrokenObjectException

Implements abstract com.mchange.v1.util.AbstractResourcePool.refurbishResource.

Doc from com.mchange.v1.util.AbstractResourcePool.refurbishResource.

Called on checkout!

setConnectionOptionsback to summary
protected abstract void setConnectionOptions(Connection con) throws SQLException