|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
helma.objectmodel.db.SubnodeList
helma.objectmodel.db.OrderedSubnodeList
public class OrderedSubnodeList
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
OrderedSubnodeList(WrappedNodeManager nmgr,
Relation rel)
Construct a new OrderedSubnodeList. |
|
OrderedSubnodeList(WrappedNodeManager nmgr,
Relation rel,
SubnodeList origin,
java.lang.String expr)
This constructor is used to create a view for the OrderedSubnodeList origin. |
|
| Method Summary | |
|---|---|
void |
add(int idx,
java.lang.Object obj)
Adds the specified object to the list at the given position |
boolean |
add(java.lang.Object obj)
Adds the specified object to this list performing custom ordering |
boolean |
addAll(java.util.Collection col)
|
boolean |
addSorted(java.lang.Object obj)
Adds the specified object to this list without performing custom ordering. |
static int |
compareNumericString(java.lang.String a,
java.lang.String b)
Compare two strings containing numbers depending on their numeric values instead of doing a lexicographical comparison. |
java.util.List |
getOrderedView(java.lang.String order)
|
boolean |
removeAll(java.util.Collection c)
remove all elements contained inside the specified collection from this List |
boolean |
retainAll(java.util.Collection c)
remove all elements from this List, which are NOT specified inside the specified Collecion |
int |
sortIn(java.util.Collection col,
boolean colHasDefaultOrder)
Add all nodes contained inside the specified Collection to this UpdateableSubnodeList. |
boolean |
sortIn(java.lang.Object obj)
add a new node honoring the Nodes SQL-Order |
| Methods inherited from class helma.objectmodel.db.SubnodeList |
|---|
addToViews, remove, remove, removeFromViews |
| Methods inherited from class java.util.ArrayList |
|---|
addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, subList |
| Constructor Detail |
|---|
public OrderedSubnodeList(WrappedNodeManager nmgr,
Relation rel)
public OrderedSubnodeList(WrappedNodeManager nmgr,
Relation rel,
SubnodeList origin,
java.lang.String expr)
origin - the origin-list which holds the elementsexpr - the new order for this viewrel - the relation given for the origin-list| Method Detail |
|---|
public boolean add(java.lang.Object obj)
add in interface java.util.Collectionadd in interface java.util.Listadd in class SubnodeListobj - element to be inserted.
public void add(int idx,
java.lang.Object obj)
add in interface java.util.Listadd in class SubnodeListidx - the index to insert the element atobj - the object t addpublic boolean addSorted(java.lang.Object obj)
addSorted in class SubnodeListobj - element to be inserted.public boolean sortIn(java.lang.Object obj)
obj - the object to addpublic boolean addAll(java.util.Collection col)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class java.util.ArrayList
public int sortIn(java.util.Collection col,
boolean colHasDefaultOrder)
col - the collection containing all elements to add in the order returned by the select-statementcolHasDefaultOrder - true if the given collection does have the default-order defined by the relationpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in class java.util.AbstractCollectionc - the Collection containing all Objects to remove from this List
public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in class java.util.AbstractCollectionc - the Collection containing all Objects to keep on the List
public static int compareNumericString(java.lang.String a,
java.lang.String b)
a - the first Stringb - the second Stringpublic java.util.List getOrderedView(java.lang.String order)
getOrderedView in class SubnodeList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||