bitronix.tm.resource.jdbc
Interface ConnectionCustomizer


public interface ConnectionCustomizer

Listener of connections created by a PoolingDataSource. Implementations of this class must be serializable and are handed raw, physical database Connections

Author:
Ludovic Orban

Method Summary
 void onAcquire(Connection connection, String uniqueName)
          Called when the physical connection is created.
 void onDestroy(Connection connection, String uniqueName)
          Called when the physical connection is destroyed.
 

Method Detail

onAcquire

void onAcquire(Connection connection,
               String uniqueName)
Called when the physical connection is created.

Parameters:
connection - the physical connection.
uniqueName - the PoolingDataSource unique name.

onDestroy

void onDestroy(Connection connection,
               String uniqueName)
Called when the physical connection is destroyed.

Parameters:
connection - the physical connection.
uniqueName - the PoolingDataSource unique name.


Copyright © 2006-2013 Bitronix Software. All Rights Reserved.