Package org.apache.openjpa.util.proxy
Class ProxyCollections
java.lang.Object
org.apache.openjpa.util.Proxies
org.apache.openjpa.util.proxy.ProxyCollections
Utility methods used by collection proxies.
- Author:
- Abe White
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceMarker interface for a proxied iterator.static interfaceMarker interface for a proxied list iterator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddAll(ProxyCollection coll, int index, Collection values) Override forList.addAll(int, Collection).static booleanaddAll(ProxyCollection coll, Collection values) Override forCollection.addAll(java.util.Collection<? extends E>).static booleanafterAdd(ProxyCollection coll, Object value, boolean added) Call after invokingCollection.add(Object)on super.static voidafterAddElement(ProxyCollection coll, Object value) Call after invokingVector.addElement(Object)on super.static voidafterAddLast(ProxyCollection coll, Object value) Call after invokingLinkedList.addLast(Object)on super.static IteratorafterIterator(ProxyCollection coll, Iterator itr) Wrap given iterator in a proxy.static ListIteratorafterListIterator(ProxyCollection coll, int idx, ListIterator itr) Wrap given iterator in a proxy.static ListIteratorafterListIterator(ProxyCollection coll, ListIterator itr) Wrap given iterator in a proxy.static booleanafterOffer(ProxyCollection coll, Object value, boolean added) Call after invokingQueue#offer(Object)on super.static ObjectafterPoll(ProxyCollection coll, Object removed) Call after invokingQueue#pollon super.static ObjectafterRemove(ProxyCollection coll, int index, Object removed) Call after invokingList.remove(int)on super.static ObjectafterRemove(ProxyCollection coll, Object removed) Call after invokingQueue#removeon super.static booleanafterRemove(ProxyCollection coll, Object o, boolean removed) Call after invokingCollection.remove(java.lang.Object)on super.static booleanafterRemoveElement(ProxyCollection coll, Object o, boolean removed) Call after invokingVector.removeElement(java.lang.Object)on super.static ObjectafterRemoveFirst(ProxyCollection coll, Object removed) Call after invokingLinkedList.removeFirst()on super.static ObjectafterRemoveLast(ProxyCollection coll, Object removed) Call after invokingLinkedList.removeLast()on super.static ObjectafterSet(ProxyCollection coll, int index, Object element, Object replaced) Call after invokingList.set(int, E)on super.static ObjectafterSetElementAt(ProxyCollection coll, Object element, int index, Object replaced) Call after invokingVector.setElementAt(E, int)on super.static voidbeforeAdd(ProxyCollection coll, int index, Object value) Call before invokingList.add(int,Object)on super.static voidbeforeAdd(ProxyCollection coll, Object value) Call before invokingCollection.add(Object)on super.static voidbeforeAddElement(ProxyCollection coll, Object value) Call before invokingVector.addElement(Object)on super.static voidbeforeAddFirst(ProxyCollection coll, Object value) Call before invokingLinkedList.addFirst(Object)on super.static voidbeforeAddLast(ProxyCollection coll, Object value) Call before invokingLinkedList.addLast(Object)on super.static voidbeforeClear(ProxyCollection coll) Call before clearing collection.static voidbeforeInsertElementAt(ProxyCollection coll, Object value, int index) Call before invokingVector.insertElementAt(Object,int)on super.static voidbeforeOffer(ProxyCollection coll, Object value) Call before invokingQueue#offer(Object)on super.static voidbeforePoll(ProxyCollection coll) Call before invokingQueue#pollon super.static voidbeforeRemove(ProxyCollection coll) Call before invokingQueue#removeon super.static voidbeforeRemove(ProxyCollection coll, int index) Call before invokingList.remove(int)on super.static voidbeforeRemove(ProxyCollection coll, Object o) Call before invokingCollection.remove(java.lang.Object)on super.static voidCall before clearing vector.static voidbeforeRemoveElement(ProxyCollection coll, Object o) Call before invokingVector.removeElement(java.lang.Object)on super.static voidbeforeRemoveElementAt(ProxyCollection coll, int index) Call before invokingVector.removeElementAt(int)on super.static voidCall before invokingLinkedList.removeFirst()on super.static voidCall after invokingLinkedList.removeLast()on super.static voidbeforeSet(ProxyCollection coll, int index, Object element) Call before invokingList.set(int, E)on super.static voidbeforeSetElementAt(ProxyCollection coll, Object element, int index) Call before invokingVector.setElementAt(E, int)on super.static booleanisDelayed(ProxyCollection proxy) static voidloadCollection(ProxyCollection proxy) static voidloadCollection(ProxyCollection proxy, boolean detaching) static booleanremoveAll(ProxyCollection coll, Collection<?> vals) Override forCollection.removeAll(java.util.Collection<?>).static booleanretainAll(ProxyCollection coll, Collection<?> vals) Override forCollection.retainAll(java.util.Collection<?>).Methods inherited from class org.apache.openjpa.util.Proxies
assertAllowedType, dirty, isOwner, removed, writeReplace
-
Constructor Details
-
ProxyCollections
public ProxyCollections()
-
-
Method Details
-
beforeAdd
Call before invokingList.add(int,Object)on super. -
beforeInsertElementAt
Call before invokingVector.insertElementAt(Object,int)on super. -
beforeAdd
Call before invokingCollection.add(Object)on super. -
afterAdd
Call after invokingCollection.add(Object)on super.- Parameters:
added- whether the object was added- Returns:
added, for convenience
-
beforeAddElement
Call before invokingVector.addElement(Object)on super. -
afterAddElement
Call after invokingVector.addElement(Object)on super. -
beforeAddFirst
Call before invokingLinkedList.addFirst(Object)on super. -
beforeAddLast
Call before invokingLinkedList.addLast(Object)on super. -
afterAddLast
Call after invokingLinkedList.addLast(Object)on super. -
beforeOffer
Call before invokingQueue#offer(Object)on super. -
afterOffer
Call after invokingQueue#offer(Object)on super.- Parameters:
added- whether the object was added- Returns:
added, for convenience
-
addAll
Override forList.addAll(int, Collection). -
addAll
Override forCollection.addAll(java.util.Collection<? extends E>). -
beforeClear
Call before clearing collection. -
beforeRemoveAllElements
Call before clearing vector. -
afterIterator
Wrap given iterator in a proxy. -
afterListIterator
Wrap given iterator in a proxy. -
afterListIterator
Wrap given iterator in a proxy. -
beforeRemove
Call before invokingList.remove(int)on super. -
afterRemove
Call after invokingList.remove(int)on super.- Parameters:
removed- the removed object- Returns:
- the removed object, for convenience
-
beforeRemoveElementAt
Call before invokingVector.removeElementAt(int)on super. -
beforeRemove
Call before invokingCollection.remove(java.lang.Object)on super. -
afterRemove
Call after invokingCollection.remove(java.lang.Object)on super.- Parameters:
removed- whether the object was removed- Returns:
- whether the object was removed, for convenience
-
beforeRemoveElement
Call before invokingVector.removeElement(java.lang.Object)on super. -
afterRemoveElement
Call after invokingVector.removeElement(java.lang.Object)on super. -
beforeRemoveFirst
Call before invokingLinkedList.removeFirst()on super. -
afterRemoveFirst
Call after invokingLinkedList.removeFirst()on super. -
beforeRemoveLast
Call after invokingLinkedList.removeLast()on super. -
afterRemoveLast
Call after invokingLinkedList.removeLast()on super. -
beforeRemove
Call before invokingQueue#removeon super. -
afterRemove
Call after invokingQueue#removeon super. -
beforePoll
Call before invokingQueue#pollon super. -
afterPoll
Call after invokingQueue#pollon super. -
removeAll
Override forCollection.removeAll(java.util.Collection<?>). -
retainAll
Override forCollection.retainAll(java.util.Collection<?>). -
beforeSet
Call before invokingList.set(int, E)on super. -
afterSet
Call after invokingList.set(int, E)on super.- Parameters:
replaced- the replaced object- Returns:
- the replaced object, for convenience
-
beforeSetElementAt
Call before invokingVector.setElementAt(E, int)on super. -
afterSetElementAt
public static Object afterSetElementAt(ProxyCollection coll, Object element, int index, Object replaced) Call after invokingVector.setElementAt(E, int)on super. -
loadCollection
-
loadCollection
-
isDelayed
-