|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.util.Proxies org.apache.openjpa.util.ProxyCollections
public class ProxyCollections
Utility methods used by collection proxies.
Nested Class Summary | |
---|---|
static interface |
ProxyCollections.ProxyIterator
Marker interface for a proxied iterator. |
static interface |
ProxyCollections.ProxyListIterator
Marker interface for a proxied list iterator. |
Constructor Summary | |
---|---|
ProxyCollections()
|
Method Summary | |
---|---|
static boolean |
addAll(ProxyCollection coll,
Collection values)
Override for Collection.addAll(java.util.Collection extends E>) . |
static boolean |
addAll(ProxyCollection coll,
int index,
Collection values)
Override for List.addAll(int, Collection) . |
static boolean |
afterAdd(ProxyCollection coll,
Object value,
boolean added)
Call after invoking Collection.add(Object) on super. |
static void |
afterAddElement(ProxyCollection coll,
Object value)
Call after invoking Vector#addElement(Object) on super. |
static void |
afterAddLast(ProxyCollection coll,
Object value)
Call after invoking LinkedList#addLast(Object) on super. |
static Iterator |
afterIterator(ProxyCollection coll,
Iterator itr)
Wrap given iterator in a proxy. |
static ListIterator |
afterListIterator(ProxyCollection coll,
int idx,
ListIterator itr)
Wrap given iterator in a proxy. |
static ListIterator |
afterListIterator(ProxyCollection coll,
ListIterator itr)
Wrap given iterator in a proxy. |
static boolean |
afterOffer(ProxyCollection coll,
Object value,
boolean added)
Call after invoking Queue#offer(Object) on super. |
static Object |
afterPoll(ProxyCollection coll,
Object removed)
Call after invoking Queue#poll on super. |
static Object |
afterRemove(ProxyCollection coll,
int index,
Object removed)
Call after invoking List.remove(int) on super. |
static Object |
afterRemove(ProxyCollection coll,
Object removed)
Call after invoking Queue#remove on super. |
static boolean |
afterRemove(ProxyCollection coll,
Object o,
boolean removed)
Call after invoking Collection.remove(java.lang.Object) on super. |
static boolean |
afterRemoveElement(ProxyCollection coll,
Object o,
boolean removed)
Call after invoking Vector#removeElement on super. |
static Object |
afterRemoveFirst(ProxyCollection coll,
Object removed)
Call after invoking LinkedList#removeFirst on super. |
static Object |
afterRemoveLast(ProxyCollection coll,
Object removed)
Call after invoking LinkedList#removeLast on super. |
static Object |
afterSet(ProxyCollection coll,
int index,
Object element,
Object replaced)
Call after invoking List.set(int, E) on super. |
static Object |
afterSetElementAt(ProxyCollection coll,
Object element,
int index,
Object replaced)
Call after invoking Vector#setElementAt on super. |
static void |
beforeAdd(ProxyCollection coll,
int index,
Object value)
Call before invoking List.add(int,Object) on super. |
static void |
beforeAdd(ProxyCollection coll,
Object value)
Call before invoking Collection.add(Object) on super. |
static void |
beforeAddElement(ProxyCollection coll,
Object value)
Call before invoking Vector#addElement(Object) on super. |
static void |
beforeAddFirst(ProxyCollection coll,
Object value)
Call before invoking LinkedList#addFirst(Object) on super. |
static void |
beforeAddLast(ProxyCollection coll,
Object value)
Call before invoking LinkedList#addLast(Object) on super. |
static void |
beforeClear(ProxyCollection coll)
Call before clearing collection. |
static void |
beforeInsertElementAt(ProxyCollection coll,
Object value,
int index)
Call before invoking Vector#insertElementAt(Object,int) on super. |
static void |
beforeOffer(ProxyCollection coll,
Object value)
Call before invoking Queue#offer(Object) on super. |
static void |
beforePoll(ProxyCollection coll)
Call before invoking Queue#poll on super. |
static void |
beforeRemove(ProxyCollection coll)
Call before invoking Queue#remove on super. |
static void |
beforeRemove(ProxyCollection coll,
int index)
Call before invoking List.remove(int) on super. |
static void |
beforeRemove(ProxyCollection coll,
Object o)
Call before invoking Collection.remove(java.lang.Object) on super. |
static void |
beforeRemoveAllElements(ProxyCollection coll)
Call before clearing vector. |
static void |
beforeRemoveElement(ProxyCollection coll,
Object o)
Call before invoking Vector#removeElement on super. |
static void |
beforeRemoveElementAt(ProxyCollection coll,
int index)
Call before invoking Vector#removeElementAt(int) on super. |
static void |
beforeRemoveFirst(ProxyCollection coll)
Call before invoking LinkedList#removeFirst on super. |
static void |
beforeRemoveLast(ProxyCollection coll)
Call after invoking LinkedList#removeLast on super. |
static void |
beforeSet(ProxyCollection coll,
int index,
Object element)
Call before invoking List.set(int, E) on super. |
static void |
beforeSetElementAt(ProxyCollection coll,
Object element,
int index)
Call before invoking Vector#setElementAt on super. |
static boolean |
removeAll(ProxyCollection coll,
Collection vals)
Override for Collection.removeAll(java.util.Collection>) . |
static boolean |
retainAll(ProxyCollection coll,
Collection vals)
Override for Collection.retainAll(java.util.Collection>) . |
Methods inherited from class org.apache.openjpa.util.Proxies |
---|
assertAllowedType, dirty, isOwner, removed, writeReplace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyCollections()
Method Detail |
---|
public static void beforeAdd(ProxyCollection coll, int index, Object value)
List.add(int,Object)
on super.
public static void beforeInsertElementAt(ProxyCollection coll, Object value, int index)
Vector#insertElementAt(Object,int)
on super.
public static void beforeAdd(ProxyCollection coll, Object value)
Collection.add(Object)
on super.
public static boolean afterAdd(ProxyCollection coll, Object value, boolean added)
Collection.add(Object)
on super.
added
- whether the object was added
added
, for conveniencepublic static void beforeAddElement(ProxyCollection coll, Object value)
Vector#addElement(Object)
on super.
public static void afterAddElement(ProxyCollection coll, Object value)
Vector#addElement(Object)
on super.
public static void beforeAddFirst(ProxyCollection coll, Object value)
LinkedList#addFirst(Object)
on super.
public static void beforeAddLast(ProxyCollection coll, Object value)
LinkedList#addLast(Object)
on super.
public static void afterAddLast(ProxyCollection coll, Object value)
LinkedList#addLast(Object)
on super.
public static void beforeOffer(ProxyCollection coll, Object value)
Queue#offer(Object)
on super.
public static boolean afterOffer(ProxyCollection coll, Object value, boolean added)
Queue#offer(Object)
on super.
added
- whether the object was added
added
, for conveniencepublic static boolean addAll(ProxyCollection coll, int index, Collection values)
List.addAll(int, Collection)
.
public static boolean addAll(ProxyCollection coll, Collection values)
Collection.addAll(java.util.Collection extends E>)
.
public static void beforeClear(ProxyCollection coll)
public static void beforeRemoveAllElements(ProxyCollection coll)
public static Iterator afterIterator(ProxyCollection coll, Iterator itr)
public static ListIterator afterListIterator(ProxyCollection coll, int idx, ListIterator itr)
public static ListIterator afterListIterator(ProxyCollection coll, ListIterator itr)
public static void beforeRemove(ProxyCollection coll, int index)
List.remove(int)
on super.
public static Object afterRemove(ProxyCollection coll, int index, Object removed)
List.remove(int)
on super.
removed
- the removed object
public static void beforeRemoveElementAt(ProxyCollection coll, int index)
Vector#removeElementAt(int)
on super.
public static void beforeRemove(ProxyCollection coll, Object o)
Collection.remove(java.lang.Object)
on super.
public static boolean afterRemove(ProxyCollection coll, Object o, boolean removed)
Collection.remove(java.lang.Object)
on super.
removed
- whether the object was removed
public static void beforeRemoveElement(ProxyCollection coll, Object o)
Vector#removeElement
on super.
public static boolean afterRemoveElement(ProxyCollection coll, Object o, boolean removed)
Vector#removeElement
on super.
public static void beforeRemoveFirst(ProxyCollection coll)
LinkedList#removeFirst
on super.
public static Object afterRemoveFirst(ProxyCollection coll, Object removed)
LinkedList#removeFirst
on super.
public static void beforeRemoveLast(ProxyCollection coll)
LinkedList#removeLast
on super.
public static Object afterRemoveLast(ProxyCollection coll, Object removed)
LinkedList#removeLast
on super.
public static void beforeRemove(ProxyCollection coll)
Queue#remove
on super.
public static Object afterRemove(ProxyCollection coll, Object removed)
Queue#remove
on super.
public static void beforePoll(ProxyCollection coll)
Queue#poll
on super.
public static Object afterPoll(ProxyCollection coll, Object removed)
Queue#poll
on super.
public static boolean removeAll(ProxyCollection coll, Collection vals)
Collection.removeAll(java.util.Collection>)
.
public static boolean retainAll(ProxyCollection coll, Collection vals)
Collection.retainAll(java.util.Collection>)
.
public static void beforeSet(ProxyCollection coll, int index, Object element)
List.set(int, E)
on super.
public static Object afterSet(ProxyCollection coll, int index, Object element, Object replaced)
List.set(int, E)
on super.
replaced
- the replaced object
public static void beforeSetElementAt(ProxyCollection coll, Object element, int index)
Vector#setElementAt
on super.
public static Object afterSetElementAt(ProxyCollection coll, Object element, int index, Object replaced)
Vector#setElementAt
on super.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |