Package org.datanucleus.flush
Interface FlushProcess
- All Known Implementing Classes:
FlushNonReferential
,FlushOrdered
public interface FlushProcess
Representation of a persistence flush process.
Decides in what order the "dirty" objects/fields are to be processed in.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(ExecutionContext ec, Collection<DNStateManager> primarySMs, Collection<DNStateManager> secondarySMs, OperationQueue opQueue) Execute the flush.
-
Method Details
-
execute
List<NucleusOptimisticException> execute(ExecutionContext ec, Collection<DNStateManager> primarySMs, Collection<DNStateManager> secondarySMs, OperationQueue opQueue) Execute the flush.- Parameters:
ec
- ExecutionContextprimarySMs
- StateManagers that were made dirty by direct API calls. Cleared during this methodsecondarySMs
- StateManagers that were made dirty by reachability. Cleared during this methodopQueue
- Queue of operations- Returns:
- Any optimistic exceptions during the deletes/inserts/updates
-