|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.AbstractResultList<I> net.sf.basedb.core.ItemResultList<I>
public class ItemResultList<I extends BasicItem>
Return the results of an ItemQuery
as a list.
ItemQuery.list(DbControl)
Nested Class Summary | |
---|---|
private class |
ItemResultList.ResultListIterator<T extends BasicItem>
Inner class to implement the iterator returned by the iterator() method. |
private class |
ItemResultList.ResultListListIterator<T extends BasicItem>
Inner class to implement the iterator returned by the listIterator() method. |
Field Summary | |
---|---|
private List<? extends BasicData> |
data
The internal list of BasicData objects. |
private DbControl |
dc
The DbControl that was used in the query. |
private Class<I> |
itemClass
The class of the items returned by the query (and this object). |
private Item |
itemType
The type of items returned by the query. |
Constructor Summary | |
---|---|
ItemResultList(List<? extends BasicData> data,
DbControl dc,
Class<I> itemClass,
long totalCount)
|
Method Summary | ||
---|---|---|
boolean |
contains(Object o)
|
|
boolean |
equals(Object o)
|
|
private
|
get(Class<E> returnType,
BasicData dataObject)
|
|
I |
get(int index)
Get a BasicItem derived object. |
|
Item |
getItemType()
Get the type of items contained in this list. |
|
int |
hashCode()
|
|
int |
indexOf(Object o)
|
|
boolean |
isEmpty()
|
|
Iterator<I> |
iterator()
|
|
int |
lastIndexOf(Object o)
|
|
ListIterator<I> |
listIterator()
|
|
ListIterator<I> |
listIterator(int index)
|
|
int |
size()
|
|
List<I> |
subList(int fromIndex,
int toIndex)
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
Methods inherited from class net.sf.basedb.core.AbstractResultList |
---|
add, add, addAll, addAll, clear, containsAll, getTotalCount, remove, remove, removeAll, retainAll, set |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final List<? extends BasicData> data
private final DbControl dc
private final Class<I extends BasicItem> itemClass
private final Item itemType
Constructor Detail |
---|
ItemResultList(List<? extends BasicData> data, DbControl dc, Class<I> itemClass, long totalCount)
Method Detail |
---|
public boolean contains(Object o)
public I get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
public boolean isEmpty()
public Iterator<I> iterator()
public ListIterator<I> listIterator()
public ListIterator<I> listIterator(int index)
public int size()
public List<I> subList(int fromIndex, int toIndex)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean equals(Object o)
equals
in interface Collection<I extends BasicItem>
equals
in interface List<I extends BasicItem>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<I extends BasicItem>
hashCode
in interface List<I extends BasicItem>
hashCode
in class Object
public Item getItemType()
Item
object or null if not knownprivate <E extends BasicItem> E get(Class<E> returnType, BasicData dataObject)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |