| Access | Constructor and Description |
|---|---|
| public | ReadOnlyEhcacheCollectionRegionAccessStrategy(EhcacheCollectionRegion region, Settings settings)
Create a read-only access strategy accessing the given collection region. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | get(Object
The key of the item to be retrieved. key, long a timestamp prior to the transaction start time txTimestamp)Implements org. |
| public CollectionRegion | getRegion()
Implements org. |
| public SoftLock | lockItem(Object
The key of the item to lock key, Object The item's current version value version)Implements org. |
| public boolean | putFromLoad(Object
The item key key, Object The item value, long a timestamp prior to the transaction start time txTimestamp, Object the item version number version, boolean Explicit minimalPut flag minimalPutOverride)Implements abstract net. Implements org. |
| public void | unlockItem(Object
The item key key, SoftLock The lock previously obtained from lock)lockItemImplements org. |
| ReadOnlyEhcacheCollectionRegionAccessStrategy | back to summary |
|---|---|
| public ReadOnlyEhcacheCollectionRegionAccessStrategy(EhcacheCollectionRegion region, Settings settings) Create a read-only access strategy accessing the given collection region. | |
| get | back to summary |
|---|---|
| public Object get(Object key, long txTimestamp) throws CacheException Implements org. Doc from org. Attempt to retrieve an object from the cache. Mainly used in attempting to resolve entities/collections from the second level cache.
| |
| getRegion | back to summary |
|---|---|
| public CollectionRegion getRegion() Implements org. Doc from org. Get the wrapped collection cache region
| |
| lockItem | back to summary |
|---|---|
| public SoftLock lockItem(Object key, Object version) throws UnsupportedOperationException Implements org. Throws UnsupportedOperationException since this cache is read-only
| |
| putFromLoad | back to summary |
|---|---|
| public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException Implements abstract net. Implements org. Doc from org. Attempt to cache an object, after loading from the database, explicitly specifying the minimalPut behavior.
| |
| unlockItem | back to summary |
|---|---|
| public void unlockItem(Object key, SoftLock lock) throws CacheException Implements org. A no-op since this cache is read-only
| |