|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
org.apache.openjpa.util.DelayedLinkedListProxy
public class DelayedLinkedListProxy
LinkedList proxy with delay loading capability. Allows non-indexed add and remove operations to occur on an unloaded collection. Operations that require a load will trigger a load.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
DelayedLinkedListProxy()
|
|
DelayedLinkedListProxy(Collection paramCollection)
|
|
| Method Summary | |
|---|---|
void |
add(int paramInt,
Object paramObject)
|
boolean |
add(Object paramObject)
|
boolean |
addAll(Collection paramCollection)
|
boolean |
addAll(int paramInt,
Collection paramCollection)
|
void |
addFirst(Object paramObject)
|
void |
addLast(Object paramObject)
|
void |
clear()
|
Object |
clone()
|
void |
closeBroker()
Close the broker that is used to service this proxy. |
boolean |
contains(Object object)
|
boolean |
containsAll(Collection c)
|
Object |
copy(Object paramObject)
Return an unproxied copy of the given instance. |
Iterator |
descendingIterator()
|
Object |
element()
|
boolean |
equals(Object paramObject)
|
Object |
get(int index)
|
Broker |
getBroker()
Get the broker that is used to service this proxy. |
BrokerFactory |
getBrokerFactory()
|
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none. |
int |
getDelayedField()
Returns the expected field index even if this collection was detached. |
OpenJPAStateManager |
getDelayedOwner()
Returns a state manager that can service this proxy even if the collection was detached. |
Class |
getElementType()
The collection element type. |
Object |
getFirst()
|
Object |
getLast()
|
OpenJPAStateManager |
getOwner()
Return the owning object. |
int |
getOwnerField()
Return the owning field index. |
OpenJPAStateManager |
getOwnerStateManager()
Returns the state manager of the owning instance. |
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isDelayLoad()
|
boolean |
isDetached()
Returns whether the proxy is detached. |
boolean |
isDirectAccess()
Returns whether the caller has direct-call access to the proxied object. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int paramInt)
|
void |
load()
Load the proxy if it was delay-loaded. |
ProxyCollection |
newInstance(Class paramClass,
Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
Create a new instance of this proxy type. |
boolean |
offer(Object paramObject)
|
boolean |
offerFirst(Object paramObject)
|
boolean |
offerLast(Object paramObject)
|
Object |
peek()
|
Object |
peekFirst()
|
Object |
peekLast()
|
Object |
poll()
|
Object |
pollFirst()
|
Object |
pollLast()
|
Object |
pop()
|
void |
push(Object o)
|
Object |
remove()
|
Object |
remove(int paramInt)
|
boolean |
remove(Object paramObject)
|
boolean |
removeAll(Collection paramCollection)
|
Object |
removeFirst()
|
boolean |
removeFirstOccurrence(Object paramObject)
|
Object |
removeLast()
|
boolean |
removeLastOccurrence(Object paramObject)
|
boolean |
retainAll(Collection paramCollection)
|
Object |
set(int paramInt,
Object paramObject)
|
protected void |
setChangeTracker(CollectionChangeTracker ct)
|
void |
setDirectAccess(boolean direct)
Sets whether the caller has direct-call access to the proxied object. |
protected void |
setElementType(Class<?> elemType)
|
void |
setOwner(OpenJPAStateManager paramOpenJPAStateManager,
int paramInt)
Reset the state of the proxy, and set the owning instance of the proxy and the name of the field it is assigned to. |
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] array)
|
protected Object |
writeReplace()
|
| Methods inherited from class java.util.AbstractList |
|---|
removeRange |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelayedLinkedListProxy(Collection paramCollection)
public DelayedLinkedListProxy()
| Method Detail |
|---|
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager,
int paramInt)
Proxy
setOwner in interface Proxypublic OpenJPAStateManager getOwner()
Proxy
getOwner in interface Proxypublic int getOwnerField()
Proxy
getOwnerField in interface Proxypublic ChangeTracker getChangeTracker()
Proxy
getChangeTracker in interface Proxyprotected void setChangeTracker(CollectionChangeTracker ct)
public Object copy(Object paramObject)
Proxy
copy in interface Proxypublic Class getElementType()
ProxyCollection
getElementType in interface ProxyCollectionprotected void setElementType(Class<?> elemType)
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
ProxyCollection
newInstance in interface ProxyCollectionpublic int getDelayedField()
DelayedProxy
getDelayedField in interface DelayedProxypublic OpenJPAStateManager getDelayedOwner()
DelayedProxy
getDelayedOwner in interface DelayedProxypublic boolean isDirectAccess()
DelayedProxy
isDirectAccess in interface DelayedProxypublic void setDirectAccess(boolean direct)
DelayedProxy
setDirectAccess in interface DelayedProxypublic BrokerFactory getBrokerFactory()
public void load()
DelayedProxy
load in interface DelayedProxypublic Broker getBroker()
DelayedProxy
getBroker in interface DelayedProxypublic void closeBroker()
DelayedProxy
closeBroker in interface DelayedProxypublic OpenJPAStateManager getOwnerStateManager()
DelayedProxy
getOwnerStateManager in interface DelayedProxypublic boolean isDetached()
DelayedProxy
isDetached in interface DelayedProxypublic boolean isDelayLoad()
public Object clone()
clone in class LinkedList
public void add(int paramInt,
Object paramObject)
add in interface Listadd in class LinkedListpublic boolean add(Object paramObject)
add in interface Collectionadd in interface Dequeadd in interface Listadd in interface Queueadd in class LinkedListpublic void clear()
clear in interface Collectionclear in interface Listclear in class LinkedListpublic boolean addAll(Collection paramCollection)
addAll in interface CollectionaddAll in interface ListaddAll in class LinkedList
public boolean addAll(int paramInt,
Collection paramCollection)
addAll in interface ListaddAll in class LinkedListpublic boolean remove(Object paramObject)
remove in interface Collectionremove in interface Dequeremove in interface Listremove in class LinkedListpublic Object remove(int paramInt)
remove in interface Listremove in class LinkedListpublic Object remove()
remove in interface Dequeremove in interface Queueremove in class LinkedList
public Object set(int paramInt,
Object paramObject)
set in interface Listset in class LinkedListpublic Object poll()
poll in interface Dequepoll in interface Queuepoll in class LinkedListpublic ListIterator listIterator(int paramInt)
listIterator in interface ListlistIterator in class LinkedListpublic void addFirst(Object paramObject)
addFirst in interface DequeaddFirst in class LinkedListpublic void addLast(Object paramObject)
addLast in interface DequeaddLast in class LinkedListpublic boolean offer(Object paramObject)
offer in interface Dequeoffer in interface Queueoffer in class LinkedListpublic Object removeFirst()
removeFirst in interface DequeremoveFirst in class LinkedListpublic Object removeLast()
removeLast in interface DequeremoveLast in class LinkedListpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Dequeiterator in interface Listiterator in class AbstractSequentialListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class AbstractListpublic boolean removeAll(Collection paramCollection)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class AbstractCollectionpublic boolean retainAll(Collection paramCollection)
retainAll in interface CollectionretainAll in interface ListretainAll in class AbstractCollectionpublic boolean removeFirstOccurrence(Object paramObject)
removeFirstOccurrence in interface DequeremoveFirstOccurrence in class LinkedListpublic boolean removeLastOccurrence(Object paramObject)
removeLastOccurrence in interface DequeremoveLastOccurrence in class LinkedList
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamExceptionpublic boolean equals(Object paramObject)
equals in interface Collectionequals in interface Listequals in class AbstractListpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class AbstractList
public List subList(int fromIndex,
int toIndex)
subList in interface ListsubList in class AbstractListpublic int lastIndexOf(Object o)
lastIndexOf in interface ListlastIndexOf in class LinkedListpublic int indexOf(Object o)
indexOf in interface ListindexOf in class LinkedListpublic Object get(int index)
get in interface Listget in class LinkedListpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class AbstractCollectionpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class LinkedListpublic Object[] toArray(Object[] array)
toArray in interface CollectiontoArray in interface ListtoArray in class LinkedListpublic boolean contains(Object object)
contains in interface Collectioncontains in interface Dequecontains in interface Listcontains in class LinkedListpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListisEmpty in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Dequesize in interface Listsize in class LinkedListpublic boolean offerFirst(Object paramObject)
offerFirst in interface DequeofferFirst in class LinkedListpublic boolean offerLast(Object paramObject)
offerLast in interface DequeofferLast in class LinkedListpublic Object pollFirst()
pollFirst in interface DequepollFirst in class LinkedListpublic Object pollLast()
pollLast in interface DequepollLast in class LinkedListpublic Object getFirst()
getFirst in interface DequegetFirst in class LinkedListpublic Object getLast()
getLast in interface DequegetLast in class LinkedListpublic Object peekFirst()
peekFirst in interface DequepeekFirst in class LinkedListpublic Object peekLast()
peekLast in interface DequepeekLast in class LinkedListpublic Object element()
element in interface Dequeelement in interface Queueelement in class LinkedListpublic Object peek()
peek in interface Dequepeek in interface Queuepeek in class LinkedListpublic void push(Object o)
push in interface Dequepush in class LinkedListpublic Object pop()
pop in interface Dequepop in class LinkedListpublic Iterator descendingIterator()
descendingIterator in interface DequedescendingIterator in class LinkedList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||