org.tranql.connector.jdbc
Class ManagedPooledConnection

java.lang.Object
  extended by org.tranql.connector.AbstractManagedConnection<Connection,ConnectionHandle>
      extended by org.tranql.connector.jdbc.ManagedPooledConnection
All Implemented Interfaces:
javax.resource.spi.DissociatableManagedConnection, javax.resource.spi.ManagedConnection, ManagedConnectionHandle<Connection,ConnectionHandle>

public class ManagedPooledConnection
extends AbstractManagedConnection<Connection,ConnectionHandle>

Version:
$Revision: 805 $ $Date: 2010-11-12 00:06:35 +0100 (Fri, 12 Nov 2010) $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.tranql.connector.AbstractManagedConnection
AbstractManagedConnection.LocalTransactionImpl
 
Field Summary
 
Fields inherited from class org.tranql.connector.AbstractManagedConnection
cri, handles, listeners, log, mcf, physicalConnection, subject
 
Constructor Summary
ManagedPooledConnection(javax.resource.spi.ManagedConnectionFactory mcf, PooledConnection pooledConnection, CredentialExtractor credentialExtractor, ExceptionSorter exceptionSorter)
           
 
Method Summary
 void cleanup()
          Default implementation dissociates the connection handles.
protected  void closePhysicalConnection()
           
 javax.resource.spi.LocalTransaction getClientLocalTransaction()
           
 javax.resource.spi.LocalTransaction getLocalTransaction()
           
 javax.resource.spi.ManagedConnectionMetaData getMetaData()
           
 XAResource getXAResource()
           
protected  void localTransactionCommit(boolean isSPI)
           
protected  void localTransactionRollback(boolean isSPI)
           
protected  void localTransactionStart(boolean isSPI)
           
 boolean matches(javax.resource.spi.ManagedConnectionFactory mcf, Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 
Methods inherited from class org.tranql.connector.AbstractManagedConnection
addConnectionEventListener, associateConnection, attemptRollback, connectionClosed, connectionError, destroy, dissociateConnections, getConnection, getLogWriter, getPhysicalConnection, removeConnectionEventListener, setLogWriter, unfilteredConnectionError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedPooledConnection

public ManagedPooledConnection(javax.resource.spi.ManagedConnectionFactory mcf,
                               PooledConnection pooledConnection,
                               CredentialExtractor credentialExtractor,
                               ExceptionSorter exceptionSorter)
                        throws SQLException
Throws:
SQLException
Method Detail

matches

public boolean matches(javax.resource.spi.ManagedConnectionFactory mcf,
                       Subject subject,
                       javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
                throws javax.resource.spi.ResourceAdapterInternalException
Throws:
javax.resource.spi.ResourceAdapterInternalException

getClientLocalTransaction

public javax.resource.spi.LocalTransaction getClientLocalTransaction()

getLocalTransaction

public javax.resource.spi.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

localTransactionStart

protected void localTransactionStart(boolean isSPI)
                              throws javax.resource.ResourceException
Overrides:
localTransactionStart in class AbstractManagedConnection<Connection,ConnectionHandle>
Throws:
javax.resource.ResourceException

localTransactionCommit

protected void localTransactionCommit(boolean isSPI)
                               throws javax.resource.ResourceException
Overrides:
localTransactionCommit in class AbstractManagedConnection<Connection,ConnectionHandle>
Throws:
javax.resource.ResourceException

localTransactionRollback

protected void localTransactionRollback(boolean isSPI)
                                 throws javax.resource.ResourceException
Overrides:
localTransactionRollback in class AbstractManagedConnection<Connection,ConnectionHandle>
Throws:
javax.resource.ResourceException

getXAResource

public XAResource getXAResource()
                         throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

cleanup

public void cleanup()
             throws javax.resource.ResourceException
Description copied from class: AbstractManagedConnection
Default implementation dissociates the connection handles. Sub-classes should override to perform any cleanup needed on the physical connection.

Specified by:
cleanup in interface javax.resource.spi.ManagedConnection
Overrides:
cleanup in class AbstractManagedConnection<Connection,ConnectionHandle>
Throws:
javax.resource.ResourceException

closePhysicalConnection

protected void closePhysicalConnection()
                                throws javax.resource.ResourceException
Specified by:
closePhysicalConnection in class AbstractManagedConnection<Connection,ConnectionHandle>
Throws:
javax.resource.ResourceException

getMetaData

public javax.resource.spi.ManagedConnectionMetaData getMetaData()
                                                         throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException


Copyright © 2004-2012 Tranql project committers. All Rights Reserved.