|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.cache.jbc2.collection.TransactionalAccess
public class TransactionalAccess
This defines the strategy for transactional access to collection data in a pessimistic-locking JBossCache using its 2.x APIs
Constructor Summary | |
---|---|
|
TransactionalAccess(CollectionRegionImpl region)
Create a new TransactionalAccess. |
protected |
TransactionalAccess(CollectionRegionImpl region,
TransactionalAccessDelegate delegate)
Allow subclasses to define the delegate. |
Method Summary | |
---|---|
void |
evict(Object key)
|
void |
evictAll()
|
Object |
get(Object key,
long txTimestamp)
|
CollectionRegion |
getRegion()
|
SoftLock |
lockItem(Object key,
Object version)
|
SoftLock |
lockRegion()
|
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version)
|
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
|
void |
remove(Object key)
|
void |
removeAll()
|
void |
unlockItem(Object key,
SoftLock lock)
|
void |
unlockRegion(SoftLock lock)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalAccess(CollectionRegionImpl region)
region
- the region to which this provides accessprotected TransactionalAccess(CollectionRegionImpl region, TransactionalAccessDelegate delegate)
region
- the region to which this provides accessdelegate
- type of transactional accessMethod Detail |
---|
public CollectionRegion getRegion()
getRegion
in interface CollectionRegionAccessStrategy
public Object get(Object key, long txTimestamp) throws CacheException
get
in interface CollectionRegionAccessStrategy
CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws CacheException
putFromLoad
in interface CollectionRegionAccessStrategy
CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException
putFromLoad
in interface CollectionRegionAccessStrategy
CacheException
public void remove(Object key) throws CacheException
remove
in interface CollectionRegionAccessStrategy
CacheException
public void removeAll() throws CacheException
removeAll
in interface CollectionRegionAccessStrategy
CacheException
public void evict(Object key) throws CacheException
evict
in interface CollectionRegionAccessStrategy
CacheException
public void evictAll() throws CacheException
evictAll
in interface CollectionRegionAccessStrategy
CacheException
public SoftLock lockItem(Object key, Object version) throws CacheException
lockItem
in interface CollectionRegionAccessStrategy
CacheException
public SoftLock lockRegion() throws CacheException
lockRegion
in interface CollectionRegionAccessStrategy
CacheException
public void unlockItem(Object key, SoftLock lock) throws CacheException
unlockItem
in interface CollectionRegionAccessStrategy
CacheException
public void unlockRegion(SoftLock lock) throws CacheException
unlockRegion
in interface CollectionRegionAccessStrategy
CacheException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |