|
||||||||||
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(java.lang.Class elementType,
boolean trackChanges,
OpenJPAConfiguration conf)
|
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object value)
|
boolean |
add(java.lang.Object value)
|
boolean |
addAll(java.util.Collection values)
|
boolean |
addAll(int index,
java.util.Collection values)
|
void |
addElement(java.lang.Object value)
|
void |
clear()
|
java.lang.Object |
copy(java.lang.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(java.lang.Object value,
int index)
|
java.util.Iterator |
iterator()
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
ProxyCollection |
newInstance(java.lang.Class elementType,
java.util.Comparator compare,
boolean trackChanges,
OpenJPAConfiguration conf)
This method should return a new proxy of the same concrete type as the implementing class. |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
void |
removeAllElements()
|
boolean |
removeElement(java.lang.Object o)
|
void |
removeElementAt(int index)
|
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object value)
|
void |
setElementAt(java.lang.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 java.lang.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(java.lang.Class elementType, boolean trackChanges, OpenJPAConfiguration conf)
Method Detail |
---|
public void setOwner(OpenJPAStateManager sm, int field)
Proxy
setOwner
in interface Proxy
public OpenJPAStateManager getOwner()
Proxy
getOwner
in interface Proxy
public int getOwnerField()
Proxy
getOwnerField
in interface Proxy
public ChangeTracker getChangeTracker()
Proxy
getChangeTracker
in interface Proxy
public java.lang.Object copy(java.lang.Object orig)
Proxy
copy
in interface Proxy
public ProxyCollection newInstance(java.lang.Class elementType, java.util.Comparator compare, boolean trackChanges, OpenJPAConfiguration conf)
ProxyCollection
ProxyManager
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, java.lang.Object value)
add
in interface java.util.List
add
in class java.util.Vector
public void insertElementAt(java.lang.Object value, int index)
insertElementAt
in class java.util.Vector
public boolean add(java.lang.Object value)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.Vector
public void addElement(java.lang.Object value)
addElement
in class java.util.Vector
public boolean addAll(int index, java.util.Collection values)
addAll
in interface java.util.List
addAll
in class java.util.Vector
public boolean addAll(java.util.Collection values)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.Vector
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.Vector
public void removeAllElements()
removeAllElements
in class java.util.Vector
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.AbstractList
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.Vector
public void removeElementAt(int index)
removeElementAt
in class java.util.Vector
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class java.util.Vector
public boolean removeElement(java.lang.Object o)
removeElement
in class java.util.Vector
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in class java.util.Vector
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in class java.util.Vector
public java.lang.Object set(int index, java.lang.Object value)
set
in interface java.util.List
set
in class java.util.Vector
public void setElementAt(java.lang.Object value, int index)
setElementAt
in class java.util.Vector
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |