Package org.apache.jackrabbit.jcr2spi
Interface ItemCache
-
- All Superinterfaces:
ItemLifeCycleListener
- All Known Implementing Classes:
ItemCacheImpl
public interface ItemCache extends ItemLifeCycleListener
ItemCache
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear all entries in the ItemCache and free resources.Item
getItem(ItemState state)
Returns the cachedItem
that belongs to the givenItemState
ornull
if the cache does not contain thatItem
.-
Methods inherited from interface org.apache.jackrabbit.jcr2spi.ItemLifeCycleListener
itemCreated, itemDestroyed, itemUpdated
-
-
-
-
Method Detail
-
getItem
Item getItem(ItemState state)
Returns the cachedItem
that belongs to the givenItemState
ornull
if the cache does not contain thatItem
.- Parameters:
state
- State of the item that should be retrieved.- Returns:
- The item reference stored in the corresponding cache entry
or
null
if there's no corresponding cache entry.
-
clear
void clear()
Clear all entries in the ItemCache and free resources.
-
-