| helma.objectmodel.db.SubnodeList helma.objectmodel.db.OrderedSubnodeList
All known Subclasses: helma.objectmodel.db.UpdateableSubnodeList,
OrderedSubnodeList | public class OrderedSubnodeList extends SubnodeList (Code) | | author: manfred andres author: This subnode-collection may be used to add nodes in an ordered way depending on author: the given order. It is also possible to retrieve views of this list in a different author: order. These views will be cached and automatically updated if this List's add- author: or remove-methods are called. |
OrderedSubnodeList | public OrderedSubnodeList(WrappedNodeManager nmgr, Relation rel)(Code) | | Construct a new OrderedSubnodeList. The Relation is needed
to get the information about the ORDERING
|
OrderedSubnodeList | public OrderedSubnodeList(WrappedNodeManager nmgr, Relation rel, SubnodeList origin, String expr)(Code) | | This constructor is used to create a view for the OrderedSubnodeList origin.
Parameters: origin - the origin-list which holds the elements Parameters: expr - the new order for this view Parameters: rel - the relation given for the origin-list |
add | public boolean add(Object obj)(Code) | | Adds the specified object to this list performing
custom ordering
Parameters: obj - element to be inserted. |
add | public void add(int idx, Object obj)(Code) | | Adds the specified object to the list at the given position
Parameters: idx - the index to insert the element at Parameters: obj - the object t add |
addSorted | public boolean addSorted(Object obj)(Code) | | Adds the specified object to this list without performing
custom ordering.
Parameters: obj - element to be inserted. |
compareNumericString | public static int compareNumericString(String a, String b)(Code) | | Compare two strings containing numbers depending on their numeric values
instead of doing a lexicographical comparison.
Parameters: a - the first String Parameters: b - the second String |
removeAll | public boolean removeAll(Collection c)(Code) | | remove all elements contained inside the specified collection
from this List
Parameters: c - the Collection containing all Objects to remove from this List true if the List has been modified |
retainAll | public boolean retainAll(Collection c)(Code) | | remove all elements from this List, which are NOT specified
inside the specified Collecion
Parameters: c - the Collection containing all Objects to keep on the List true if the List has been modified |
sortIn | public boolean sortIn(Object obj)(Code) | | add a new node honoring the Nodes SQL-Order
Parameters: obj - the object to add |
sortIn | public int sortIn(Collection col, boolean colHasDefaultOrder)(Code) | | Add all nodes contained inside the specified Collection to this
UpdateableSubnodeList. The order of the added Nodes is assumed to
be ordered according to the SQL-Order-Clause given for this
Subnode collection but doesn't prevent adding of unordered Collections.
Ordered Collections will be sorted in more efficiently than unordered ones.
Parameters: col - the collection containing all elements to add in the order returned by the select-statement Parameters: colHasDefaultOrder - true if the given collection does have the default-order defined by the relation |
|
|