wt.occurrence
Class OccurrenceCache

java.lang.Object
  extended bywt.occurrence.OccurrenceCache

public class OccurrenceCache
extends Object


Field Summary
private  ArrayList contexts
           
private  boolean singleContext
           
private  HashMap usesOccurrences
           
 
Constructor Summary
OccurrenceCache(boolean singleContext)
           
 
Method Summary
protected  ObjectIdentifier getContextID(OccurrenceableLink link)
           
protected  ObjectIdentifier getLinkID(UsesOccurrence occurrence)
           
static OccurrenceCache getOccurrenceCache(String cacheName)
          Given the name of an occurrence cache, retrieves it from the method context.
protected  QueryResult getUsesOccurrences(ObjectIdentifier contextID)
           
 QueryResult getUsesOccurrences(OccurrenceableLink link)
           
protected  void updateOccurrences(ObjectIdentifier contextID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contexts

private ArrayList contexts

usesOccurrences

private HashMap usesOccurrences

singleContext

private boolean singleContext
Constructor Detail

OccurrenceCache

public OccurrenceCache(boolean singleContext)
Method Detail

getOccurrenceCache

public static OccurrenceCache getOccurrenceCache(String cacheName)
Given the name of an occurrence cache, retrieves it from the method context. If a cache by that name does not exist, this method will create it and add it to the method context.


getUsesOccurrences

public QueryResult getUsesOccurrences(OccurrenceableLink link)
                               throws WTException
Throws:
WTException

updateOccurrences

protected void updateOccurrences(ObjectIdentifier contextID)
                          throws WTException
Throws:
WTException

getUsesOccurrences

protected QueryResult getUsesOccurrences(ObjectIdentifier contextID)
                                  throws WTException
Throws:
WTException

getContextID

protected ObjectIdentifier getContextID(OccurrenceableLink link)

getLinkID

protected ObjectIdentifier getLinkID(UsesOccurrence occurrence)