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
FieldsModifier and TypeFieldDescriptionprotected final EclipselinkPersistenceSupport.ContainerResourceHolderFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionContainerResourceSynchronization(EclipselinkPersistenceSupport.ContainerResourceHolder resourceHolder, String resourceKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int status) voidbeforeCommit(boolean readOnly) protected voidcleanupResource(EclipselinkPersistenceSupport.ContainerResourceHolder resourceHolder, String resourceKey, boolean committed) intgetOrder()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:
cleanupResourcein classorg.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,String>
-
beforeCommit
public void beforeCommit(boolean readOnly) - Specified by:
beforeCommitin interfaceorg.springframework.transaction.support.TransactionSynchronization- Overrides:
beforeCommitin classorg.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,String>
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletionin interfaceorg.springframework.transaction.support.TransactionSynchronization- Overrides:
afterCompletionin classorg.springframework.transaction.support.ResourceHolderSynchronization<EclipselinkPersistenceSupport.ContainerResourceHolder,String>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.springframework.transaction.support.TransactionSynchronization
-