org.apache.jackrabbit.jcr2spi
Interface ItemManager

All Known Implementing Classes:
ItemManagerImpl

public interface ItemManager

There's one ItemManager instance per Session instance. It is the factory for Node and Property instances.

The ItemManager's responsabilities are:

If the parent Session is an XASession, there is one ItemManager instance per started global transaction.


Method Summary
 void dispose()
          Disposes this ItemManager and frees resources.
 javax.jcr.NodeIterator getChildNodes(NodeEntry parentEntry)
           
 javax.jcr.PropertyIterator getChildProperties(NodeEntry parentEntry)
           
 javax.jcr.Item getItem(HierarchyEntry hierarchyEntry)
           
 javax.jcr.Node getNode(Path path)
           
 javax.jcr.Property getProperty(Path path)
           
 boolean hasChildNodes(NodeEntry parentEntry)
           
 boolean hasChildProperties(NodeEntry parentEntry)
           
 boolean itemExists(HierarchyEntry hierarchyEntry)
          Checks if the item for given HierarchyEntry exists.
 boolean nodeExists(Path path)
          Checks if the node with the given path exists.
 boolean propertyExists(Path path)
          Checks if the property with the given path exists.
 

Method Detail

dispose

void dispose()
Disposes this ItemManager and frees resources.


nodeExists

boolean nodeExists(Path path)
Checks if the node with the given path exists.

Parameters:
path - path to the node to be checked
Returns:
true if the specified item exists

propertyExists

boolean propertyExists(Path path)
Checks if the property with the given path exists.

Parameters:
path - path to the property to be checked
Returns:
true if the specified item exists

itemExists

boolean itemExists(HierarchyEntry hierarchyEntry)
Checks if the item for given HierarchyEntry exists.

Parameters:
hierarchyEntry -
Returns:
true if the specified item exists

getNode

javax.jcr.Node getNode(Path path)
                       throws javax.jcr.PathNotFoundException,
                              javax.jcr.RepositoryException
Parameters:
path -
Returns:
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getProperty

javax.jcr.Property getProperty(Path path)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Parameters:
path -
Returns:
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getItem

javax.jcr.Item getItem(HierarchyEntry hierarchyEntry)
                       throws javax.jcr.ItemNotFoundException,
                              javax.jcr.RepositoryException
Parameters:
hierarchyEntry -
Returns:
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

hasChildNodes

boolean hasChildNodes(NodeEntry parentEntry)
                      throws javax.jcr.ItemNotFoundException,
                             javax.jcr.RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

getChildNodes

javax.jcr.NodeIterator getChildNodes(NodeEntry parentEntry)
                                     throws javax.jcr.ItemNotFoundException,
                                            javax.jcr.RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

hasChildProperties

boolean hasChildProperties(NodeEntry parentEntry)
                           throws javax.jcr.ItemNotFoundException,
                                  javax.jcr.RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

getChildProperties

javax.jcr.PropertyIterator getChildProperties(NodeEntry parentEntry)
                                              throws javax.jcr.ItemNotFoundException,
                                                     javax.jcr.RepositoryException
Parameters:
parentEntry -
Returns:
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.