Package io.jmix.data.impl
Class SavedEntitiesHolder
java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
io.jmix.data.impl.SavedEntitiesHolder
- All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder
public class SavedEntitiesHolder
extends org.springframework.transaction.support.ResourceHolderSupport
Holds entities being saved by
RdbmsStore
during a transaction.
It ensures that commit()
returns last saved entities regardless of how many saves where performed in
listeners.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntities
(Collection<Object> saved) static SavedEntitiesHolder
setEntities
(Collection<Object> saved) toString()
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
-
Field Details
-
RESOURCE_KEY
- See Also:
-
-
Constructor Details
-
SavedEntitiesHolder
public SavedEntitiesHolder()
-
-
Method Details