Package org.datanucleus.flush
Class FlushOrdered
- java.lang.Object
-
- org.datanucleus.flush.FlushOrdered
-
- All Implemented Interfaces:
FlushProcess
public class FlushOrdered extends Object implements 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 Constructor Description FlushOrdered()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NucleusOptimisticException>
execute(ExecutionContext ec, Collection<DNStateManager> primaryDNs, Collection<DNStateManager> secondaryDNs, OperationQueue opQueue)
Execute the flush.
-
-
-
Method Detail
-
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
-
-