| java.lang.Object com.caucho.jcr.base.BaseItem
All known Subclasses: com.caucho.jcr.base.BaseProperty, com.caucho.jcr.base.BaseNode,
BaseItem | public class BaseItem implements Item(Code) | | Represents a Node or Property in the repository.
|
Constructor Summary | |
protected | BaseItem() |
Method Summary | |
public void | accept(ItemVisitor visitor) Visits the node. | public Item | getAncestor(int depth) Returns the ancestor given by the depth. | public int | getDepth() Returns the current depth of the item. | public String | getName() Returns the tail name of the item. | public Node | getParent() Returns the parent node. | public String | getPath() Returns the full absolute pathname of the item. | public Session | getSession() Returns the owning session. | public boolean | isModified() Returns true if the item has been modified. | public boolean | isNew() Returns true if the item is newly added to the repository. | public boolean | isNode() Returns true for a node (directory). | public boolean | isSame(Item otherItem) Returns true if the item is identical to another item. | public void | refresh(boolean keepChanges) Refreshes data from the backing store. | public void | remove() Removes the item from the store. | public void | save() Saves changes to the item. |
BaseItem | protected BaseItem()(Code) | | |
accept | public void accept(ItemVisitor visitor) throws RepositoryException(Code) | | Visits the node.
|
getAncestor | public Item getAncestor(int depth) throws ItemNotFoundException, AccessDeniedException, RepositoryException(Code) | | Returns the ancestor given by the depth.
|
getDepth | public int getDepth() throws RepositoryException(Code) | | Returns the current depth of the item.
|
getName | public String getName() throws RepositoryException(Code) | | Returns the tail name of the item.
|
getParent | public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException(Code) | | Returns the parent node.
|
getPath | public String getPath() throws RepositoryException(Code) | | Returns the full absolute pathname of the item.
|
getSession | public Session getSession() throws RepositoryException(Code) | | Returns the owning session.
|
isModified | public boolean isModified()(Code) | | Returns true if the item has been modified.
|
isNew | public boolean isNew()(Code) | | Returns true if the item is newly added to the repository.
|
isNode | public boolean isNode()(Code) | | Returns true for a node (directory).
|
isSame | public boolean isSame(Item otherItem) throws RepositoryException(Code) | | Returns true if the item is identical to another item.
|
refresh | public void refresh(boolean keepChanges) throws InvalidItemStateException, RepositoryException(Code) | | Refreshes data from the backing store.
Parameters: keepChanges - if true, changes are merged from the repository |
remove | public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Removes the item from the store.
|
save | public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException(Code) | | Saves changes to the item.
|
|
|