Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cache » [javadoc | source]
org.hibernate.cache
public class: OptimisticTreeCache [javadoc | source]
java.lang.Object
   org.hibernate.cache.OptimisticTreeCache

All Implemented Interfaces:
    OptimisticCache, TransactionAwareCache

Represents a particular region within the given JBossCache TreeCache utilizing TreeCache's optimistic locking capabilities.
Nested Class Summary:
public static class  OptimisticTreeCache.DataVersionAdapter   
public static class  OptimisticTreeCache.NonLockingDataVersion  Used in regions where no locking should ever occur. This includes query-caches, update-timestamps caches, collection caches, and entity caches where the entity is not versioned. 
public static class  OptimisticTreeCache.CircumventChecksDataVersion  Used to signal to a DataVersionAdapter to simply not perform any checks. This is currently needed for proper handling of remove() calls for entity cache regions (we do not know the version info...). 
Constructor:
 public OptimisticTreeCache(TreeCache cache,
    String regionName) throws CacheException 
Method from org.hibernate.cache.OptimisticTreeCache Summary:
clear,   destroy,   get,   getElementCountInMemory,   getElementCountOnDisk,   getRegionName,   getSizeInMemory,   getTimeout,   lock,   nextTimestamp,   put,   read,   remove,   setSource,   toMap,   toString,   unlock,   update,   writeInsert,   writeLoad,   writeUpdate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.cache.OptimisticTreeCache Detail:
 public  void clear() throws CacheException 
 public  void destroy() throws CacheException 
 public Object get(Object key) throws CacheException 
 public long getElementCountInMemory() 
 public long getElementCountOnDisk() 
 public String getRegionName() 
 public long getSizeInMemory() 
 public int getTimeout() 
 public  void lock(Object key) throws CacheException 
 public long nextTimestamp() 
 public  void put(Object key,
    Object value) throws CacheException 
 public Object read(Object key) throws CacheException 
 public  void remove(Object key) throws CacheException 
 public  void setSource(OptimisticCacheSource source) 
 public Map toMap() 
 public String toString() 
 public  void unlock(Object key) throws CacheException 
 public  void update(Object key,
    Object value) throws CacheException 
 public  void writeInsert(Object key,
    Object value,
    Object currentVersion) 
 public  void writeLoad(Object key,
    Object value,
    Object currentVersion) 
 public  void writeUpdate(Object key,
    Object value,
    Object currentVersion,
    Object previousVersion)