public class FBStandAloneConnectionManager
extends java.lang.Object
implements javax.resource.spi.ConnectionManager, javax.resource.spi.ConnectionEventListener, java.io.Serializable
FBStandAloneConnectionManager provides the
default implementation of ConnectionManager for standalone use.
There is no pooling or other features..| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Allocate a new
ManagedConnection. |
void |
connectionClosed(javax.resource.spi.ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for
when a ManagedConnection is closed. |
void |
connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for
when a Local Transaction was rolled back within the context of a
ManagedConnection. |
void |
localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
Ignored event callback
|
void |
localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
Ignored event callback
|
void |
localTransactionStarted(javax.resource.spi.ConnectionEvent event)
Ignored event callback
|
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
ManagedConnection.allocateConnection in interface javax.resource.spi.ConnectionManagermcf - The ManagedConnectionFactory used to create
the new connection.cxRequestInfo - The parameters to be used in creating the
new connectionjavax.resource.ResourceException - If the connection cannot be allocatedpublic void connectionClosed(javax.resource.spi.ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for
when a ManagedConnection is closed.connectionClosed in interface javax.resource.spi.ConnectionEventListenerce - contains information about the connection that has be closedpublic void connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
javax.resource.spi.ConnectionEventListener callback for
when a Local Transaction was rolled back within the context of a
ManagedConnection.connectionErrorOccurred in interface javax.resource.spi.ConnectionEventListenerce - contains information about the connectionpublic void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
localTransactionStarted in interface javax.resource.spi.ConnectionEventListenerpublic void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
localTransactionCommitted in interface javax.resource.spi.ConnectionEventListenerpublic void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
localTransactionRolledback in interface javax.resource.spi.ConnectionEventListenerCopyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.