|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.ItemCacheImpl
public class ItemCacheImpl
ItemCacheImpl...
| 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. |
void |
itemCreated(Item item)
Called when an Item instance has been created. |
void |
itemDestroyed(Item item)
Called when an ItemImpl instance has been destroyed
(i.e. |
void |
itemUpdated(Item item,
boolean modified)
Called when an Item instance has been refreshed. |
java.lang.String |
toString()
Returns the the state of this instance in a human readable format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Item getItem(ItemState state)
ItemCacheItem that belongs to the given
ItemState or null if the cache does not
contain that Item.
getItem in interface ItemCachestate - State of the item that should be retrieved.
null if there's no corresponding cache entry.ItemCache.getItem(ItemState)public void clear()
ItemCache
clear in interface ItemCacheItemCache.clear()public void itemCreated(Item item)
ItemLifeCycleListenerItem instance has been created.
itemCreated in interface ItemLifeCycleListeneritem - the instance which has been createdItemLifeCycleListener.itemCreated(Item)
public void itemUpdated(Item item,
boolean modified)
ItemLifeCycleListenerItem instance has been refreshed. If
modified is true, the refresh included
some modification.
itemUpdated in interface ItemLifeCycleListeneritem - the instance which has been refreshedpublic void itemDestroyed(Item item)
ItemLifeCycleListenerItemImpl instance has been destroyed
(i.e. it has been permanently rendered 'invalid').
Note that most Item,
Node and Property
methods will throw an InvalidItemStateException when called
on a 'destroyed' item.
itemDestroyed in interface ItemLifeCycleListeneritem - the instance which has been destroyedItemLifeCycleListener.itemDestroyed(Item)public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||