org.springframework.jca.cci.connection
Class ConnectionFactoryUtils.ConnectionSynchronization

java.lang.Object
  extended by org.springframework.transaction.support.ResourceHolderSynchronization<ConnectionHolder,ConnectionFactory>
      extended by org.springframework.jca.cci.connection.ConnectionFactoryUtils.ConnectionSynchronization
All Implemented Interfaces:
TransactionSynchronization
Enclosing class:
ConnectionFactoryUtils

private static class ConnectionFactoryUtils.ConnectionSynchronization
extends ResourceHolderSynchronization<ConnectionHolder,ConnectionFactory>

Callback for resource cleanup at the end of a non-native CCI transaction (e.g. when participating in a JTA transaction).


Field Summary
 
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
 
Constructor Summary
ConnectionFactoryUtils.ConnectionSynchronization(ConnectionHolder connectionHolder, ConnectionFactory connectionFactory)
           
 
Method Summary
protected  void releaseResource(ConnectionHolder resourceHolder, ConnectionFactory resourceKey)
          Release the given resource (after it has been unbound from the thread).
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSynchronization
afterCommit, afterCompletion, beforeCommit, beforeCompletion, cleanupResource, flush, flushResource, processResourceAfterCommit, resume, shouldReleaseBeforeCompletion, shouldUnbindAtCompletion, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryUtils.ConnectionSynchronization

public ConnectionFactoryUtils.ConnectionSynchronization(ConnectionHolder connectionHolder,
                                                        ConnectionFactory connectionFactory)
Method Detail

releaseResource

protected void releaseResource(ConnectionHolder resourceHolder,
                               ConnectionFactory resourceKey)
Description copied from class: ResourceHolderSynchronization
Release the given resource (after it has been unbound from the thread).

Overrides:
releaseResource in class ResourceHolderSynchronization<ConnectionHolder,ConnectionFactory>
Parameters:
resourceHolder - the resource holder to process
resourceKey - the key that the ResourceHolder was bound for