|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.broker.VirtualProxy
Proxy base class. can be used to implement lazy materialization techniques.
Constructor Summary | |
VirtualProxy()
|
|
VirtualProxy(Identity oid)
create a VirtualProxy from an identity |
|
VirtualProxy(java.lang.reflect.InvocationHandler handler)
create a VirtualProxy from an identity |
Method Summary | |
boolean |
alreadyMaterialized()
returns true if the real subject already been loaded |
static java.lang.Object |
createProxy(java.lang.Class proxyClass,
Identity realSubjectsIdentity)
static factory method creates VirtualProxy instances of a given subclass and an real subjects identity. |
(package private) Identity |
getIdentity()
|
static IndirectionHandler |
getIndirectionHandler(VirtualProxy proxy)
|
java.lang.Object |
getRealSubject()
returns the proxies real subject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VirtualProxy()
public VirtualProxy(Identity oid)
public VirtualProxy(java.lang.reflect.InvocationHandler handler)
Method Detail |
public static IndirectionHandler getIndirectionHandler(VirtualProxy proxy)
public boolean alreadyMaterialized()
public static java.lang.Object createProxy(java.lang.Class proxyClass, Identity realSubjectsIdentity) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
proxyClass
- java.lang.ClassrealSubjectsIdentity
- ojb.broker.Identity
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public java.lang.Object getRealSubject() throws PersistenceBrokerException
PersistenceBrokerException
Identity getIdentity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |