|
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>
abstract class AbstractResultList<I>
This is a list of the result from a query. Objects returned from
this list are of a type derived from BasicItem. This class implements
all operations in the List
interface that modifies the
list. The implementation simply throws an
UnsupportedOperationException
Field Summary | |
---|---|
private long |
totalCount
|
Constructor Summary | |
---|---|
AbstractResultList(long totalCount)
|
Method Summary | |
---|---|
boolean |
add(I o)
Not supported. |
void |
add(int index,
I element)
Not supported. |
boolean |
addAll(Collection<? extends I> c)
Not supported. |
boolean |
addAll(int index,
Collection<? extends I> c)
Not supported. |
void |
clear()
Not supported. |
boolean |
containsAll(Collection<?> c)
|
long |
getTotalCount()
Get the total number of items returned by the query, ignoring any limits set by Query.setFirstResult(int) and
Query.setMaxResults(int) . |
I |
remove(int index)
Not supported. |
boolean |
remove(Object o)
Not supported. |
boolean |
removeAll(Collection<?> c)
Not supported. |
boolean |
retainAll(Collection<?> c)
Not supported. |
I |
set(int index,
I element)
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
contains, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, subList, toArray, toArray |
Field Detail |
---|
private final long totalCount
Constructor Detail |
---|
AbstractResultList(long totalCount)
Method Detail |
---|
public long getTotalCount()
QueryResult
Query.setFirstResult(int)
and
Query.setMaxResults(int)
. If the
Query.setReturnTotalCount(boolean)
hasn't been enabled this method may
not return a correct value.
getTotalCount
in interface QueryResult
Query.setReturnTotalCount(boolean)
public boolean add(I o)
add
in interface Collection<I>
add
in interface List<I>
UnsupportedOperationException
- Alwayspublic void add(int index, I element)
add
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean addAll(Collection<? extends I> c)
addAll
in interface Collection<I>
addAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean addAll(int index, Collection<? extends I> c)
addAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic void clear()
clear
in interface Collection<I>
clear
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean containsAll(Collection<?> c)
containsAll
in interface Collection<I>
containsAll
in interface List<I>
public I remove(int index)
remove
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean remove(Object o)
remove
in interface Collection<I>
remove
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean removeAll(Collection<?> c)
removeAll
in interface Collection<I>
removeAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean retainAll(Collection<?> c)
retainAll
in interface Collection<I>
retainAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic I set(int index, I element)
set
in interface List<I>
UnsupportedOperationException
- Always
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |