|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.DelegatingResultList<T>
public class DelegatingResultList<T>
Delegating result list that can also perform exception translation for use in facades.
| Nested Class Summary | |
|---|---|
class |
DelegatingResultList.DelegatingListIterator<T>
Delegating iterator that also performs exception translation. |
| Constructor Summary | |
|---|---|
DelegatingResultList(ResultList<T> list)
Constructor; supply delegate. |
|
DelegatingResultList(ResultList<T> list,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingResultList(ResultList<T> list)
public DelegatingResultList(ResultList<T> list,
RuntimeExceptionTranslator trans)
| Method Detail |
|---|
public ResultList<T> getDelegate()
public ResultList<T> getInnermostDelegate()
public Object writeReplace()
throws ObjectStreamException
ObjectStreamExceptionpublic int hashCode()
hashCode in interface Collection<T>hashCode in interface List<T>hashCode in class Objectpublic boolean equals(Object other)
equals in interface Collection<T>equals in interface List<T>equals in class Objectprotected 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 Closeablepublic boolean isClosed()
ResultList
isClosed in interface ResultList<T>public int size()
size in interface Collection<T>size in interface List<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface List<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface List<T>public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in interface List<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface List<T>public Object[] toArray(Object[] a)
toArray in interface Collection<T>toArray in interface List<T>public boolean add(T o)
add in interface Collection<T>add in interface List<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface List<T>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in interface List<T>
public boolean addAll(int index,
Collection<? extends T> c)
addAll in interface List<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>removeAll in interface List<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>retainAll in interface List<T>public void clear()
clear in interface Collection<T>clear in interface List<T>public T get(int index)
get in interface List<T>
public T set(int index,
T element)
set in interface List<T>
public void add(int index,
T element)
add in interface List<T>public T remove(int index)
remove in interface List<T>public int indexOf(Object o)
indexOf in interface List<T>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>
public List<T> subList(int fromIndex,
int toIndex)
subList in interface List<T>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||