Package org.datanucleus.flush
Class FlushOrdered
java.lang.Object
org.datanucleus.flush.FlushOrdered
- All Implemented Interfaces:
FlushProcess
Flush process that processes the objects in the order that they became dirty.
If a datastore uses referential integrity this is typically the best way of maintaining a valid update process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(ExecutionContext ec, Collection<DNStateManager> primaryDNs, Collection<DNStateManager> secondaryDNs, OperationQueue opQueue) Execute the flush.
-
Constructor Details
-
FlushOrdered
public FlushOrdered()
-
-
Method Details
-
execute
public List<NucleusOptimisticException> execute(ExecutionContext ec, Collection<DNStateManager> primaryDNs, Collection<DNStateManager> secondaryDNs, OperationQueue opQueue) Description copied from interface:FlushProcess
Execute the flush.- Specified by:
execute
in interfaceFlushProcess
- Parameters:
ec
- ExecutionContextprimaryDNs
- StateManagers that were made dirty by direct API calls. Cleared during this methodsecondaryDNs
- StateManagers that were made dirty by reachability. Cleared during this methodopQueue
- Queue of operations- Returns:
- Any optimistic exceptions during the deletes/inserts/updates
-