public class DelegatingResultList<T> extends Object implements ResultList<T>
Modifier and Type | Class and Description |
---|---|
class |
DelegatingResultList.DelegatingListIterator<T>
Delegating iterator that also performs exception translation.
|
Constructor and Description |
---|
DelegatingResultList(ResultList<T> list)
Constructor; supply delegate.
|
DelegatingResultList(ResultList<T> list,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
void |
close()
Close the list.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object other) |
T |
get(int index) |
ResultList<T> |
getDelegate()
Return the direct delegate.
|
ResultList<T> |
getInnermostDelegate()
Return the native delegate.
|
Object |
getUserObject()
Get the opaque user object attached to this receiver.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isClosed()
Returns true if the list has been closed.
|
boolean |
isEmpty() |
boolean |
isProviderOpen()
Returns true if the provider backing this list is open.
|
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
void |
setUserObject(Object opaque)
Set the opaque user object to this receiver.
|
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
protected RuntimeException |
translate(RuntimeException re)
Translate the OpenJPA exception.
|
Object |
writeReplace()
Writes delegate, which may in turn write a normal list.
|
public DelegatingResultList(ResultList<T> list)
public DelegatingResultList(ResultList<T> list, RuntimeExceptionTranslator trans)
public ResultList<T> getDelegate()
public ResultList<T> getInnermostDelegate()
public Object writeReplace() throws ObjectStreamException
ObjectStreamException
public int hashCode()
public boolean equals(Object other)
protected RuntimeException translate(RuntimeException re)
public boolean isProviderOpen()
ResultList
isProviderOpen
in interface ResultList<T>
public Object getUserObject()
ResultList
getUserObject
in interface ResultList<T>
public void setUserObject(Object opaque)
ResultList
setUserObject
in interface ResultList<T>
public void close()
ResultList
close
in interface ResultList<T>
close
in interface Closeable
public boolean isClosed()
ResultList
isClosed
in interface ResultList<T>
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public boolean add(T o)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index, Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<T>
public ListIterator<T> listIterator()
listIterator
in interface List<T>
public ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.