|
|||||||||
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
helma.objectmodel.db.UpdateableSubnodeList
public class UpdateableSubnodeList
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
UpdateableSubnodeList(WrappedNodeManager nmgr,
Relation rel)
Construct a new UpdateableSubnodeList. |
Method Summary | |
---|---|
void |
add(int idx,
java.lang.Object obj)
add a new node at the given index position and check if the borders for the updateCriterias have changed NOTE: this overrules the ordering (should we disallowe this?) |
boolean |
add(java.lang.Object obj)
add a new node honoring the Nodes SQL-Order and check if the borders for the updateCriterias have changed by adding this node |
boolean |
addAll(java.util.Collection col)
if the wrapped List is an instance of OrderedSubnodeList, the sortIn() method will be used. |
java.lang.String |
getUpdateCriteria()
render the criterias for fetching new nodes, which have been added to the relational db. |
void |
rebuildBorders()
Rebuild all borders for all the updateCriterias |
java.lang.Object |
remove(int idx)
remove the object specified by the given index-position and update the borders if neccesary |
boolean |
remove(java.lang.Object obj)
remove the given Object from this List and update the borders if neccesary |
boolean |
removeAll(java.util.Collection c)
remove all elements conteined inside the specified collection from this List and update the borders if neccesary |
boolean |
retainAll(java.util.Collection c)
remove all elements from this List, which are NOT specified inside the specified Collecion and update the borders if neccesary |
java.lang.Object |
set(int idx,
java.lang.Object obj)
checks if the borders have to be rebuilt because of the removed or the added NodeHandle. |
Methods inherited from class helma.objectmodel.db.OrderedSubnodeList |
---|
addSorted, compareNumericString, getOrderedView, sortIn, sortIn |
Methods inherited from class helma.objectmodel.db.SubnodeList |
---|
addToViews, removeFromViews |
Methods inherited from class java.util.ArrayList |
---|
addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, 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 UpdateableSubnodeList(WrappedNodeManager nmgr, Relation rel)
Method Detail |
---|
public java.lang.String getUpdateCriteria() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- @see helma.objectmodel.db.DbMapping#getColumn(String)
java.sql.SQLException
- @see helma.objectmodel.db.DbMapping#getColumn @see helma.objectmodel.db.DbMapping#needsQuotes(String)public boolean add(java.lang.Object obj)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class OrderedSubnodeList
obj
- the object to addpublic void add(int idx, java.lang.Object obj)
add
in interface java.util.List
add
in class OrderedSubnodeList
idx
- the index-position this node should be added atobj
- the NodeHandle of the node which should be addedpublic void rebuildBorders()
public java.lang.Object remove(int idx)
remove
in interface java.util.List
remove
in class SubnodeList
idx
- the index-position of the NodeHandle to removepublic boolean remove(java.lang.Object obj)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class SubnodeList
obj
- the NodeHandle to removepublic boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in class OrderedSubnodeList
c
- the Collection containing all Objects to remove from this List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in class OrderedSubnodeList
c
- the Collection containing all Objects to keep on the List
public java.lang.Object set(int idx, java.lang.Object obj)
set
in interface java.util.List
set
in class java.util.ArrayList
public boolean addAll(java.util.Collection col)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class OrderedSubnodeList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |