org.firebirdsql.jca

Class FBStandAloneConnectionManager

Implemented Interfaces:
ConnectionEventListener, ConnectionManager, Serializable

public class FBStandAloneConnectionManager
extends java.lang.Object
implements ConnectionManager, ConnectionEventListener, Serializable

The class FBStandAloneConnectionManager provides the default implementation of ConnectionManager for standalone use. There is no pooling or other features..
Version:
1.0
Author:
David Jencks

Method Summary

Object
allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cxRequestInfo)
Allocate a new ManagedConnection.
void
connectionClosed(ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for when a ManagedConnection is closed.
void
connectionErrorOccurred(ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for when a Local Transaction was rolled back within the context of a ManagedConnection.
void
localTransactionCommitted(ConnectionEvent event)
Ignored event callback
void
localTransactionRolledback(ConnectionEvent event)
Ignored event callback
void
localTransactionStarted(ConnectionEvent event)
Ignored event callback

Method Details

allocateConnection

public Object allocateConnection(ManagedConnectionFactory mcf,
                                 ConnectionRequestInfo cxRequestInfo)
            throws ResourceException
Allocate a new ManagedConnection.
Parameters:
mcf - The ManagedConnectionFactory used to create the new connection.
cxRequestInfo - The parameters to be used in creating the new connection

connectionClosed

public void connectionClosed(ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for when a ManagedConnection is closed.
Parameters:
ce - contains information about the connection that has be closed

connectionErrorOccurred

public void connectionErrorOccurred(ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for when a Local Transaction was rolled back within the context of a ManagedConnection.
Parameters:
ce - contains information about the connection

localTransactionCommitted

public void localTransactionCommitted(ConnectionEvent event)
Ignored event callback

localTransactionRolledback

public void localTransactionRolledback(ConnectionEvent event)
Ignored event callback

localTransactionStarted

public void localTransactionStarted(ConnectionEvent event)
Ignored event callback

Copyright B) 2001 David Jencks and other authors. All rights reserved.