Package org.apache.openjpa.kernel
Class QueryImpl.RemoveOnCloseResultList
java.lang.Object
org.apache.openjpa.kernel.QueryImpl.RemoveOnCloseResultList
- All Implemented Interfaces:
Serializable,Iterable,Collection,List,ResultList,Closeable
- Enclosing class:
- QueryImpl
Result list that removes itself from the query's open result list
when it is closed. Public for testing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int idx, Collection c) booleanaddAll(Collection c) voidclear()voidclose()Close the list.voidclose(boolean remove) booleanbooleanbooleanget(int idx) Get the opaque user object attached to this receiver.inthashCode()intbooleanisClosed()Returns true if the list has been closed.booleanisEmpty()booleanReturns true if the provider backing this list is open.iterator()intlistIterator(int idx) remove(int idx) booleanbooleanbooleanvoidsetUserObject(Object opaque) Set the opaque user object to this receiver.intsize()subList(int start, int end) Object[]toArray()Object[]toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
RemoveOnCloseResultList
-
-
Method Details
-
getDelegate
-
isProviderOpen
public boolean isProviderOpen()Description copied from interface:ResultListReturns true if the provider backing this list is open.- Specified by:
isProviderOpenin interfaceResultList
-
getUserObject
Description copied from interface:ResultListGet the opaque user object attached to this receiver.- Specified by:
getUserObjectin interfaceResultList
-
setUserObject
Description copied from interface:ResultListSet the opaque user object to this receiver.- Specified by:
setUserObjectin interfaceResultList
-
isClosed
public boolean isClosed()Description copied from interface:ResultListReturns true if the list has been closed.- Specified by:
isClosedin interfaceResultList
-
close
public void close()Description copied from interface:ResultListClose the list.- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResultList
-
close
public void close(boolean remove) -
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
subList
-
equals
-
hashCode
public int hashCode() -
toString
-
writeReplace
-