|
|||||||||
| 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<E>
com.redhat.rhn.common.db.datasource.DataList<E>
E - the type of the objects to be used in this list.public class DataList<E>
Replacement for DataResult. Used for displayed lists for which the data comes from database queries. Main functionality: elaborates the data right before it is requested so that only the subset of data needed is elaborated and nobody needs to remember to elaborate the list. Differences from DataResult: DataList elaborates on its own, DataResult had to be told. DataList contains no pagination data, expecting the UI to handle that whereas DataResult contained start, end, and total size data expecting UI to deal directly with these methods rather than just those of a list.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
DataList(java.util.Collection c)
Collection constructor for special cases. |
|
| Method Summary | |
|---|---|
E |
get(int arg0In)
|
static DataList |
getDataList(SelectMode m,
java.util.Map params,
java.util.Map elabParams)
Helper method so that one can get a dataresult through the usual way of querying database with a driving query from a datasource select mode. |
java.util.Map |
getElaboratorParams()
|
SelectMode |
getMode()
|
java.util.Iterator<E> |
iterator()
|
java.util.ListIterator<E> |
listIterator()
|
java.util.ListIterator<E> |
listIterator(int arg)
|
void |
setElaboratorParams(java.util.Map elaboratorParamsIn)
|
void |
setMode(SelectMode modeIn)
|
java.util.List |
subList(int start,
int end)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] arg)
|
java.lang.String |
toString()
Prints meta-data about the list instead of the list itself. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, removeAll, retainAll |
| Constructor Detail |
|---|
public DataList(java.util.Collection c)
c - The collection.| Method Detail |
|---|
public static DataList getDataList(SelectMode m,
java.util.Map params,
java.util.Map elabParams)
m - Datasource's SelectModeparams - Driving query parameters.elabParams - Elaborator parameters.
public java.util.List subList(int start,
int end)
subList in interface java.util.List<E>subList in class java.util.AbstractList<E>public E get(int arg0In)
get in interface java.util.List<E>get in class java.util.ArrayList<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.List<E>iterator in class java.util.AbstractList<E>public java.util.ListIterator<E> listIterator()
listIterator in interface java.util.List<E>listIterator in class java.util.AbstractList<E>public java.util.ListIterator<E> listIterator(int arg)
listIterator in interface java.util.List<E>listIterator in class java.util.AbstractList<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>toArray in interface java.util.List<E>toArray in class java.util.ArrayList<E>public java.lang.Object[] toArray(java.lang.Object[] arg)
toArray in interface java.util.Collection<E>toArray in interface java.util.List<E>toArray in class java.util.ArrayList<E>public java.util.Map getElaboratorParams()
public void setElaboratorParams(java.util.Map elaboratorParamsIn)
elaboratorParamsIn - The elaboratorParams to set.public SelectMode getMode()
public void setMode(SelectMode modeIn)
modeIn - The mode to set.public java.lang.String toString()
toString in class java.util.AbstractCollection<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||