private static class ConnectionFactoryUtils.ConnectionSynchronization extends ResourceHolderSynchronization<ConnectionHolder,ConnectionFactory>
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
Constructor and Description |
---|
ConnectionFactoryUtils.ConnectionSynchronization(ConnectionHolder connectionHolder,
ConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
releaseResource(ConnectionHolder resourceHolder,
ConnectionFactory resourceKey)
Release the given resource (after it has been unbound from the thread).
|
afterCommit, afterCompletion, beforeCommit, beforeCompletion, cleanupResource, flush, flushResource, processResourceAfterCommit, resume, shouldReleaseAfterCompletion, shouldReleaseBeforeCompletion, shouldUnbindAtCompletion, suspend
public ConnectionFactoryUtils.ConnectionSynchronization(ConnectionHolder connectionHolder, ConnectionFactory connectionFactory)
protected void releaseResource(ConnectionHolder resourceHolder, ConnectionFactory resourceKey)
ResourceHolderSynchronization
releaseResource
in class ResourceHolderSynchronization<ConnectionHolder,ConnectionFactory>
resourceHolder
- the resource holder to processresourceKey
- the key that the ResourceHolder was bound for