|
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 java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.ArrayList<T> net.sf.basedb.core.UnmodifiableResultList<T>
public class UnmodifiableResultList<T>
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private long |
totalCount
|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
UnmodifiableResultList(List<T> items,
long totalCount)
|
Method Summary | |
---|---|
void |
add(int index,
T element)
Not supported. |
boolean |
add(T o)
Not supported. |
boolean |
addAll(Collection<? extends T> c)
Not supported. |
boolean |
addAll(int index,
Collection<? extends T> 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) . |
T |
remove(int index)
Not supported. |
boolean |
remove(Object o)
Not supported. |
boolean |
removeAll(Collection<?> c)
Not supported. |
boolean |
retainAll(Collection<?> c)
Not supported. |
T |
set(int index,
T element)
Not supported. |
Methods inherited from class java.util.ArrayList |
---|
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 |
---|
toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, 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 static final long serialVersionUID
private final long totalCount
Constructor Detail |
---|
public UnmodifiableResultList(List<T> items, 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(T o)
add
in interface Collection<T>
add
in interface List<T>
add
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic void add(int index, T element)
add
in interface List<T>
add
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
addAll
in interface List<T>
addAll
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic boolean addAll(int index, Collection<? extends T> c)
addAll
in interface List<T>
addAll
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic void clear()
clear
in interface Collection<T>
clear
in interface List<T>
clear
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
containsAll
in class AbstractCollection<T>
public T remove(int index)
remove
in interface List<T>
remove
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface List<T>
remove
in class ArrayList<T>
UnsupportedOperationException
- Alwayspublic boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
removeAll
in interface List<T>
removeAll
in class AbstractCollection<T>
UnsupportedOperationException
- Alwayspublic boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
retainAll
in interface List<T>
retainAll
in class AbstractCollection<T>
UnsupportedOperationException
- Alwayspublic T set(int index, T element)
set
in interface List<T>
set
in class ArrayList<T>
UnsupportedOperationException
- Always
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |