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

public Class CloseLoggingConnectionWrapper

extends FilterConnection
Class Inheritance
Imports
java.sql.*, com.mchange.v2.log.*, com.mchange.v2.c3p0.*, com.mchange.v2.sql.filter.*

Field Summary

Modifier and TypeField and Description
pack-priv final MLevel
pack-priv static final MLogger
Inherited from com.mchange.v2.sql.filter.FilterConnection:
inner

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides com.mchange.v2.sql.filter.FilterConnection.close.

Implements java.sql.Connection.close.

Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released.

Inherited from com.mchange.v2.sql.filter.FilterConnection:
abortclearWarningscommitcreateArrayOfcreateBlobcreateClobcreateNClobcreateSQLXMLcreateStatementcreateStatementcreateStatementcreateStructgetAutoCommitgetCataloggetClientInfogetClientInfogetHoldabilitygetInnergetMetaDatagetNetworkTimeoutgetSchemagetTransactionIsolationgetTypeMapgetWarningsisClosedisReadOnlyisValidisWrapperFornativeSQLprepareCallprepareCallprepareCallprepareStatementprepareStatementprepareStatementprepareStatementprepareStatementprepareStatementreleaseSavepointrollbackrollbacksetAutoCommitsetCatalogsetClientInfosetClientInfosetHoldabilitysetInnersetNetworkTimeoutsetReadOnlysetSavepointsetSavepointsetSchemasetTransactionIsolationsetTypeMapunwrap

Field Detail

levelback to summary
pack-priv final MLevel level
loggerback to summary
pack-priv static final MLogger logger

Constructor Detail

CloseLoggingConnectionWrapperback to summary
public CloseLoggingConnectionWrapper(Connection conn, MLevel level)

Method Detail

closeback to summary
public void close() throws SQLException

Overrides com.mchange.v2.sql.filter.FilterConnection.close.

Implements java.sql.Connection.close.

Doc from java.sql.Connection.close.

Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released.

Calling the method close on a Connection object that is already closed is a no-op.

It is strongly recommended that an application explicitly commits or rolls back an active transaction prior to calling the close method. If the close method is called and there is an active transaction, the results are implementation-defined.

Exceptions
SQLException:
if a database access error occurs