|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.objectmodel.db.SubnodeList
public class SubnodeList
Container implementation for subnode collections.
Field Summary | |
---|---|
protected long |
lastSubnodeChange
|
protected long |
lastSubnodeFetch
|
protected java.util.List |
list
|
protected Node |
node
|
Constructor Summary | |
---|---|
SubnodeList(Node node)
Creates a new subnode list |
Method Summary | |
---|---|
void |
add(int idx,
NodeHandle handle)
Adds the specified object to the list at the given position |
boolean |
add(NodeHandle handle)
Adds the specified object to this list performing custom ordering |
boolean |
contains(java.lang.Object object)
|
NodeHandle |
get(int index)
|
protected long |
getLastSubnodeChange()
Compute a serial number indicating the last change in subnode collection |
Node |
getNode(int index)
|
protected DbMapping |
getSubnodeMapping()
|
protected Relation |
getSubnodeRelation()
|
protected boolean |
hasRelationalNodes()
|
int |
indexOf(java.lang.Object object)
|
protected void |
markAsChanged()
|
protected void |
prefetch(int start,
int length)
|
java.lang.Object |
remove(int idx)
remove the object specified by the given index-position |
boolean |
remove(java.lang.Object obj)
remove the given Object from this List |
int |
size()
Return the size of the list. |
java.lang.Object[] |
toArray()
|
protected void |
update()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Node node
protected java.util.List list
protected transient long lastSubnodeFetch
protected transient long lastSubnodeChange
Constructor Detail |
---|
public SubnodeList(Node node)
node
- the node we belong toMethod Detail |
---|
public boolean add(NodeHandle handle)
handle
- element to be inserted.public void add(int idx, NodeHandle handle)
idx
- the index to insert the element athandle
- the object to addpublic NodeHandle get(int index)
public Node getNode(int index)
public boolean contains(java.lang.Object object)
public int indexOf(java.lang.Object object)
public java.lang.Object remove(int idx)
idx
- the index-position of the NodeHandle to removepublic boolean remove(java.lang.Object obj)
obj
- the NodeHandle to removepublic java.lang.Object[] toArray()
public int size()
protected void update()
protected void prefetch(int start, int length)
protected long getLastSubnodeChange()
protected void markAsChanged()
protected boolean hasRelationalNodes()
protected DbMapping getSubnodeMapping()
protected Relation getSubnodeRelation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |