|
||||||||||
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.ArrayList
org.apache.openjpa.util.DelayedArrayListProxy
public class DelayedArrayListProxy
ArrayList 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 | |
---|---|
DelayedArrayListProxy()
|
|
DelayedArrayListProxy(Collection paramCollection)
|
|
DelayedArrayListProxy(int paramInt)
|
Method Summary | |
---|---|
void |
add(int paramInt,
Object paramObject)
|
boolean |
add(Object paramObject)
|
boolean |
addAll(Collection paramCollection)
|
boolean |
addAll(int paramInt,
Collection paramCollection)
|
void |
clear()
|
Object |
clone()
|
void |
closeBroker()
Close the broker that is used to service this proxy. |
boolean |
contains(Object object)
|
boolean |
containsAll(Collection collection)
|
Object |
copy(Object paramObject)
Return an unproxied copy of the given instance. |
boolean |
equals(Object paramObject)
|
Object |
get(int location)
|
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. |
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 object)
|
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 object)
|
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. |
Object |
remove(int paramInt)
|
boolean |
remove(Object paramObject)
|
boolean |
removeAll(Collection paramCollection)
|
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 start,
int end)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] array)
|
protected Object |
writeReplace()
|
Methods inherited from class java.util.ArrayList |
---|
ensureCapacity, removeRange, trimToSize |
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 DelayedArrayListProxy()
public DelayedArrayListProxy(Collection paramCollection)
public DelayedArrayListProxy(int paramInt)
Method Detail |
---|
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
Proxy
setOwner
in interface Proxy
public int getDelayedField()
DelayedProxy
getDelayedField
in interface DelayedProxy
public OpenJPAStateManager getDelayedOwner()
DelayedProxy
getDelayedOwner
in interface DelayedProxy
public OpenJPAStateManager getOwner()
Proxy
getOwner
in interface Proxy
public int getOwnerField()
Proxy
getOwnerField
in interface Proxy
public Object clone()
clone
in class ArrayList
public ChangeTracker getChangeTracker()
Proxy
getChangeTracker
in interface Proxy
protected void setChangeTracker(CollectionChangeTracker ct)
public Object copy(Object paramObject)
Proxy
copy
in interface Proxy
public Class getElementType()
ProxyCollection
getElementType
in interface ProxyCollection
protected void setElementType(Class<?> elemType)
public ProxyCollection newInstance(Class paramClass, Comparator paramComparator, boolean paramBoolean1, boolean paramBoolean2)
ProxyCollection
newInstance
in interface ProxyCollection
public boolean add(Object paramObject)
add
in interface Collection
add
in interface List
add
in class ArrayList
public void add(int paramInt, Object paramObject)
add
in interface List
add
in class ArrayList
public void clear()
clear
in interface Collection
clear
in interface List
clear
in class ArrayList
public boolean addAll(int paramInt, Collection paramCollection)
addAll
in interface List
addAll
in class ArrayList
public boolean addAll(Collection paramCollection)
addAll
in interface Collection
addAll
in interface List
addAll
in class ArrayList
public boolean remove(Object paramObject)
remove
in interface Collection
remove
in interface List
remove
in class ArrayList
public Object remove(int paramInt)
remove
in interface List
remove
in class ArrayList
public Object set(int paramInt, Object paramObject)
set
in interface List
set
in class ArrayList
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractList
public ListIterator listIterator(int paramInt)
listIterator
in interface List
listIterator
in class AbstractList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class AbstractList
public boolean removeAll(Collection paramCollection)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public boolean retainAll(Collection paramCollection)
retainAll
in interface Collection
retainAll
in interface List
retainAll
in class AbstractCollection
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
public boolean isDelayLoad()
public Object get(int location)
get
in interface List
get
in class ArrayList
public int indexOf(Object object)
indexOf
in interface List
indexOf
in class ArrayList
public int lastIndexOf(Object object)
lastIndexOf
in interface List
lastIndexOf
in class ArrayList
public List subList(int start, int end)
subList
in interface List
subList
in class AbstractList
public boolean contains(Object object)
contains
in interface Collection
contains
in interface List
contains
in class ArrayList
public boolean containsAll(Collection collection)
containsAll
in interface Collection
containsAll
in interface List
containsAll
in class AbstractCollection
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
isEmpty
in class ArrayList
public int size()
size
in interface Collection
size
in interface List
size
in class ArrayList
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in class ArrayList
public Object[] toArray(Object[] array)
toArray
in interface Collection
toArray
in interface List
toArray
in class ArrayList
public boolean equals(Object paramObject)
equals
in interface Collection
equals
in interface List
equals
in class AbstractList
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class AbstractList
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |