public class ProxyHelper
extends java.lang.Object
Constructor and Description |
---|
ProxyHelper() |
Modifier and Type | Method and Description |
---|---|
static CollectionProxy |
getCollectionProxy(java.lang.Object item)
Return CollectionProxy for item is item is a CollectionProxy, otherwise return null
|
static IndirectionHandler |
getIndirectionHandler(java.lang.Object obj)
Returns the invocation handler object of the given proxy object.
|
static ProxyFactory |
getProxyFactory() |
static java.lang.Class |
getRealClass(java.lang.Object objectOrProxy)
Get the real Class
|
static java.lang.Object |
getRealObject(java.lang.Object objectOrProxy)
Get the real Object
|
static java.lang.Object |
getRealObjectIfMaterialized(java.lang.Object objectOrProxy)
Get the real Object for already materialized Handler
|
static boolean |
isCollectionProxy(java.lang.Object item)
Reports if item is a CollectionProxy.
|
static boolean |
isMaterialized(java.lang.Object object)
Determines whether the object is a materialized object, i.e.
|
static boolean |
isNormalOjbProxy(java.lang.Object proxyOrObject)
Determines whether the given object is an OJB proxy.
|
static boolean |
isProxy(java.lang.Object proxyOrObject)
Returns true if the given object is a
Proxy
or a VirtualProxy instance. |
static boolean |
isVirtualOjbProxy(java.lang.Object proxyOrObject)
Determines whether the given object is an OJB virtual proxy.
|
static java.lang.String |
toString(java.lang.Object object)
Materialization-safe version of toString.
|
public static ProxyFactory getProxyFactory()
public static final java.lang.Object getRealObject(java.lang.Object objectOrProxy)
objectOrProxy
- public static final java.lang.Object getRealObjectIfMaterialized(java.lang.Object objectOrProxy)
objectOrProxy
- public static final java.lang.Class getRealClass(java.lang.Object objectOrProxy)
objectOrProxy
- public static boolean isNormalOjbProxy(java.lang.Object proxyOrObject)
true
if the object is an OJB proxypublic static boolean isVirtualOjbProxy(java.lang.Object proxyOrObject)
true
if the object is an OJB virtual proxypublic static boolean isProxy(java.lang.Object proxyOrObject)
Proxy
or a VirtualProxy
instance.public static IndirectionHandler getIndirectionHandler(java.lang.Object obj)
obj
- The objectnull
otherwisepublic static boolean isMaterialized(java.lang.Object object)
object
- The object to testtrue
if the object is materializedpublic static java.lang.String toString(java.lang.Object object)
object
- The object for which a string representation shall be generatedpublic static CollectionProxy getCollectionProxy(java.lang.Object item)
public static boolean isCollectionProxy(java.lang.Object item)
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30