|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.cache.ReadOnlyCache
Caches data that is never updated.
CacheConcurrencyStrategy| Nested Class Summary |
| Nested classes inherited from class net.sf.hibernate.cache.CacheConcurrencyStrategy |
CacheConcurrencyStrategy.SoftLock |
| Constructor Summary | |
ReadOnlyCache()
|
|
| Method Summary | |
void |
afterInsert(Object key,
Object value,
Object version)
Do nothing. |
void |
afterUpdate(Object key,
Object value,
Object version,
CacheConcurrencyStrategy.SoftLock lock)
Unsupported! |
void |
clear()
Evict all items from the cache immediately. |
void |
destroy()
Clean up all resources. |
void |
evict(Object key)
Do nothing. |
Object |
get(Object key,
long timestamp)
Attempt to retrieve an object from the cache. |
void |
insert(Object key,
Object value)
Do nothing. |
CacheConcurrencyStrategy.SoftLock |
lock(Object key,
Object version)
Unsupported! |
boolean |
put(Object key,
Object value,
long timestamp,
Object version,
Comparator versionComparator)
Attempt to cache an object, after loading from the database. |
void |
release(Object key,
CacheConcurrencyStrategy.SoftLock lock)
Unsupported! |
void |
remove(Object key)
Evict an item from the cache immediately (without regard for transaction isolation). |
void |
setCache(Cache cache)
Set the underlying cache implementation. |
void |
setMinimalPuts(boolean minimalPuts)
Enable "minimal puts" mode for this cache |
void |
update(Object key,
Object value)
Unsupported! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReadOnlyCache()
| Method Detail |
public void setCache(Cache cache)
CacheConcurrencyStrategy
setCache in interface CacheConcurrencyStrategycache - public Object get(Object key, long timestamp) throws CacheException
CacheConcurrencyStrategy
get in interface CacheConcurrencyStrategykey - timestamp - a timestamp prior to the transaction start time
CacheExceptionpublic CacheConcurrencyStrategy.SoftLock lock(Object key, Object version)
lock in interface CacheConcurrencyStrategykey - version - public boolean put(Object key, Object value, long timestamp, Object version, Comparator versionComparator) throws CacheException
CacheConcurrencyStrategy
put in interface CacheConcurrencyStrategykey - value - timestamp - a timestamp prior to the transaction start timeversion - the version number of the object we are puttingversionComparator - a Comparator to be used to compare version numbers
CacheExceptionpublic void release(Object key, CacheConcurrencyStrategy.SoftLock lock)
release in interface CacheConcurrencyStrategykey -
public void clear()
throws CacheException
CacheConcurrencyStrategy
clear in interface CacheConcurrencyStrategyCacheExceptionpublic void remove(Object key) throws CacheException
CacheConcurrencyStrategy
remove in interface CacheConcurrencyStrategykey -
CacheExceptionpublic void destroy()
CacheConcurrencyStrategy
destroy in interface CacheConcurrencyStrategypublic void afterUpdate(Object key, Object value, Object version, CacheConcurrencyStrategy.SoftLock lock) throws CacheException
afterUpdate in interface CacheConcurrencyStrategyCacheExceptionpublic void afterInsert(Object key, Object value, Object version) throws CacheException
afterInsert in interface CacheConcurrencyStrategyCacheExceptionpublic void evict(Object key) throws CacheException
evict in interface CacheConcurrencyStrategyCacheExceptionpublic void insert(Object key, Object value) throws CacheException
insert in interface CacheConcurrencyStrategyCacheExceptionpublic void update(Object key, Object value) throws CacheException
update in interface CacheConcurrencyStrategyCacheException
public void setMinimalPuts(boolean minimalPuts)
throws HibernateException
CacheConcurrencyStrategy
setMinimalPuts in interface CacheConcurrencyStrategyHibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||