Package helma.objectmodel.db
Class SegmentedSubnodeList
java.lang.Object
helma.objectmodel.db.SubnodeList
helma.objectmodel.db.SegmentedSubnodeList
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class helma.objectmodel.db.SubnodeList
lastSubnodeChange, lastSubnodeFetch, list, node
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
get
(int index) int
remove
(int index) remove the object specified by the given index-positionboolean
remove the given Object from this Listint
size()
Return the size of the list.Object[]
toArray()
protected void
update()
Methods inherited from class helma.objectmodel.db.SubnodeList
getLastSubnodeChange, getNode, getSubnodeMapping, getSubnodeRelation, hasRelationalNodes, markAsChanged, prefetch
-
Constructor Details
-
SegmentedSubnodeList
Creates a new subnode list- Parameters:
node
- the node we belong to
-
-
Method Details
-
add
Adds the specified object to this list performing custom ordering- Overrides:
add
in classSubnodeList
- Parameters:
handle
- element to be inserted.
-
add
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
- Overrides:
get
in classSubnodeList
-
contains
- Overrides:
contains
in classSubnodeList
-
indexOf
- Overrides:
indexOf
in classSubnodeList
-
remove
remove the object specified by the given index-position- Overrides:
remove
in classSubnodeList
- Parameters:
index
- the index-position of the NodeHandle to remove
-
remove
remove the given Object from this List- Overrides:
remove
in classSubnodeList
- Parameters:
object
- the NodeHandle to remove
-
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
-