|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.core.proxy.ProxyHelper
public class ProxyHelper
ProxyHelper used to get the real thing behind a proxy
Constructor Summary | |
---|---|
ProxyHelper()
|
Method Summary | |
---|---|
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. no proxy or a proxy that has already been loaded from the database. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyHelper()
Method Detail |
---|
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 object
null
otherwisepublic static boolean isMaterialized(java.lang.Object object)
object
- The object to test
true
if the object is materializedpublic static java.lang.String toString(java.lang.Object object)
object
- The object for which a string representation shall be generated
public static CollectionProxy getCollectionProxy(java.lang.Object item)
public static boolean isCollectionProxy(java.lang.Object item)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |