|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ashkay.CacheEntry
CacheEntry represents a single entry in the object cache. A cache entry contains the cached object and properties associated with the entry. These properties may be used by the CachingStrategy to detirmine if an entry passes validation.
Constructor Summary | |
protected |
CacheEntry()
Empty constructor for subclasses only |
|
CacheEntry(java.lang.Object entryKey,
java.lang.Object entryObject)
Creates a default CacheEntry |
|
CacheEntry(java.lang.Object entryKey,
java.lang.Object entryObject,
java.util.Map entryProperties)
Creates a CacheEntry with properties pre-specified |
|
CacheEntry(java.lang.Object entryKey,
java.lang.Object entryObject,
java.util.Map entryProperties,
ObjectCache theCache)
|
Method Summary | |
void |
addProperties(java.util.Map propertiesToAdd)
Adds a group of properties to this entry, en masse |
void |
addProperty(java.lang.Object key,
java.lang.Object value)
Adds a property to this entry. |
ObjectCache |
getCache()
|
java.lang.Object |
getEntryKey()
|
java.lang.Object |
getEntryObject()
Returns the object this entry represents. |
java.util.Map |
getProperties()
Returns the entire Map of this entry's properties |
java.lang.Object |
getProperty(java.lang.Object key)
Looks up a property of this entry |
void |
setCache(ObjectCache myCache)
|
void |
setEntryKey(java.lang.Object key)
|
void |
setEntryObject(java.lang.Object entryObject)
Sets the object this entry represents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CacheEntry()
public CacheEntry(java.lang.Object entryKey, java.lang.Object entryObject)
entryObject
- - the object this entry representspublic CacheEntry(java.lang.Object entryKey, java.lang.Object entryObject, java.util.Map entryProperties)
entryObject
- - the object this entry representsentryProperties
- - the properties of this entrypublic CacheEntry(java.lang.Object entryKey, java.lang.Object entryObject, java.util.Map entryProperties, ObjectCache theCache)
Method Detail |
public java.lang.Object getEntryKey()
public void setEntryKey(java.lang.Object key)
public java.lang.Object getEntryObject()
public void setEntryObject(java.lang.Object entryObject)
entryObject
- - the new object to representpublic void addProperty(java.lang.Object key, java.lang.Object value)
key
- - the key to this propertyvalue
- - the value to hold in the propertypublic java.lang.Object getProperty(java.lang.Object key)
key
- - the key of the property to lookup
public void addProperties(java.util.Map propertiesToAdd)
propertiesToAdd
- - map of properties to addpublic java.util.Map getProperties()
public ObjectCache getCache()
public void setCache(ObjectCache myCache)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |