Returns the invocation handler object of the given proxy object.
Parameters: obj - The object The invocation handler if the object is an OJB proxy, or nullotherwise
Get the real Object
Parameters: objectOrProxy - Object
getRealObjectIfMaterialized
final public static Object getRealObjectIfMaterialized(Object objectOrProxy)(Code)
Get the real Object for already materialized Handler
Parameters: objectOrProxy - Object or null if the Handel is not materialized
isCollectionProxy
public static boolean isCollectionProxy(Object item)(Code)
Reports if item is a CollectionProxy.
isMaterialized
public static boolean isMaterialized(Object object)(Code)
Determines whether the object is a materialized object, i.e. no proxy or a
proxy that has already been loaded from the database.
Parameters: object - The object to test true if the object is materialized
isNormalOjbProxy
public static boolean isNormalOjbProxy(Object proxyOrObject)(Code)
Determines whether the given object is an OJB proxy.
true if the object is an OJB proxy
isProxy
public static boolean isProxy(Object proxyOrObject)(Code)
Materialization-safe version of toString. If the object is a yet-unmaterialized proxy,
then only the text "unmaterialized proxy for ..." is returned and the proxy is NOT
materialized. Otherwise, the normal toString method is called. This useful e.g. for
logging etc.
Parameters: object - The object for which a string representation shall be generated The string representation