|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.util.ProxyHelper
ProxyHelper used to get the real thing behind a proxy
Constructor Summary | |
ProxyHelper()
|
Method Summary | |
static ManageableCollection |
createCollectionProxy(PersistenceBroker broker,
Query query,
java.lang.Class collectionClass)
Create a Collection Proxy for a given query |
static IndirectionHandler |
getIndirectionHandler(java.lang.Object obj)
|
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 |
isMaterialized(java.lang.Object object)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProxyHelper()
Method Detail |
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 final ManageableCollection createCollectionProxy(PersistenceBroker broker, Query query, java.lang.Class collectionClass)
broker
- query
- collectionClass
- the class to build the proxy for
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)
public static boolean isMaterialized(java.lang.Object object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |