ConnectionCustomizer (Bitronix Transaction Manager :: Core 2.1.4 API)
Date: 2013-09-15

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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