|
||||||||||
| 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.ProxyVector
public class ProxyVector
Extension of the Vector type that dirties the
persistent/transactional field it is assigned to on modification.
The need to dirty the field on any modification mandates that
this class must override all mutator methods of the base type.
This may lead to multiple calls to dirty for one state
change if one mutator method of the base type calls another.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ProxyVector()
|
|
ProxyVector(Class elementType,
boolean trackChanges,
OpenJPAConfiguration conf)
|
|
| Method Summary | |
|---|---|
void |
add(int index,
Object value)
|
boolean |
add(Object value)
|
boolean |
addAll(Collection values)
|
boolean |
addAll(int index,
Collection values)
|
void |
addElement(Object value)
|
void |
clear()
|
Object |
copy(Object orig)
Return an unproxied copy of the given instance. |
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none. |
OpenJPAStateManager |
getOwner()
Return the owning object. |
int |
getOwnerField()
Return the owning field index. |
void |
insertElementAt(Object value,
int index)
|
Iterator |
iterator()
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
ProxyCollection |
newInstance(Class elementType,
Comparator compare,
boolean trackChanges,
OpenJPAConfiguration conf)
This method should return a new proxy of the same concrete type as the implementing class. |
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
void |
removeAllElements()
|
boolean |
removeElement(Object o)
|
void |
removeElementAt(int index)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object value)
|
void |
setElementAt(Object value,
int index)
|
void |
setOwner(OpenJPAStateManager sm,
int field)
Reset the state of the proxy, and set the owning instance of the proxy and the name of the field it is assigned to. |
protected Object |
writeReplace()
|
| Methods inherited from class java.util.Vector |
|---|
capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeRange, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyVector()
public ProxyVector(Class elementType,
boolean trackChanges,
OpenJPAConfiguration conf)
| Method Detail |
|---|
public void setOwner(OpenJPAStateManager sm,
int field)
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 Proxypublic Object copy(Object orig)
Proxy
copy in interface Proxy
public ProxyCollection newInstance(Class elementType,
Comparator compare,
boolean trackChanges,
OpenJPAConfiguration conf)
ProxyCollectionProxyManager factories: one
template instance of each type is created for the purpose of producing
new instances via this method. Overcomes the performance penalties of
reflection.
newInstance in interface ProxyCollection
public void add(int index,
Object value)
add in interface Listadd in class Vector
public void insertElementAt(Object value,
int index)
insertElementAt in class Vectorpublic boolean add(Object value)
add in interface Collectionadd in interface Listadd in class Vectorpublic void addElement(Object value)
addElement in class Vector
public boolean addAll(int index,
Collection values)
addAll in interface ListaddAll in class Vectorpublic boolean addAll(Collection values)
addAll in interface CollectionaddAll in interface ListaddAll in class Vectorpublic void clear()
clear in interface Collectionclear in interface Listclear in class Vectorpublic void removeAllElements()
removeAllElements in class Vectorpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class AbstractListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class AbstractListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class AbstractListpublic Object remove(int index)
remove in interface Listremove in class Vectorpublic void removeElementAt(int index)
removeElementAt in class Vectorpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listremove in class Vectorpublic boolean removeElement(Object o)
removeElement in class Vectorpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class Vectorpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface ListretainAll in class Vector
public Object set(int index,
Object value)
set in interface Listset in class Vector
public void setElementAt(Object value,
int index)
setElementAt in class Vector
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||