org.modeshape.jcr.cache.document
Class SessionNode.InsertedChildReferences
java.lang.Object
org.modeshape.jcr.cache.document.SessionNode.InsertedChildReferences
- All Implemented Interfaces:
- Iterable<SessionNode.Insertions>
- Enclosing class:
- SessionNode
@ThreadSafe
protected static class SessionNode.InsertedChildReferences
- extends Object
- implements Iterable<SessionNode.Insertions>
SessionNode.InsertedChildReferences
protected SessionNode.InsertedChildReferences()
size
public int size()
- Get the number of inserted child references.
- Returns:
- the number of inserted references; never negative
iterator
public Iterator<SessionNode.Insertions> iterator()
- Specified by:
iterator
in interface Iterable<SessionNode.Insertions>
inserted
public ChildReference inserted(NodeKey key)
- Get the child reference for the inserted node with the supplied key.
- Parameters:
key
- the key for the inserted child reference
- Returns:
- the child reference; may be null if the node was not inserted
insertions
public Iterator<ChildReferences.ChildInsertions> insertions(Name name)
insertionsBefore
public ChildReferences.ChildInsertions insertionsBefore(NodeKey key)
insertBefore
public void insertBefore(ChildReference before,
ChildReference inserted)
remove
public boolean remove(NodeKey key)
remove
public boolean remove(ChildReference inserted)
toString
public String toString()
- Overrides:
toString
in class Object
toString
public StringBuilder toString(StringBuilder sb)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.