|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.kernel.DelegatingResultList
public class DelegatingResultList
Delegating result list that can also perform exception translation for use in facades.
Nested Class Summary | |
---|---|
class |
DelegatingResultList.DelegatingListIterator
Delegating iterator that also performs exception translation. |
Constructor Summary | |
---|---|
DelegatingResultList(ResultList list)
Constructor; supply delegate. |
|
DelegatingResultList(ResultList list,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator. |
Method Summary | |
---|---|
void |
add(int index,
Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
void |
close()
Close the list. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object other)
|
Object |
get(int index)
|
ResultList |
getDelegate()
Return the direct delegate. |
ResultList |
getInnermostDelegate()
Return the native delegate. |
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 |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
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, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingResultList(ResultList list)
public DelegatingResultList(ResultList list, RuntimeExceptionTranslator trans)
Method Detail |
---|
public ResultList getDelegate()
public ResultList getInnermostDelegate()
public Object writeReplace() throws ObjectStreamException
ObjectStreamException
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class Object
public boolean equals(Object other)
equals
in interface Collection
equals
in interface List
equals
in class Object
protected RuntimeException translate(RuntimeException re)
public boolean isProviderOpen()
ResultList
isProviderOpen
in interface ResultList
public void close()
ResultList
close
in interface ResultList
close
in interface Closeable
public boolean isClosed()
ResultList
isClosed
in interface ResultList
public int size()
size
in interface Collection
size
in interface List
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
public boolean add(Object o)
add
in interface Collection
add
in interface List
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
public boolean addAll(int index, Collection c)
addAll
in interface List
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
public void clear()
clear
in interface Collection
clear
in interface List
public Object get(int index)
get
in interface List
public Object set(int index, Object element)
set
in interface List
public void add(int index, Object element)
add
in interface List
public Object remove(int index)
remove
in interface List
public int indexOf(Object o)
indexOf
in interface List
public int lastIndexOf(Object o)
lastIndexOf
in interface List
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
public List subList(int fromIndex, int toIndex)
subList
in interface List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.