|
||||||||||
| 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.Vector
org.apache.openjpa.util.DelayedVectorProxy
public class DelayedVectorProxy
Vector 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.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
DelayedVectorProxy()
|
|
DelayedVectorProxy(Collection paramCollection)
|
|
DelayedVectorProxy(int paramInt)
|
|
DelayedVectorProxy(int paramInt1,
int paramInt2)
|
|
| Method Summary | |
|---|---|
void |
add(int paramInt,
Object paramObject)
|
boolean |
add(Object paramObject)
|
boolean |
addAll(Collection paramCollection)
|
boolean |
addAll(int paramInt,
Collection paramCollection)
|
void |
addElement(Object paramObject)
|
int |
capacity()
|
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. |
void |
copyInto(Object[] anArray)
|
Object |
elementAt(int index)
|
Enumeration |
elements()
|
void |
ensureCapacity(int minCapacity)
|
boolean |
equals(Object paramObject)
|
Object |
firstElement()
|
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)
|
int |
indexOf(Object object,
int index)
|
void |
insertElementAt(Object paramObject,
int paramInt)
|
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()
|
Object |
lastElement()
|
int |
lastIndexOf(Object object)
|
int |
lastIndexOf(Object o,
int index)
|
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)
|
void |
removeAllElements()
|
boolean |
removeElement(Object paramObject)
|
void |
removeElementAt(int paramInt)
|
protected void |
removeRange(int fromIndex,
int toIndex)
|
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. |
void |
setElementAt(Object paramObject,
int paramInt)
|
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. |
void |
setSize(int paramInt)
|
int |
size()
|
List |
subList(int start,
int end)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] array)
|
String |
toString()
|
void |
trimToSize()
|
protected Object |
writeReplace()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelayedVectorProxy(int paramInt)
public DelayedVectorProxy()
public DelayedVectorProxy(Collection paramCollection)
public DelayedVectorProxy(int paramInt1,
int paramInt2)
| Method Detail |
|---|
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager,
int paramInt)
Proxy
setOwner in interface Proxypublic int getDelayedField()
DelayedProxy
getDelayedField in interface DelayedProxypublic OpenJPAStateManager getDelayedOwner()
DelayedProxy
getDelayedOwner in interface DelayedProxypublic OpenJPAStateManager getOwner()
Proxy
getOwner in interface Proxypublic int getOwnerField()
Proxy
getOwnerField in interface Proxypublic 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 Vectorpublic 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 boolean add(Object paramObject)
add in interface Collectionadd in interface Listadd in class Vector
public void add(int paramInt,
Object paramObject)
add in interface Listadd in class Vectorpublic void clear()
clear in interface Collectionclear in interface Listclear in class Vector
public boolean addAll(int paramInt,
Collection paramCollection)
addAll in interface ListaddAll in class Vectorpublic boolean addAll(Collection paramCollection)
addAll in interface CollectionaddAll in interface ListaddAll in class Vectorpublic void addElement(Object paramObject)
addElement in class Vectorpublic Object remove(int paramInt)
remove in interface Listremove in class Vectorpublic boolean remove(Object paramObject)
remove in interface Collectionremove in interface Listremove in class Vector
public Object set(int paramInt,
Object paramObject)
set in interface Listset in class Vectorpublic boolean removeAll(Collection paramCollection)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class Vectorpublic boolean retainAll(Collection paramCollection)
retainAll in interface CollectionretainAll in interface ListretainAll in class Vector
public void insertElementAt(Object paramObject,
int paramInt)
insertElementAt in class Vectorpublic void removeAllElements()
removeAllElements in class Vectorpublic boolean removeElement(Object paramObject)
removeElement in class Vectorpublic void removeElementAt(int paramInt)
removeElementAt in class Vector
public void setElementAt(Object paramObject,
int paramInt)
setElementAt in class Vectorpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class AbstractListpublic ListIterator listIterator(int paramInt)
listIterator in interface ListlistIterator in class AbstractListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class AbstractListpublic void setSize(int paramInt)
setSize in class Vector
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamExceptionpublic boolean contains(Object object)
contains in interface Collectioncontains in interface Listcontains in class Vectorpublic boolean containsAll(Collection collection)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class Vectorpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListisEmpty in class Vectorpublic int size()
size in interface Collectionsize in interface Listsize in class Vectorpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class Vectorpublic Object[] toArray(Object[] array)
toArray in interface CollectiontoArray in interface ListtoArray in class Vectorpublic boolean equals(Object paramObject)
equals in interface Collectionequals in interface Listequals in class Vectorpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class Vectorpublic int lastIndexOf(Object object)
lastIndexOf in interface ListlastIndexOf in class Vector
public List subList(int start,
int end)
subList in interface ListsubList in class Vectorpublic Object get(int location)
get in interface Listget in class Vectorpublic int indexOf(Object object)
indexOf in interface ListindexOf in class Vector
public int indexOf(Object object,
int index)
indexOf in class Vectorpublic void copyInto(Object[] anArray)
copyInto in class Vectorpublic void trimToSize()
trimToSize in class Vectorpublic void ensureCapacity(int minCapacity)
ensureCapacity in class Vectorpublic int capacity()
capacity in class Vectorpublic Enumeration elements()
elements in class Vector
public int lastIndexOf(Object o,
int index)
lastIndexOf in class Vectorpublic Object elementAt(int index)
elementAt in class Vectorpublic Object firstElement()
firstElement in class Vectorpublic Object lastElement()
lastElement in class Vectorpublic String toString()
toString in class Vector
protected void removeRange(int fromIndex,
int toIndex)
removeRange in class Vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||