Top Deprecated
c3p0 0.10.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
com.mchange.v2.c3p0.DataSources.forceDestroy(DataSource pooledDataSource)

forceDestroy() is no longer meaningful, as a set of pools is now directly associated with a DataSource, and not potentially shared. (This simplification was made possible by canonicalization of JNDI-looked-up DataSources within a virtual machine.) Just use DataSources.destroy().

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createReferenceable(DataSource
an unpooledDataSource to use as the primary source for connections.
unpooledDataSource
,
int
the minimum (and starting) number of Connections that should be held in the pool.
minPoolSize
,
int
the maximum number of Connections that should be held in the pool.
maxPoolSize
,
int
the number of Connections that should be acquired at a time when the pool runs out of Connections
acquireIncrement
,
int
the maximum number of seconds a Connection should be allowed to remain idle before it is expired from the pool. A value of 0 means Connections never expire.
maxIdleTime
,
int
the maximum number of PreparedStatements that should be cached by this pool. A value of 0 means that Statement caching should be disabled.
maxStatements
,
String
a codebase url where JNDI clients can find the c3p0 libraries. Use null if clients will be expected to have the libraries available locally.
factoryLocation
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createReferenceable(DataSource
an unpooledDataSource to use as the primary source for connections.
unpooledDataSource
,
String
a codebase url where JNDI clients can find the c3p0 libraries. Use null if clients will be expected to have the libraries available locally.
factoryLocation
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createReferenceable(String
a jdbc driver class that can resolve jdbcUrl.
jdbcDriverClass
,
String
the jdbcUrl of the RDBMS that Connections should be made to.
jdbcUrl
,
String
a username (may be null) for authentication to the RDBMS
user
,
String
a password (may be null) for authentication to the RDBMS
password
,
int
the minimum (and starting) number of Connections that should be held in the pool.
minPoolSize
,
int
the maximum number of Connections that should be held in the pool.
maxPoolSize
,
int
the number of Connections that should be acquired at a time when the pool runs out of Connections
acquireIncrement
,
int
the maximum number of seconds a Connection should be allowed to remain idle before it is expired from the pool. A value of 0 means Connections never expire.
maxIdleTime
,
int
the maximum number of PreparedStatements that should be cached by this pool. A value of 0 means that Statement caching should be disabled.
maxStatements
,
String
a codebase url where JNDI clients can find the c3p0 libraries. Use null if clients will be expected to have the libraries available locally.
factoryLocation
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createReferenceable(String
a jdbc driver class that can resolve jdbcUrl.
jdbcDriverClass
,
String
the jdbcUrl of the RDBMS that Connections should be made to.
jdbcUrl
,
String
a username (may be null) for authentication to the RDBMS
user
,
String
a password (may be null) for authentication to the RDBMS
password
,
String
a codebase url where JNDI clients can find the c3p0 libraries. Use null if clients will be expected to have the libraries available locally.
factoryLocation
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createSerializable(DataSource
an unpooledDataSource to use as the primary source for connections.
unpooledDataSource
,
int
the minimum (and starting) number of Connections that should be held in the pool.
minPoolSize
,
int
the maximum number of Connections that should be held in the pool.
maxPoolSize
,
int
the number of Connections that should be acquired at a time when the pool runs out of Connections
acquireIncrement
,
int
the maximum number of seconds a Connection should be allowed to remain idle before it is expired from the pool. A value of 0 means Connections never expire.
maxIdleTime
,
int
the maximum number of PreparedStatements that should be cached by this pool. A value of 0 means that Statement caching should be disabled.
maxStatements
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createSerializable(DataSource
an unpooledDataSource to use as the primary source for connections.
unpooledDataSource
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createSerializable(String
a jdbc driver class that can resolve jdbcUrl.
jdbcDriverClass
,
String
the jdbcUrl of the RDBMS that Connections should be made to.
jdbcUrl
,
String
a username (may be null) for authentication to the RDBMS
user
,
String
a password (may be null) for authentication to the RDBMS
password
,
int
the minimum (and starting) number of Connections that should be held in the pool.
minPoolSize
,
int
the maximum number of Connections that should be held in the pool.
maxPoolSize
,
int
the number of Connections that should be acquired at a time when the pool runs out of Connections
acquireIncrement
,
int
the maximum number of seconds a Connection should be allowed to remain idle before it is expired from the pool. A value of 0 means Connections never expire.
maxIdleTime
,
int
the maximum number of PreparedStatements that should be cached by this pool. A value of 0 means that Statement caching should be disabled.
maxStatements
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PoolBackedDataSourceFactory.createSerializable(String
a jdbc driver class that can resolve jdbcUrl.
jdbcDriverClass
,
String
the jdbcUrl of the RDBMS that Connections should be made to.
jdbcUrl
,
String
a username (may be null) for authentication to the RDBMS
user
,
String
a password (may be null) for authentication to the RDBMS
password
)

all implementations are now both Referenceable and Serializable. use create()

com.mchange.v2.c3p0.PooledDataSource.close(boolean force_destory)

the force_destroy argument is now meaningless, as pools are no longer potentially shared between multiple DataSources.

com.mchange.v2.c3p0.PooledDataSource.getNumBusyConnections()

use getNumBusyConnectionsDefaultUser()

com.mchange.v2.c3p0.PooledDataSource.getNumConnections()

use getNumConnectionsDefaultUser()

com.mchange.v2.c3p0.PooledDataSource.getNumIdleConnections()

use getNumIdleConnectionsDefaultUser()

com.mchange.v2.c3p0.PooledDataSource.getNumUnclosedOrphanedConnections()

use getNumUnclosedOrphanedConnectionsDefaultUser()

com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.close(boolean force_destroy)

the force_destroy argument is now meaningless, as pools are no longer potentially shared between multiple DataSources.

com.mchange.v2.c3p0.mbean.C3P0PooledDataSource

Please use com.mchange.v2.c3p0.jboss.C3P0PooledDataSource

com.mchange.v2.c3p0.mbean.C3P0PooledDataSourceMBean

Please use com.mchange.v2.c3p0.jboss.C3P0PooledDataSourceMBean

com.mchange.v2.c3p0.util.CloseReportingConnectionWrapper

Please use com.mchange.v2.c3p0.debug.CloseLoggingConnectionWrapper

com.mchange.v2.resourcepool.NoGoodResourcesException

Deprecated as a consequence of ResourcePoolException being deprecated.

com.mchange.v2.resourcepool.ResourcePoolUtils.convertThrowable(String msg, Throwable t)

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

com.mchange.v2.resourcepool.ResourcePoolUtils.convertThrowable(Throwable t)

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

com.mchange.v2.resourcepool.TimeoutException

Deprecated as a consequence of ResourcePoolException being deprecated.