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
public class QueryImpl.RemoveOnCloseResultList
- extends Object
- implements ResultList
Result list that removes itself from the query's open result list
when it is closed. Public for testing.
- See Also:
- Serialized Form
QueryImpl.RemoveOnCloseResultList
public QueryImpl.RemoveOnCloseResultList(ResultList res)
getDelegate
public ResultList getDelegate()
isProviderOpen
public boolean isProviderOpen()
- Specified by:
isProviderOpen
in interface ResultList
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface ResultList
close
public void close()
- Specified by:
close
in interface ResultList
- Specified by:
close
in interface Closeable
close
public void close(boolean remove)
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
- Specified by:
isEmpty
in interface List
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection
- Specified by:
contains
in interface List
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface List
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface List
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface List
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface List
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
- Specified by:
remove
in interface List
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interface Collection
- Specified by:
containsAll
in interface List
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface List
addAll
public boolean addAll(int idx,
Collection c)
- Specified by:
addAll
in interface List
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll
in interface Collection
- Specified by:
removeAll
in interface List
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll
in interface Collection
- Specified by:
retainAll
in interface List
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface List
get
public Object get(int idx)
- Specified by:
get
in interface List
set
public Object set(int idx,
Object o)
- Specified by:
set
in interface List
add
public void add(int idx,
Object o)
- Specified by:
add
in interface List
remove
public Object remove(int idx)
- Specified by:
remove
in interface List
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interface List
listIterator
public ListIterator listIterator()
- Specified by:
listIterator
in interface List
listIterator
public ListIterator listIterator(int idx)
- Specified by:
listIterator
in interface List
subList
public List subList(int start,
int end)
- Specified by:
subList
in interface List
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection
- Specified by:
equals
in interface List
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
- Specified by:
hashCode
in interface List
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
writeReplace
public Object writeReplace()
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.