Package org.apache.openjpa.util
Class Proxies
- java.lang.Object
-
- org.apache.openjpa.util.Proxies
-
- Direct Known Subclasses:
ProxyCollections
,ProxyMaps
public class Proxies extends java.lang.Object
Utility methods for managing proxies.- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description Proxies()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertAllowedType(java.lang.Object value, java.lang.Class allowed)
Used by proxy types to check that an attempt to add a new value is legal.static void
dirty(Proxy proxy, boolean stopTracking)
Used by proxy types to dirty their owner.static boolean
isOwner(Proxy proxy, OpenJPAStateManager sm, int field)
Used by proxy types to check if the given owners and field names are equivalent.static void
removed(Proxy proxy, java.lang.Object removed, boolean key)
Used by proxy types to notify collection owner on element removal.static java.lang.Object
writeReplace(Proxy proxy, boolean detachable)
Used by proxy types to serialize non-proxy versions.
-
-
-
Method Detail
-
isOwner
public static boolean isOwner(Proxy proxy, OpenJPAStateManager sm, int field)
Used by proxy types to check if the given owners and field names are equivalent.
-
assertAllowedType
public static void assertAllowedType(java.lang.Object value, java.lang.Class allowed)
Used by proxy types to check that an attempt to add a new value is legal.
-
dirty
public static void dirty(Proxy proxy, boolean stopTracking)
Used by proxy types to dirty their owner.
-
removed
public static void removed(Proxy proxy, java.lang.Object removed, boolean key)
Used by proxy types to notify collection owner on element removal.
-
writeReplace
public static java.lang.Object writeReplace(Proxy proxy, boolean detachable)
Used by proxy types to serialize non-proxy versions.
-
-