|
||||||||||
| 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
ObjectStreamExceptionpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class Objectpublic boolean equals(Object other)
equals in interface Collectionequals in interface Listequals in class Objectprotected RuntimeException translate(RuntimeException re)
public boolean isProviderOpen()
ResultList
isProviderOpen in interface ResultListpublic void close()
ResultList
close in interface ResultListclose in interface Closeablepublic boolean isClosed()
ResultList
isClosed in interface ResultListpublic int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Listpublic boolean add(Object o)
add in interface Collectionadd in interface Listpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface List
public boolean addAll(int index,
Collection c)
addAll in interface Listpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic 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 Listpublic Object remove(int index)
remove in interface Listpublic int indexOf(Object o)
indexOf in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic 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 | |||||||||