|
|||||||||
| 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<T>
com.redhat.rhn.common.db.datasource.DataResult<T>
T - the type of the objects to be used in this list.public class DataResult<T>
The results of operations on the DataSource layer.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
|
DataResult(java.util.Collection l)
Create a DataResult with a simple Collection and null the Mode. |
protected |
DataResult(java.util.Collection l,
Mode m)
Create a new DataResult object |
protected |
DataResult(DataResult dr)
Create a new DataResult object |
protected |
DataResult(Mode m)
Create a new DataResult object |
| Method Summary | |
|---|---|
void |
elaborate()
Elaborate the current DataResult with more values, using ID as the key. |
void |
elaborate(java.util.Map values)
Elaborate the current DataResult with more values, using ID as the key. |
java.util.Map |
getElaborationParams()
Return the parameters that were passed into the last call to elaborate() |
Elaborator |
getElaborator()
|
int |
getEnd()
Get the index of the list element in the list |
java.lang.String |
getFilterData()
Get the data used to filter this list. |
CharacterMap |
getIndex()
Get the index |
SelectMode |
getMode()
Get the mode associated with this DataResult. |
int |
getStart()
Get the index of the first element in the list |
int |
getTotalSize()
Get the total number of entries in this list |
boolean |
hasFilter()
Has this data been filtered |
void |
setElaborationParams(java.util.Map values)
Set the parameters that will be used to elaborate the query Note that we make this public because we can't guarantee that elaborate(Map) will be called from the outside in every case where we need them. |
void |
setEnd(int endIn)
Set the End value. |
void |
setFilter(boolean isFilter)
Set if we this data has been filtered |
void |
setFilterData(java.lang.String fData)
Set the data used to filter this list. |
void |
setIndex(CharacterMap i)
Set the index |
void |
setStart(int startIn)
Provide a start value. |
void |
setTotalSize(int ts)
Set the total number of entries in this list |
DataResult<T> |
slice(int fromIndex,
int toIndex)
Performs the function as subList() except it
returns a DataResult object. |
DataResult<T> |
subList(int fromIndex,
int toIndex)
|
java.lang.String |
toString()
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator |
| 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 |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray |
| Constructor Detail |
|---|
protected DataResult(DataResult dr)
dr - The Mode that created this DataResultprotected DataResult(Mode m)
m - The Mode that created this DataResult
protected DataResult(java.util.Collection l,
Mode m)
l - The list to addm - The Mode that created this DataResultpublic DataResult(java.util.Collection l)
l - Collection of Objects you want in the Result| Method Detail |
|---|
public SelectMode getMode()
public DataResult<T> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<T>subList in class java.util.AbstractList<T>
public DataResult<T> slice(int fromIndex,
int toIndex)
subList() except it
returns a DataResult object. This should be refactored at some point
fromIndex - starttoIndex - end
public void elaborate(java.util.Map values)
values - The values to bind to the BindParameterspublic void elaborate()
public Elaborator getElaborator()
public java.util.Map getElaborationParams()
public void setElaborationParams(java.util.Map values)
values - name/value pairs used to elaborate the querypublic int getTotalSize()
public void setTotalSize(int ts)
ts - The totalSize to set.public int getStart()
public void setStart(int startIn)
startIn - we want to set.public int getEnd()
public void setEnd(int endIn)
endIn - that we want to set.public CharacterMap getIndex()
public void setIndex(CharacterMap i)
i - The new value for indexpublic boolean hasFilter()
public void setFilter(boolean isFilter)
isFilter - Has this been filteredpublic java.lang.String getFilterData()
public void setFilterData(java.lang.String fData)
fData - The data used to filter this list.public java.lang.String toString()
toString in class java.util.AbstractCollection<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||