org.apache.jackrabbit.jcr2spi
Interface ItemCache

All Superinterfaces:
ItemLifeCycleListener
All Known Implementing Classes:
ItemCacheImpl

public interface ItemCache
extends ItemLifeCycleListener

ItemCache...


Method Summary
 void clear()
          Clear all entries in the ItemCache and free resources.
 Item getItem(ItemState state)
          Returns the cached Item that belongs to the given ItemState or null if the cache does not contain that Item.
 
Methods inherited from interface org.apache.jackrabbit.jcr2spi.ItemLifeCycleListener
itemCreated, itemDestroyed, itemUpdated
 

Method Detail

getItem

Item getItem(ItemState state)
Returns the cached Item that belongs to the given ItemState or null if the cache does not contain that Item.

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.



Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.