ca.uhn.cache.internal.hibernate.impl
Class ChunkField

java.lang.Object
  extended byca.uhn.cache.impl.CommonsLangObject
      extended byca.uhn.cache.internal.hibernate.impl.HibernateObject
          extended byca.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

Constructor Summary
ChunkField()
          Constructor
 
Method Summary
 void addReason(HibernateCacheReasonEnum theReason)
           
 IQuery getBoundaries()
           
 java.sql.Timestamp getCacheTime()
           
 java.sql.Timestamp getExpiryTime()
           
 java.sql.Timestamp getLastAccessTime()
           
 java.sql.Timestamp getLastUpdateTime()
           
 int getQueryHash()
           
 java.util.Set getReasons()
           
 VolatilityEnum getVolatility()
           
 void setBoundaries(IQuery theBoundaries)
           
 void setCacheTime(java.sql.Timestamp theCacheTime)
           
 void setExpiryTime(java.sql.Timestamp theExpityTime)
           
 void setLastAccessTime(java.sql.Timestamp theLastAccessTime)
           
 void setLastUpdateTime(java.sql.Timestamp theLastUpdateTime)
           
 void setQueryHash(int theQueryHash)
           
 void setReasons(java.util.Set theReasons)
           
 void setVolatility(VolatilityEnum theVolatility)
           
 IChunk toChunk()
           
 
Methods inherited from class ca.uhn.cache.internal.hibernate.impl.HibernateObject
getHibernateId, setHibernateId
 
Methods inherited from class ca.uhn.cache.impl.CommonsLangObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkField

public ChunkField()
Constructor

Method Detail

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.