|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.util.EPMCache.VersionCache
A Version Cache holds Iterated objects and indexes them using version keys. Given a version key it returns the object with the same branch identifier. If an object is not in its cache, the Version Cache will query it from the database and add it to its cache.
Field Summary | |
private HashMap |
cache
|
Constructor Summary | |
EPMCache.VersionCache()
Constructs a VersionCache. |
|
EPMCache.VersionCache(Collection objects)
Constructs a VersionCache adding the collection of Iterated objects to its cache. |
Method Summary | |
void |
add(Collection objects)
Adds a collection of Iterated objects to the Version Cache. |
void |
add(Iterated object)
Adds an Iterated object to the Version Cache. |
boolean |
contains(Iterated object)
Returns true if the cache contains the given Iterated object. |
boolean |
contains(VersionForeignKey versionKey)
Returns true if the cache contains the Iterated object with the given version key. |
List |
find(Collection versionKeys)
Given a collection of version keys, returns the Iterated objects with the same branch identifiers. |
private List |
findObjects(Collection versionKeys)
Given a collection of version keys, retrieves the Iterated objects with the same branch identifiers from the database. |
Iterated |
get(VersionForeignKey versionKey)
Given an version key, returns the object with the same branch identifier provided the object is in the cache. |
boolean |
isEmpty()
Returns true if this cache contains no objects. |
Collection |
objects()
Returns an unmodifiable collection view of the objects in this cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private HashMap cache
Constructor Detail |
public EPMCache.VersionCache()
public EPMCache.VersionCache(Collection objects) throws WTException
Method Detail |
public Iterated get(VersionForeignKey versionKey)
public void add(Iterated object) throws WTException
WTException
public void add(Collection objects) throws WTException
WTException
public List find(Collection versionKeys) throws WTException
WTException
public Collection objects()
public boolean isEmpty()
public boolean contains(Iterated object) throws WTException
WTException
public boolean contains(VersionForeignKey versionKey)
private List findObjects(Collection versionKeys) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |