|
|||||||||
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(java.util.Collection<? extends T> c)
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c)
|
void |
clear()
|
void |
close()
Close the list. |
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection<?> c)
|
boolean |
equals(java.lang.Object other)
|
T |
get(int index)
|
ResultList<T> |
getDelegate()
Return the direct delegate. |
ResultList<T> |
getInnermostDelegate()
Return the native delegate. |
java.lang.Object |
getUserObject()
Get the opaque user object attached to this receiver. |
int |
hashCode()
|
int |
indexOf(java.lang.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. |
java.util.Iterator<T> |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator<T> |
listIterator()
|
java.util.ListIterator<T> |
listIterator(int index)
|
T |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection<?> c)
|
boolean |
retainAll(java.util.Collection<?> c)
|
T |
set(int index,
T element)
|
void |
setUserObject(java.lang.Object opaque)
Set the opaque user object to this receiver. |
int |
size()
|
java.util.List<T> |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
protected java.lang.RuntimeException |
translate(java.lang.RuntimeException re)
Translate the OpenJPA exception. |
java.lang.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 java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public int hashCode()
hashCode
in interface java.util.Collection<T>
hashCode
in interface java.util.List<T>
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in interface java.util.Collection<T>
equals
in interface java.util.List<T>
equals
in class java.lang.Object
protected java.lang.RuntimeException translate(java.lang.RuntimeException re)
public boolean isProviderOpen()
ResultList
isProviderOpen
in interface ResultList<T>
public java.lang.Object getUserObject()
ResultList
getUserObject
in interface ResultList<T>
public void setUserObject(java.lang.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()
size
in interface java.util.Collection<T>
size
in interface java.util.List<T>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<T>
isEmpty
in interface java.util.List<T>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<T>
contains
in interface java.util.List<T>
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
iterator
in interface java.util.Collection<T>
iterator
in interface java.util.List<T>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
toArray
in interface java.util.List<T>
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection<T>
toArray
in interface java.util.List<T>
public boolean add(T o)
add
in interface java.util.Collection<T>
add
in interface java.util.List<T>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<T>
remove
in interface java.util.List<T>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<T>
containsAll
in interface java.util.List<T>
public boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
addAll
in interface java.util.List<T>
public boolean addAll(int index, java.util.Collection<? extends T> c)
addAll
in interface java.util.List<T>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<T>
removeAll
in interface java.util.List<T>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<T>
retainAll
in interface java.util.List<T>
public void clear()
clear
in interface java.util.Collection<T>
clear
in interface java.util.List<T>
public T get(int index)
get
in interface java.util.List<T>
public T set(int index, T element)
set
in interface java.util.List<T>
public void add(int index, T element)
add
in interface java.util.List<T>
public T remove(int index)
remove
in interface java.util.List<T>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<T>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<T>
public java.util.ListIterator<T> listIterator()
listIterator
in interface java.util.List<T>
public java.util.ListIterator<T> listIterator(int index)
listIterator
in interface java.util.List<T>
public java.util.List<T> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<T>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |