|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.VirtualProxy
Proxy base class. can be used to implement lazy materialization techniques.
as a sample application.,
Serialized Form| Constructor Summary | |
VirtualProxy()
|
|
VirtualProxy(java.lang.reflect.InvocationHandler handler)
create a VirtualProxy from an identity |
|
VirtualProxy(PBKey key,
Identity oid)
create a VirtualProxy from an identity |
|
| Method Summary | |
boolean |
alreadyMaterialized()
returns true if the real subject already been loaded |
static java.lang.Object |
createProxy(PBKey key,
java.lang.Class proxyClass,
Identity realSubjectsIdentity)
static factory method creates VirtualProxy instances of a given subclass and an real subjects identity. |
static org.apache.ojb.broker.accesslayer.IndirectionHandler |
getIndirectionHandler(VirtualProxy proxy)
|
java.lang.Object |
getRealSubject()
returns the proxies real subject. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VirtualProxy()
public VirtualProxy(PBKey key,
Identity oid)
oid - org.apache.ojb.broker.Identitykey - the PersistenceBroker Keypublic VirtualProxy(java.lang.reflect.InvocationHandler handler)
| Method Detail |
public static org.apache.ojb.broker.accesslayer.IndirectionHandler getIndirectionHandler(VirtualProxy proxy)
public boolean alreadyMaterialized()
public static java.lang.Object createProxy(PBKey key,
java.lang.Class proxyClass,
Identity realSubjectsIdentity)
proxyClass - java.lang.ClassrealSubjectsIdentity - org.apache.ojb.broker.Identitykey - the PersistenceBroker Key
PersistenceBrokerException - if there is an error creating the proxy object
public java.lang.Object getRealSubject()
throws PersistenceBrokerException
PersistenceBrokerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||