|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.hibernate.regions.EhcacheDataRegion
net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion
public class EhcacheTransactionalDataRegion
An Ehcache specific TransactionalDataRegion.
This is the common superclass entity and collection regions.
Field Summary | |
---|---|
protected org.hibernate.cache.CacheDataDescription |
metadata
Metadata associated with the objects stored in the region. |
protected org.hibernate.cfg.Settings |
settings
Hibernate settings associated with the persistence unit. |
Fields inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion |
---|
accessStrategyFactory, cache |
Method Summary | |
---|---|
void |
clear()
Remove all mapping from this cache region. |
Object |
get(Object key)
Get the value mapped to this key, or null if no value is mapped to this key. |
org.hibernate.cache.CacheDataDescription |
getCacheDataDescription()
|
org.hibernate.cfg.Settings |
getSettings()
Return the hibernate settings |
boolean |
isTransactionAware()
|
boolean |
locksAreIndependentOfCache()
Returns true if the locks used by the locking methods of this region are the independent of the cache. |
void |
put(Object key,
Object value)
Map the given value to the given key, replacing any existing mapping for this key this unpins the key in the cache should it be currently pinned |
void |
putPinned(Object key,
Object value)
Map the given value to the given key, replacing any existing mapping for this key, pinning the key in the cache |
void |
readLock(Object key)
Attempts to read lock the mapping for the given key. |
void |
readUnlock(Object key)
Attempts to read unlock the mapping for the given key. |
void |
remove(Object key)
Remove the mapping for this key (if any exists). |
void |
writeLock(Object key)
Attempts to write lock the mapping for the given key. |
void |
writeUnlock(Object key)
Attempts to write unlock the mapping for the given key. |
Methods inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion |
---|
contains, destroy, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.cache.Region |
---|
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap |
Field Detail |
---|
protected final org.hibernate.cfg.Settings settings
protected final org.hibernate.cache.CacheDataDescription metadata
Method Detail |
---|
public org.hibernate.cfg.Settings getSettings()
public boolean isTransactionAware()
isTransactionAware
in interface org.hibernate.cache.TransactionalDataRegion
public org.hibernate.cache.CacheDataDescription getCacheDataDescription()
getCacheDataDescription
in interface org.hibernate.cache.TransactionalDataRegion
public final Object get(Object key)
public final void put(Object key, Object value) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void putPinned(Object key, Object value) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void remove(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void clear() throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void writeLock(Object key)
public final void writeUnlock(Object key)
public final void readLock(Object key)
public final void readUnlock(Object key)
public final boolean locksAreIndependentOfCache()
true
if the locks used by the locking methods of this region are the independent of the cache.
Independent locks are not locked by the cache when the cache is accessed directly. This means that for an independent lock lock holds taken through a region method will not block direct access to the cache via other means.
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |