public class DelayedLinkedListProxy extends java.util.LinkedList implements ProxyCollection, DelayedProxy
Constructor and Description |
---|
DelayedLinkedListProxy() |
DelayedLinkedListProxy(java.util.Collection paramCollection) |
Modifier and Type | Method and Description |
---|---|
void |
add(int paramInt,
java.lang.Object paramObject) |
boolean |
add(java.lang.Object paramObject) |
boolean |
addAll(java.util.Collection paramCollection) |
boolean |
addAll(int paramInt,
java.util.Collection paramCollection) |
void |
addFirst(java.lang.Object paramObject) |
void |
addLast(java.lang.Object paramObject) |
void |
clear() |
java.lang.Object |
clone() |
void |
closeBroker()
Close the broker that is used to service this proxy.
|
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection c) |
java.lang.Object |
copy(java.lang.Object paramObject)
Return an unproxied copy of the given instance.
|
java.util.Iterator |
descendingIterator() |
java.lang.Object |
element() |
boolean |
equals(java.lang.Object paramObject) |
java.lang.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.
|
java.lang.Class |
getElementType()
The collection element type.
|
java.lang.Object |
getFirst() |
java.lang.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(java.lang.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() |
java.util.Iterator |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int paramInt) |
void |
load()
Load the proxy if it was delay-loaded.
|
ProxyCollection |
newInstance(java.lang.Class paramClass,
java.util.Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
Create a new instance of this proxy type.
|
boolean |
offer(java.lang.Object paramObject) |
boolean |
offerFirst(java.lang.Object paramObject) |
boolean |
offerLast(java.lang.Object paramObject) |
java.lang.Object |
peek() |
java.lang.Object |
peekFirst() |
java.lang.Object |
peekLast() |
java.lang.Object |
poll() |
java.lang.Object |
pollFirst() |
java.lang.Object |
pollLast() |
java.lang.Object |
pop() |
void |
push(java.lang.Object o) |
java.lang.Object |
remove() |
java.lang.Object |
remove(int paramInt) |
boolean |
remove(java.lang.Object paramObject) |
boolean |
removeAll(java.util.Collection paramCollection) |
java.lang.Object |
removeFirst() |
boolean |
removeFirstOccurrence(java.lang.Object paramObject) |
java.lang.Object |
removeLast() |
boolean |
removeLastOccurrence(java.lang.Object paramObject) |
boolean |
retainAll(java.util.Collection paramCollection) |
java.lang.Object |
set(int paramInt,
java.lang.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(java.lang.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() |
java.util.List |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] array) |
protected java.lang.Object |
writeReplace() |
public DelayedLinkedListProxy(java.util.Collection paramCollection)
public DelayedLinkedListProxy()
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
Proxy
public OpenJPAStateManager getOwner()
Proxy
public int getOwnerField()
Proxy
getOwnerField
in interface Proxy
public ChangeTracker getChangeTracker()
Proxy
getChangeTracker
in interface Proxy
protected void setChangeTracker(CollectionChangeTracker ct)
public java.lang.Object copy(java.lang.Object paramObject)
Proxy
public java.lang.Class getElementType()
ProxyCollection
getElementType
in interface ProxyCollection
protected void setElementType(java.lang.Class<?> elemType)
public ProxyCollection newInstance(java.lang.Class paramClass, java.util.Comparator paramComparator, boolean paramBoolean1, boolean paramBoolean2)
ProxyCollection
newInstance
in interface ProxyCollection
public int getDelayedField()
DelayedProxy
getDelayedField
in interface DelayedProxy
public OpenJPAStateManager getDelayedOwner()
DelayedProxy
getDelayedOwner
in interface DelayedProxy
public boolean isDirectAccess()
DelayedProxy
isDirectAccess
in interface DelayedProxy
public void setDirectAccess(boolean direct)
DelayedProxy
setDirectAccess
in interface DelayedProxy
public BrokerFactory getBrokerFactory()
public void load()
DelayedProxy
load
in interface DelayedProxy
public Broker getBroker()
DelayedProxy
getBroker
in interface DelayedProxy
public void closeBroker()
DelayedProxy
closeBroker
in interface DelayedProxy
public OpenJPAStateManager getOwnerStateManager()
DelayedProxy
getOwnerStateManager
in interface DelayedProxy
public boolean isDetached()
DelayedProxy
isDetached
in interface DelayedProxy
public boolean isDelayLoad()
public java.lang.Object clone()
clone
in class java.util.LinkedList
public void add(int paramInt, java.lang.Object paramObject)
add
in interface java.util.List
add
in class java.util.LinkedList
public boolean add(java.lang.Object paramObject)
add
in interface java.util.Collection
add
in interface java.util.Deque
add
in interface java.util.List
add
in interface java.util.Queue
add
in class java.util.LinkedList
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.LinkedList
public boolean addAll(java.util.Collection paramCollection)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.LinkedList
public boolean addAll(int paramInt, java.util.Collection paramCollection)
addAll
in interface java.util.List
addAll
in class java.util.LinkedList
public boolean remove(java.lang.Object paramObject)
remove
in interface java.util.Collection
remove
in interface java.util.Deque
remove
in interface java.util.List
remove
in class java.util.LinkedList
public java.lang.Object remove(int paramInt)
remove
in interface java.util.List
remove
in class java.util.LinkedList
public java.lang.Object remove()
remove
in interface java.util.Deque
remove
in interface java.util.Queue
remove
in class java.util.LinkedList
public java.lang.Object set(int paramInt, java.lang.Object paramObject)
set
in interface java.util.List
set
in class java.util.LinkedList
public java.lang.Object poll()
poll
in interface java.util.Deque
poll
in interface java.util.Queue
poll
in class java.util.LinkedList
public java.util.ListIterator listIterator(int paramInt)
listIterator
in interface java.util.List
listIterator
in class java.util.LinkedList
public void addFirst(java.lang.Object paramObject)
addFirst
in interface java.util.Deque
addFirst
in class java.util.LinkedList
public void addLast(java.lang.Object paramObject)
addLast
in interface java.util.Deque
addLast
in class java.util.LinkedList
public boolean offer(java.lang.Object paramObject)
offer
in interface java.util.Deque
offer
in interface java.util.Queue
offer
in class java.util.LinkedList
public java.lang.Object removeFirst()
removeFirst
in interface java.util.Deque
removeFirst
in class java.util.LinkedList
public java.lang.Object removeLast()
removeLast
in interface java.util.Deque
removeLast
in class java.util.LinkedList
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Deque
iterator
in interface java.util.List
iterator
in class java.util.AbstractSequentialList
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public boolean removeAll(java.util.Collection paramCollection)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in class java.util.AbstractCollection
public boolean retainAll(java.util.Collection paramCollection)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in class java.util.AbstractCollection
public boolean removeFirstOccurrence(java.lang.Object paramObject)
removeFirstOccurrence
in interface java.util.Deque
removeFirstOccurrence
in class java.util.LinkedList
public boolean removeLastOccurrence(java.lang.Object paramObject)
removeLastOccurrence
in interface java.util.Deque
removeLastOccurrence
in class java.util.LinkedList
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public boolean equals(java.lang.Object paramObject)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.util.AbstractList
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.util.AbstractList
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
subList
in class java.util.AbstractList
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
lastIndexOf
in class java.util.LinkedList
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
indexOf
in class java.util.LinkedList
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.LinkedList
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
containsAll
in class java.util.AbstractCollection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.LinkedList
public java.lang.Object[] toArray(java.lang.Object[] array)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.LinkedList
public boolean contains(java.lang.Object object)
contains
in interface java.util.Collection
contains
in interface java.util.Deque
contains
in interface java.util.List
contains
in class java.util.LinkedList
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
isEmpty
in class java.util.AbstractCollection
public int size()
size
in interface java.util.Collection
size
in interface java.util.Deque
size
in interface java.util.List
size
in class java.util.LinkedList
public boolean offerFirst(java.lang.Object paramObject)
offerFirst
in interface java.util.Deque
offerFirst
in class java.util.LinkedList
public boolean offerLast(java.lang.Object paramObject)
offerLast
in interface java.util.Deque
offerLast
in class java.util.LinkedList
public java.lang.Object pollFirst()
pollFirst
in interface java.util.Deque
pollFirst
in class java.util.LinkedList
public java.lang.Object pollLast()
pollLast
in interface java.util.Deque
pollLast
in class java.util.LinkedList
public java.lang.Object getFirst()
getFirst
in interface java.util.Deque
getFirst
in class java.util.LinkedList
public java.lang.Object getLast()
getLast
in interface java.util.Deque
getLast
in class java.util.LinkedList
public java.lang.Object peekFirst()
peekFirst
in interface java.util.Deque
peekFirst
in class java.util.LinkedList
public java.lang.Object peekLast()
peekLast
in interface java.util.Deque
peekLast
in class java.util.LinkedList
public java.lang.Object element()
element
in interface java.util.Deque
element
in interface java.util.Queue
element
in class java.util.LinkedList
public java.lang.Object peek()
peek
in interface java.util.Deque
peek
in interface java.util.Queue
peek
in class java.util.LinkedList
public void push(java.lang.Object o)
push
in interface java.util.Deque
push
in class java.util.LinkedList
public java.lang.Object pop()
pop
in interface java.util.Deque
pop
in class java.util.LinkedList
public java.util.Iterator descendingIterator()
descendingIterator
in interface java.util.Deque
descendingIterator
in class java.util.LinkedList
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.