ca.uhn.cache.internal.hibernate.impl
Class ChunkField
java.lang.Object
ca.uhn.cache.impl.CommonsLangObject
ca.uhn.cache.internal.hibernate.impl.HibernateObject
ca.uhn.cache.internal.hibernate.impl.ChunkField
- public class ChunkField
- extends HibernateObject
A block of data that is retrieved and cached together. The
boundaries of a IChunk are defined according to
QueryParameters. Data items may have attributes
such as category, date, name, etc. Some of these, for example
category and date, will correspond to QueryParameters.
A IChunk is a grouping of data items in the same part
of the QueryParameter space. How this space is divided
is determined by a ISemanticCache.
- Version:
- $Revision: 1.1 $ updated on $Date: 2005/01/24 22:52:40 $ by $Author: bryan_tripp $
- Author:
- Bryan Tripp
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ChunkField
public ChunkField()
- Constructor
getVolatility
public VolatilityEnum getVolatility()
- Returns:
- the greatest volatility of all data in the chunk
setVolatility
public void setVolatility(VolatilityEnum theVolatility)
- Parameters:
theVolatility - the greatest volatility of all data in the chunk
getLastUpdateTime
public java.sql.Timestamp getLastUpdateTime()
- Returns:
- the most recent time of update of all data in the chunk
setLastUpdateTime
public void setLastUpdateTime(java.sql.Timestamp theLastUpdateTime)
- Parameters:
theLastUpdateTime - the most recent time of update of all data in the chunk
getCacheTime
public java.sql.Timestamp getCacheTime()
- Returns:
- the time at which the data in the chunk were cached
setCacheTime
public void setCacheTime(java.sql.Timestamp theCacheTime)
- Parameters:
theCacheTime - the time at which the data in the chunk were cached
getLastAccessTime
public java.sql.Timestamp getLastAccessTime()
- Returns:
- the most recent time at which data in the the chunk were accessed
setLastAccessTime
public void setLastAccessTime(java.sql.Timestamp theLastAccessTime)
- Parameters:
theLastAccessTime - the most recent time at which data in the the chunk were accessed
getReasons
public java.util.Set getReasons()
- Returns:
- a list of reasons why this chunk was cached
setReasons
public void setReasons(java.util.Set theReasons)
- Parameters:
theReasons - a list of reasons why this chunk was cached
addReason
public void addReason(HibernateCacheReasonEnum theReason)
- Parameters:
theReason - the reason to add
setQueryHash
public void setQueryHash(int theQueryHash)
- Parameters:
theQueryHash - the hash code for the query corresponding to this chunk
getQueryHash
public int getQueryHash()
- Returns:
- the hash code for the query corresponding to this chunk
getExpiryTime
public java.sql.Timestamp getExpiryTime()
- Returns:
- Returns the expityTime.
setExpiryTime
public void setExpiryTime(java.sql.Timestamp theExpityTime)
- Parameters:
theExpityTime - The expityTime to set.
getBoundaries
public IQuery getBoundaries()
- Returns:
- Returns the boundaries.
setBoundaries
public void setBoundaries(IQuery theBoundaries)
- Parameters:
theBoundaries - The boundaries to set.
toChunk
public IChunk toChunk()
- Returns:
- The
IChunk this chunk field maps to.
Copyright © 2004-2005 University Health Network. All Rights Reserved.