org.datanucleus.store.types.sco.queued
Class OperationQueue<TStore extends Store>

java.lang.Object
  extended by org.datanucleus.store.types.sco.queued.OperationQueue<TStore>

public class OperationQueue<TStore extends Store>
extends java.lang.Object

Queue of operations to be performed on a second class collection/map. When we are queueing operations until flush()/commit() they wait in this queue until the moment arrives for flushing to the datastore (and

performAll
is called).


Field Summary
protected static Localiser LOCALISER
           
 
Constructor Summary
OperationQueue()
           
 
Method Summary
 void enqueue(QueuedOperation<? super TStore> oper)
          Method to add the specified operation to the operation queue.
 void performAll(TStore store, ObjectProvider op, java.lang.String fieldName)
          Method to perform all operations in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Constructor Detail

OperationQueue

public OperationQueue()
Method Detail

enqueue

public void enqueue(QueuedOperation<? super TStore> oper)
Method to add the specified operation to the operation queue.

Parameters:
oper - Operation

performAll

public void performAll(TStore store,
                       ObjectProvider op,
                       java.lang.String fieldName)
Method to perform all operations in the queue.

Parameters:
store - The backing store
op - ObjectProvider for the owner object.
fieldName - Name of the field for this container in the owner object.


Copyright © 2011. All Rights Reserved.