|
||||||||||
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.ProxyMaps
public class ProxyMaps
Utility methods used by map proxies.
Nested Class Summary | |
---|---|
static interface |
ProxyMaps.ProxyEntrySet
Marker interface for a proxy entry set. |
Constructor Summary | |
---|---|
ProxyMaps()
|
Method Summary | |
---|---|
static Set |
afterEntrySet(ProxyMap map,
Set entries)
Wrap the given entry set in a proxy. |
static Object |
afterPut(ProxyMap map,
Object key,
Object value,
Object ret,
boolean before)
Call after invoking Map.put(K, V) on super. |
static Object |
afterRemove(ProxyMap map,
Object key,
Object ret,
boolean before)
Call after invoking Map.remove(java.lang.Object) on super. |
static Object |
afterSetProperty(ProxyMap map,
String key,
String value,
Object ret,
boolean before)
Call after invoking Properties#setProperty on super. |
static void |
beforeClear(ProxyMap map)
Call before invoking Map.clear() on super. |
static void |
beforeLoad(ProxyMap map,
InputStream in)
Call before invoking Properties#load on super. |
static void |
beforeLoadFromXML(ProxyMap map,
InputStream in)
Call before invoking Properties#loadXML on super. |
static boolean |
beforePut(ProxyMap map,
Object key,
Object value)
Call before invoking Map.put(K, V) on super. |
static boolean |
beforeRemove(ProxyMap map,
Object key)
Call before invoking Map.remove(java.lang.Object) on super. |
static boolean |
beforeSetProperty(ProxyMap map,
String key,
String value)
Call before invoking Properties#setProperty on super. |
static Set |
keySet(ProxyMap map)
Override for Map.keySet() . |
static void |
putAll(ProxyMap map,
Map values)
Overload for Map.putAll(java.util.Map extends K, ? extends V>) . |
static Collection |
values(ProxyMap map)
Override for Map.values() . |
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 ProxyMaps()
Method Detail |
---|
public static void beforeClear(ProxyMap map)
Map.clear()
on super.
public static Set keySet(ProxyMap map)
Map.keySet()
.
public static Collection values(ProxyMap map)
Map.values()
.
public static Set afterEntrySet(ProxyMap map, Set entries)
public static boolean beforePut(ProxyMap map, Object key, Object value)
Map.put(K, V)
on super.
public static Object afterPut(ProxyMap map, Object key, Object value, Object ret, boolean before)
Map.put(K, V)
on super.
ret
- the return value from the super's methodbefore
- the return value from beforePut(org.apache.openjpa.util.ProxyMap, java.lang.Object, java.lang.Object)
Map.put(K, V)
public static boolean beforeSetProperty(ProxyMap map, String key, String value)
Properties#setProperty
on super.
public static Object afterSetProperty(ProxyMap map, String key, String value, Object ret, boolean before)
Properties#setProperty
on super.
ret
- the return value from the super's methodbefore
- the return value from beforeSetProperty(org.apache.openjpa.util.ProxyMap, java.lang.String, java.lang.String)
Properties#setProperty
public static void beforeLoad(ProxyMap map, InputStream in)
Properties#load
on super.
public static void beforeLoadFromXML(ProxyMap map, InputStream in)
Properties#loadXML
on super.
public static void putAll(ProxyMap map, Map values)
Map.putAll(java.util.Map extends K, ? extends V>)
.
public static boolean beforeRemove(ProxyMap map, Object key)
Map.remove(java.lang.Object)
on super.
public static Object afterRemove(ProxyMap map, Object key, Object ret, boolean before)
Map.remove(java.lang.Object)
on super.
ret
- the return value from the super's methodbefore
- the return value from beforeRemove(org.apache.openjpa.util.ProxyMap, java.lang.Object)
Map.remove(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |