|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.AbstractSequentialList<E> java.util.LinkedList org.apache.openjpa.util.ProxyLinkedList
public class ProxyLinkedList
Extension of the LinkedList
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.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ProxyLinkedList()
|
|
ProxyLinkedList(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 |
addFirst(Object value)
|
void |
addLast(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. |
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)
|
Object |
removeFirst()
|
Object |
removeLast()
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
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.LinkedList |
---|
clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, offer, peek, poll, remove, size, toArray, toArray |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, isEmpty, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, isEmpty, subList |
Constructor Detail |
---|
public ProxyLinkedList()
public ProxyLinkedList(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 Object copy(Object orig)
Proxy
copy
in interface Proxy
public ProxyCollection newInstance(Class elementType, 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, Object value)
add
in interface List
add
in class LinkedList
public boolean add(Object value)
add
in interface Collection
add
in interface List
add
in class LinkedList
public void addFirst(Object value)
addFirst
in class LinkedList
public void addLast(Object value)
addLast
in class LinkedList
public boolean addAll(int index, Collection values)
addAll
in interface List
addAll
in class LinkedList
public boolean addAll(Collection values)
addAll
in interface Collection
addAll
in interface List
addAll
in class LinkedList
public void clear()
clear
in interface Collection
clear
in interface List
clear
in class LinkedList
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractSequentialList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class AbstractList
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class LinkedList
public Object remove(int index)
remove
in interface List
remove
in class LinkedList
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
remove
in class LinkedList
public Object removeFirst()
removeFirst
in class LinkedList
public Object removeLast()
removeLast
in class LinkedList
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
retainAll
in class AbstractCollection
public Object set(int index, Object element)
set
in interface List
set
in class LinkedList
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |