Package net.sf.basedb.core
Class UnmodifiableResultList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
net.sf.basedb.core.UnmodifiableResultList<T>
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
,QueryResult
,ResultList<T>
- Version:
- 2.0
- Author:
- nicklas
- See Also:
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final long
private final long
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Not supported.boolean
Not supported.boolean
addAll
(int index, Collection<? extends T> c) Not supported.boolean
addAll
(Collection<? extends T> c) Not supported.void
clear()
Not supported.boolean
containsAll
(Collection<?> c) long
Get the total number of items returned by the query, ignoring any limits set byQuery.setFirstResult(int)
andQuery.setMaxResults(int)
.remove
(int index) Not supported.boolean
Not supported.boolean
removeAll
(Collection<?> c) Not supported.boolean
retainAll
(Collection<?> c) Not supported.Not supported.Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
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.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
contains, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
totalCount
private final long totalCount
-
-
Constructor Details
-
UnmodifiableResultList
-
-
Method Details
-
getTotalCount
public long getTotalCount()Description copied from interface:QueryResult
Get the total number of items returned by the query, ignoring any limits set byQuery.setFirstResult(int)
andQuery.setMaxResults(int)
. If theQuery.setReturnTotalCount(boolean)
hasn't been enabled this method may not return a correct value.- Specified by:
getTotalCount
in interfaceQueryResult
- Returns:
- The total number of items, or -1 if not known
- See Also:
-
add
Not supported.- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classArrayList<T>
- Throws:
UnsupportedOperationException
- Always
-
add
Not supported. -
addAll
Not supported.- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
- Overrides:
addAll
in classArrayList<T>
- Throws:
UnsupportedOperationException
- Always
-
addAll
Not supported. -
clear
public void clear()Not supported.- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classArrayList<T>
- Throws:
UnsupportedOperationException
- Always
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
- Overrides:
containsAll
in classAbstractCollection<T>
-
remove
Not supported. -
remove
Not supported.- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classArrayList<T>
- Throws:
UnsupportedOperationException
- Always
-
removeAll
Not supported.- Specified by:
removeAll
in interfaceCollection<T>
- Specified by:
removeAll
in interfaceList<T>
- Overrides:
removeAll
in classArrayList<T>
- Throws:
UnsupportedOperationException
- Always
-
retainAll
Not supported.- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
- Overrides:
retainAll
in classArrayList<T>
- Throws:
UnsupportedOperationException
- Always
-
set
Not supported.
-