Top Description Fields Constructors Methods
com.mchange.v2.c3p0.debug

public final Class AfterCloseLoggingComboPooledDataSource

extends AbstractComboPooledDataSource
implements Serializable, Referenceable
Class Inheritance
All Implemented Interfaces
javax.naming.Referenceable, java.io.Serializable
Imports
java.io.*, java.sql.*, javax.naming.*, com.mchange.v2.log.*, com.mchange.v2.c3p0.*

For the meaning of most of these properties, please see c3p0's top-level documentation!

Field Summary

Modifier and TypeField and Description
private static final long
private static final short

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public Connection
getConnection()

Overrides com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection.

Implements javax.sql.DataSource.getConnection.

Attempts to establish a connection with the data source that this DataSource object represents.

public Connection
getConnection(String
the database user on whose behalf the connection is being made
user
,
String
the user's password
password
)

Overrides com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection.

Implements javax.sql.DataSource.getConnection.

Attempts to establish a connection with the data source that this DataSource object represents.

private void
private void
Inherited from com.mchange.v2.c3p0.AbstractComboPooledDataSource:
getAcquireIncrementgetAcquireRetryAttemptsgetAcquireRetryDelaygetAutomaticTestTablegetCheckoutTimeoutgetConnectionCustomizerClassNamegetConnectionIsValidTimeoutgetConnectionTesterClassNamegetContextClassLoaderSourcegetDescriptiongetDriverClassgetFactoryClassLocationgetIdleConnectionTestPeriodgetInitialPoolSizegetJdbcUrlgetMarkSessionBoundariesgetMaxAdministrativeTaskTimegetMaxConnectionAgegetMaxIdleTimegetMaxIdleTimeExcessConnectionsgetMaxPoolSizegetMaxStatementsgetMaxStatementsPerConnectiongetMinPoolSizegetOverrideDefaultPasswordgetOverrideDefaultUsergetPasswordgetPreferredTestQuerygetPropertiesgetPropertyCyclegetStatementCacheNumDeferredCloseThreadsgetTaskRunnerFactoryClassNamegetUnreturnedConnectionTimeoutgetUsergetUserOverridesgetUserOverridesAsStringisAttemptResurrectOnCheckinisAutoCommitOnCloseisBreakAfterAcquireFailureisDebugUnreturnedConnectionStackTracesisForceIgnoreUnresolvedTransactionsisForceSynchronousCheckinsisForceUseNamedDriverClassisPrivilegeSpawnedThreadsisTestConnectionOnCheckinisTestConnectionOnCheckoutisWrapperForsetAcquireIncrementsetAcquireRetryAttemptssetAcquireRetryDelaysetAttemptResurrectOnCheckinsetAutoCommitOnClosesetAutomaticTestTablesetBreakAfterAcquireFailuresetCheckoutTimeoutsetConnectionCustomizerClassNamesetConnectionIsValidTimeoutsetConnectionTesterClassNamesetContextClassLoaderSourcesetDebugUnreturnedConnectionStackTracessetDescriptionsetDriverClasssetFactoryClassLocationsetForceIgnoreUnresolvedTransactionssetForceSynchronousCheckinssetForceUseNamedDriverClasssetIdleConnectionTestPeriodsetInitialPoolSizesetJdbcUrlsetMarkSessionBoundariessetMaxAdministrativeTaskTimesetMaxConnectionAgesetMaxIdleTimesetMaxIdleTimeExcessConnectionssetMaxPoolSizesetMaxStatementssetMaxStatementsPerConnectionsetMinPoolSizesetOverrideDefaultPasswordsetOverrideDefaultUsersetPasswordsetPreferredTestQuerysetPrivilegeSpawnedThreadssetPropertiessetPropertyCyclesetStatementCacheNumDeferredCloseThreadssetTaskRunnerFactoryClassNamesetTestConnectionOnCheckinsetTestConnectionOnCheckoutsetUnreturnedConnectionTimeoutsetUsersetUserOverridesAsStringtoStringtoStringunwrap

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.mchange.v2.c3p0.AbstractComboPooledDataSource.serialVersionUID.

VERSIONback to summary
private static final short VERSION

Hides com.mchange.v2.c3p0.AbstractComboPooledDataSource.VERSION.

Constructor Detail

AfterCloseLoggingComboPooledDataSourceback to summary
public AfterCloseLoggingComboPooledDataSource()
AfterCloseLoggingComboPooledDataSourceback to summary
public AfterCloseLoggingComboPooledDataSource(boolean autoregister)
AfterCloseLoggingComboPooledDataSourceback to summary
public AfterCloseLoggingComboPooledDataSource(String configName)

Method Detail

getConnectionback to summary
public Connection getConnection() throws SQLException

Overrides com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection.

Implements javax.sql.DataSource.getConnection.

Doc from javax.sql.DataSource.getConnection.

Attempts to establish a connection with the data source that this DataSource object represents.

Returns:Connection

a connection to the data source

Exceptions
SQLException:
if a database access error occurs
getConnectionback to summary
public Connection getConnection(String user, String password) throws SQLException

Overrides com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection.

Implements javax.sql.DataSource.getConnection.

Doc from javax.sql.DataSource.getConnection.

Attempts to establish a connection with the data source that this DataSource object represents.

Parameters
user:String

the database user on whose behalf the connection is being made

password:String

the user's password

Returns:Connection

a connection to the data source

Exceptions
SQLException:
if a database access error occurs
readObjectback to summary
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException

Hides com.mchange.v2.c3p0.AbstractComboPooledDataSource.readObject.

writeObjectback to summary
private void writeObject(ObjectOutputStream oos) throws IOException

Hides com.mchange.v2.c3p0.AbstractComboPooledDataSource.writeObject.