|
||||||||||
| 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 access
protected TransactionalAccess(CollectionRegionImpl region,
TransactionalAccessDelegate delegate)
region - the region to which this provides accessdelegate - type of transactional access| Method Detail |
|---|
public CollectionRegion getRegion()
getRegion in interface CollectionRegionAccessStrategy
public Object get(Object key,
long txTimestamp)
throws CacheException
get in interface CollectionRegionAccessStrategyCacheException
public boolean putFromLoad(Object key,
Object value,
long txTimestamp,
Object version)
throws CacheException
putFromLoad in interface CollectionRegionAccessStrategyCacheException
public boolean putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
throws CacheException
putFromLoad in interface CollectionRegionAccessStrategyCacheException
public void remove(Object key)
throws CacheException
remove in interface CollectionRegionAccessStrategyCacheException
public void removeAll()
throws CacheException
removeAll in interface CollectionRegionAccessStrategyCacheException
public void evict(Object key)
throws CacheException
evict in interface CollectionRegionAccessStrategyCacheException
public void evictAll()
throws CacheException
evictAll in interface CollectionRegionAccessStrategyCacheException
public SoftLock lockItem(Object key,
Object version)
throws CacheException
lockItem in interface CollectionRegionAccessStrategyCacheException
public SoftLock lockRegion()
throws CacheException
lockRegion in interface CollectionRegionAccessStrategyCacheException
public void unlockItem(Object key,
SoftLock lock)
throws CacheException
unlockItem in interface CollectionRegionAccessStrategyCacheException
public void unlockRegion(SoftLock lock)
throws CacheException
unlockRegion in interface CollectionRegionAccessStrategyCacheException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||