MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.model.updatePrimitives
Class PendingUpdateList

java.lang.Object
  extended by ch.ethz.mxquery.model.updatePrimitives.PendingUpdateList

public class PendingUpdateList
extends java.lang.Object


Constructor Summary
PendingUpdateList(QueryLocation loc)
           
 
Method Summary
 void add(UpdatePrimitive up)
           
 void apply()
          Applies all updates.
 boolean checkStoreUsage(Set stores)
          Check if all the updates contained in the PUL are working against the stores given as parameter
 void clear()
          Removes all update primitives from this pending update list.
 void merge(PendingUpdateList pul)
          Merges the a pending updating list with this list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingUpdateList

public PendingUpdateList(QueryLocation loc)
Method Detail

add

public void add(UpdatePrimitive up)
         throws MXQueryException
Throws:
MXQueryException

apply

public void apply()
           throws MXQueryException
Applies all updates. Important: Because an update should not be executed twice, the list is cleared afterwards.

Throws:
MXQueryException

clear

public void clear()
Removes all update primitives from this pending update list.


merge

public void merge(PendingUpdateList pul)
           throws MXQueryException
Merges the a pending updating list with this list

Parameters:
pul - pending update list that has to be merge to this.
Throws:
MXQueryException

checkStoreUsage

public boolean checkStoreUsage(Set stores)
Check if all the updates contained in the PUL are working against the stores given as parameter

Parameters:
stores - Set of stores to check
Returns:
true if all updates work (only) against the stores given in stores, false otherwise

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich