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

public final Class CloseLoggingComboPooledDataSource

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
pack-priv volatile MLevel
private static final long
private static final short

Constructor Summary

AccessConstructor and Description
public
public
CloseLoggingComboPooledDataSource(boolean autoregister)

public

Method Summary

Modifier and TypeMethod and Description
public MLevel
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
public void
private void
Inherited from com.mchange.v2.c3p0.AbstractComboPooledDataSource:
getAcquireIncrementgetAcquireRetryAttemptsgetAcquireRetryDelaygetAutomaticTestTablegetCheckoutTimeoutgetConnectionCustomizerClassNamegetConnectionIsValidTimeoutgetConnectionTesterClassNamegetContextClassLoaderSourcegetDescriptiongetDriverClassgetFactoryClassLocationgetIdleConnectionTestPeriodgetInitialPoolSizegetJdbcUrlgetMarkSessionBoundariesgetMaxAdministrativeTaskTimegetMaxConnectionAgegetMaxIdleTimegetMaxIdleTimeExcessConnectionsgetMaxPoolSizegetMaxStatementsgetMaxStatementsPerConnectiongetMinPoolSizegetOverrideDefaultPasswordgetOverrideDefaultUsergetPasswordgetPreferredTestQuerygetPropertiesgetPropertyCyclegetStatementCacheNumDeferredCloseThreadsgetTaskRunnerFactoryClassNamegetUnreturnedConnectionTimeoutgetUsergetUserOverridesgetUserOverridesAsStringisAttemptResurrectOnCheckinisAutoCommitOnCloseisBreakAfterAcquireFailureisDebugUnreturnedConnectionStackTracesisForceIgnoreUnresolvedTransactionsisForceSynchronousCheckinsisForceUseNamedDriverClassisPrivilegeSpawnedThreadsisTestConnectionOnCheckinisTestConnectionOnCheckoutisWrapperForsetAcquireIncrementsetAcquireRetryAttemptssetAcquireRetryDelaysetAttemptResurrectOnCheckinsetAutoCommitOnClosesetAutomaticTestTablesetBreakAfterAcquireFailuresetCheckoutTimeoutsetConnectionCustomizerClassNamesetConnectionIsValidTimeoutsetConnectionTesterClassNamesetContextClassLoaderSourcesetDebugUnreturnedConnectionStackTracessetDescriptionsetDriverClasssetFactoryClassLocationsetForceIgnoreUnresolvedTransactionssetForceSynchronousCheckinssetForceUseNamedDriverClasssetIdleConnectionTestPeriodsetInitialPoolSizesetJdbcUrlsetMarkSessionBoundariessetMaxAdministrativeTaskTimesetMaxConnectionAgesetMaxIdleTimesetMaxIdleTimeExcessConnectionssetMaxPoolSizesetMaxStatementssetMaxStatementsPerConnectionsetMinPoolSizesetOverrideDefaultPasswordsetOverrideDefaultUsersetPasswordsetPreferredTestQuerysetPrivilegeSpawnedThreadssetPropertiessetPropertyCyclesetStatementCacheNumDeferredCloseThreadssetTaskRunnerFactoryClassNamesetTestConnectionOnCheckinsetTestConnectionOnCheckoutsetUnreturnedConnectionTimeoutsetUsersetUserOverridesAsStringtoStringtoStringunwrap

Field Detail

levelback to summary
pack-priv volatile MLevel level
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

CloseLoggingComboPooledDataSourceback to summary
public CloseLoggingComboPooledDataSource()
CloseLoggingComboPooledDataSourceback to summary
public CloseLoggingComboPooledDataSource(boolean autoregister)
CloseLoggingComboPooledDataSourceback to summary
public CloseLoggingComboPooledDataSource(String configName)

Method Detail

getCloseLogLevelback to summary
public MLevel getCloseLogLevel()
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.

setCloseLogLevelback to summary
public void setCloseLogLevel(MLevel level)
writeObjectback to summary
private void writeObject(ObjectOutputStream oos) throws IOException

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