org.datanucleus
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.


Field Summary
static Localiser LOCALISER
          Localisation utility for output messages
 
Method Summary
 List<NucleusOptimisticException> execute(ExecutionContext ec, List<ObjectProvider> primaryOPs, List<ObjectProvider> secondaryOPs, SCOOperationQueue scoQueue)
          Execute the flush.
 

Field Detail

LOCALISER

static final Localiser LOCALISER
Localisation utility for output messages

Method Detail

execute

List<NucleusOptimisticException> execute(ExecutionContext ec,
                                         List<ObjectProvider> primaryOPs,
                                         List<ObjectProvider> secondaryOPs,
                                         SCOOperationQueue scoQueue)
Execute the flush.

Parameters:
ec - ExecutionContext
primaryOPs - ObjectProviders that were made dirty by direct API calls. Cleared during this method
secondaryOPs - ObjectProviders that were made dirty by reachability. Cleared during this method
scoQueue - Queue of SCO operations
Returns:
Any optimistic exceptions during the deletes/inserts/updates


Copyright © 2013. All Rights Reserved.