public class ProxyMaps extends Proxies
Modifier and Type | Class and Description |
---|---|
static interface |
ProxyMaps.ProxyEntrySet
Marker interface for a proxy entry set.
|
Constructor and Description |
---|
ProxyMaps() |
Modifier and Type | Method and Description |
---|---|
static Set |
afterEntrySet(ProxyMap map,
Set entries)
Wrap the given entry set in a proxy.
|
static Object |
afterGet(ProxyMap map,
Object key,
Object ret,
boolean before)
Call after invoking
Map.get(java.lang.Object) on super. |
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(java.lang.String, java.lang.String) on super. |
static void |
beforeClear(ProxyMap map)
Call before invoking
Map.clear() on super. |
static boolean |
beforeGet(ProxyMap map,
Object key)
Call before invoking
Map.get(java.lang.Object) on super. |
static void |
beforeLoad(ProxyMap map,
InputStream in)
Call before invoking
Properties.load(java.io.Reader) 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(java.lang.String, java.lang.String) 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() . |
assertAllowedType, dirty, isOwner, removed, writeReplace
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 beforeGet(ProxyMap map, Object key)
Map.get(java.lang.Object)
on super.public static Object afterGet(ProxyMap map, Object key, Object ret, boolean before)
Map.get(java.lang.Object)
on super.
The potential change is tracked when the get method is called. This change
will not translated to an update statement if the retrieved value
is not dirty.ret
- the return value from the super's methodbefore
- the return value from beforeGet(org.apache.openjpa.util.ProxyMap, java.lang.Object)
Map.get(java.lang.Object)
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(java.lang.String, java.lang.String)
on super.public static Object afterSetProperty(ProxyMap map, String key, String value, Object ret, boolean before)
Properties.setProperty(java.lang.String, java.lang.String)
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(java.lang.String, java.lang.String)
public static void beforeLoad(ProxyMap map, InputStream in)
Properties.load(java.io.Reader)
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)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.