|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.uhn.cache.impl.CommonsLangObject ca.uhn.cache.impl.DataItem
Represents an individual item stored by a cache. It is only defined in terms
of a ParamSpace
(see getProjection()).
Constructor Summary | |
DataItem(java.lang.String theId,
java.io.Serializable theValue,
IQuery theProjection,
VolatilityEnum theVolatility,
java.util.Date theLastUpdate)
Constructor |
|
DataItem(java.lang.String theId,
java.io.Serializable theValue,
IQuery theProjection,
VolatilityEnum theVolatility,
java.lang.String theLastUpdate)
Constructor |
Method Summary | |
java.lang.String |
getId()
|
java.util.Date |
getLastUpdate()
|
IQuery |
getProjection()
|
java.io.Serializable |
getValue()
|
VolatilityEnum |
getVolatility()
|
int |
hashCode()
|
void |
setLastUpdate(java.util.Date theLastUpdate)
{@inheritDoc} |
Methods inherited from class ca.uhn.cache.impl.CommonsLangObject |
equals, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataItem(java.lang.String theId, java.io.Serializable theValue, IQuery theProjection, VolatilityEnum theVolatility, java.lang.String theLastUpdate) throws java.text.ParseException
theId
- The item's unique identifier.theValue
- The domain specific item to wrap with this objecttheProjection
- The location of the item in the associated IParamSpace
theVolatility
- The item's volatility (has an impact on the item's TTL in the cache).theLastUpdate
- The time the item was last updated in the source system represented as a string,
where the format is (MMM dd, yyyy h:mm a). If this is unknown, and set
to null, this class will set it to the current time
java.text.ParseException
- If theLastUpdate date/time could not be parsed.public DataItem(java.lang.String theId, java.io.Serializable theValue, IQuery theProjection, VolatilityEnum theVolatility, java.util.Date theLastUpdate)
theId
- The item's unique identifier.theValue
- The domain specific item to wrap with this objecttheProjection
- The location of the item in the associated IParamSpace
theVolatility
- The item's volatility (has an impact on the item's TTL in the cache).theLastUpdate
- The time the item was last updated in the source system. If this is unknown, and set
to null, this class will set it to the current timeMethod Detail |
public IQuery getProjection()
getProjection
in interface IDataItem
IDataItem
in the (implicitly) associated
IParamSpace
public VolatilityEnum getVolatility()
getVolatility
in interface IDataItem
public java.io.Serializable getValue()
getValue
in interface IDataItem
IDataItem
public java.util.Date getLastUpdate()
getLastUpdate
in interface IDataItem
public java.lang.String getId()
getId
in interface IDataItem
IDataSource
that created this IDataItem
)public void setLastUpdate(java.util.Date theLastUpdate)
public int hashCode()
hashCode
in class CommonsLangObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |