Package io.jmix.eclipselink.impl
Class EclipselinkPersistenceSupport.ContainerResourceSynchronization
java.lang.Object
org.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,String>
io.jmix.eclipselink.impl.EclipselinkPersistenceSupport.ContainerResourceSynchronization
- All Implemented Interfaces:
Flushable
,org.springframework.core.Ordered
,org.springframework.transaction.support.TransactionSynchronization
- Enclosing class:
- EclipselinkPersistenceSupport
protected class EclipselinkPersistenceSupport.ContainerResourceSynchronization
extends org.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,String>
implements org.springframework.core.Ordered
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EclipselinkPersistenceSupport.ContainerResourceHolder
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
-
Constructor Summary
ConstructorDescriptionContainerResourceSynchronization
(EclipselinkPersistenceSupport.ContainerResourceHolder resourceHolder, String resourceKey) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(int status) void
beforeCommit
(boolean readOnly) protected void
cleanupResource
(EclipselinkPersistenceSupport.ContainerResourceHolder resourceHolder, String resourceKey, boolean committed) int
getOrder()
Methods inherited from class org.springframework.transaction.support.ResourceHolderSynchronization
afterCommit, beforeCompletion, flush, flushResource, processResourceAfterCommit, releaseResource, resume, shouldReleaseAfterCompletion, shouldReleaseBeforeCompletion, shouldUnbindAtCompletion, suspend
-
Field Details
-
container
-
-
Constructor Details
-
ContainerResourceSynchronization
public ContainerResourceSynchronization(EclipselinkPersistenceSupport.ContainerResourceHolder resourceHolder, String resourceKey)
-
-
Method Details
-
cleanupResource
protected void cleanupResource(EclipselinkPersistenceSupport.ContainerResourceHolder resourceHolder, String resourceKey, boolean committed) - Overrides:
cleanupResource
in classorg.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,
String>
-
beforeCommit
public void beforeCommit(boolean readOnly) - Specified by:
beforeCommit
in interfaceorg.springframework.transaction.support.TransactionSynchronization
- Overrides:
beforeCommit
in classorg.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,
String>
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletion
in interfaceorg.springframework.transaction.support.TransactionSynchronization
- Overrides:
afterCompletion
in classorg.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,
String>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Specified by:
getOrder
in interfaceorg.springframework.transaction.support.TransactionSynchronization
-