abstract class AbstractResultList<I> extends java.lang.Object implements ResultList<I>
List
interface that modifies the
list. The implementation simply throws an
UnsupportedOperationException
Modifier and Type | Field and Description |
---|---|
private long |
totalCount |
Constructor and Description |
---|
AbstractResultList(long totalCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(I o)
Not supported.
|
void |
add(int index,
I element)
Not supported.
|
boolean |
addAll(java.util.Collection<? extends I> c)
Not supported.
|
boolean |
addAll(int index,
java.util.Collection<? extends I> c)
Not supported.
|
void |
clear()
Not supported.
|
boolean |
containsAll(java.util.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(java.lang.Object o)
Not supported.
|
boolean |
removeAll(java.util.Collection<?> c)
Not supported.
|
boolean |
retainAll(java.util.Collection<?> c)
Not supported.
|
I |
set(int index,
I element)
Not supported.
|
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)
public void add(int index, I element)
add
in interface java.util.List<I>
java.lang.UnsupportedOperationException
- Alwayspublic boolean addAll(java.util.Collection<? extends I> c)
public boolean addAll(int index, java.util.Collection<? extends I> c)
addAll
in interface java.util.List<I>
java.lang.UnsupportedOperationException
- Alwayspublic void clear()
public boolean containsAll(java.util.Collection<?> c)
public I remove(int index)
remove
in interface java.util.List<I>
java.lang.UnsupportedOperationException
- Alwayspublic boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)