Package helma.objectmodel.db
Class SegmentedSubnodeList
- java.lang.Object
-
- helma.objectmodel.db.SubnodeList
-
- helma.objectmodel.db.SegmentedSubnodeList
-
- All Implemented Interfaces:
java.io.Serializable
public class SegmentedSubnodeList extends SubnodeList
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class helma.objectmodel.db.SubnodeList
lastSubnodeChange, lastSubnodeFetch, list, node
-
-
Constructor Summary
Constructors Constructor Description SegmentedSubnodeList(Node node)
Creates a new subnode list
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, NodeHandle handle)
Adds the specified object to the list at the given positionboolean
add(NodeHandle handle)
Adds the specified object to this list performing custom orderingboolean
contains(java.lang.Object object)
NodeHandle
get(int index)
int
indexOf(java.lang.Object object)
java.lang.Object
remove(int index)
remove the object specified by the given index-positionboolean
remove(java.lang.Object object)
remove the given Object from this Listint
size()
Return the size of the list.java.lang.Object[]
toArray()
protected void
update()
-
Methods inherited from class helma.objectmodel.db.SubnodeList
getLastSubnodeChange, getNode, getSubnodeMapping, getSubnodeRelation, hasRelationalNodes, markAsChanged, prefetch
-
-
-
-
Constructor Detail
-
SegmentedSubnodeList
public SegmentedSubnodeList(Node node)
Creates a new subnode list- Parameters:
node
- the node we belong to
-
-
Method Detail
-
add
public boolean add(NodeHandle handle)
Adds the specified object to this list performing custom ordering- Overrides:
add
in classSubnodeList
- Parameters:
handle
- element to be inserted.
-
add
public void add(int index, NodeHandle handle)
Adds the specified object to the list at the given position- Overrides:
add
in classSubnodeList
- Parameters:
index
- the index to insert the element athandle
- the object to add
-
get
public NodeHandle get(int index)
- Overrides:
get
in classSubnodeList
-
contains
public boolean contains(java.lang.Object object)
- Overrides:
contains
in classSubnodeList
-
indexOf
public int indexOf(java.lang.Object object)
- Overrides:
indexOf
in classSubnodeList
-
remove
public java.lang.Object remove(int index)
remove the object specified by the given index-position- Overrides:
remove
in classSubnodeList
- Parameters:
index
- the index-position of the NodeHandle to remove
-
remove
public boolean remove(java.lang.Object object)
remove the given Object from this List- Overrides:
remove
in classSubnodeList
- Parameters:
object
- the NodeHandle to remove
-
toArray
public java.lang.Object[] toArray()
- Overrides:
toArray
in classSubnodeList
-
update
protected void update()
- Overrides:
update
in classSubnodeList
-
size
public int size()
Description copied from class:SubnodeList
Return the size of the list.- Overrides:
size
in classSubnodeList
- Returns:
- the list size
-
-