|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.core.proxy.VirtualProxy
Proxy base class. can be used to implement lazy materialization techniques.
| Constructor Summary | |
VirtualProxy()
Creates a new, uninitialized proxy. |
|
VirtualProxy(IndirectionHandler handler)
Create a VirtualProxy that uses the given invocation handler. |
|
VirtualProxy(PBKey key,
Identity oid)
Creates a VirtualProxy for the subject with the given identity. |
|
| Method Summary | |
boolean |
alreadyMaterialized()
Determines whether this proxy already has been materialized. |
IndirectionHandler |
getIndirectionHandler()
Returns the IndirectionHandler |
static IndirectionHandler |
getIndirectionHandler(VirtualProxy proxy)
Returns the indirection handler of the given proxy. |
java.lang.Object |
getRealSubject()
Returns the proxies real subject. |
java.lang.Object |
writeReplace()
|
| 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)
key - The key of the PersistenceBrokeroid - The identity of the subjectpublic VirtualProxy(IndirectionHandler handler)
handler - The indirection handler of the proxy| Method Detail |
public static IndirectionHandler getIndirectionHandler(VirtualProxy proxy)
proxy - The proxy
public boolean alreadyMaterialized()
true if the real subject already been loaded
public java.lang.Object getRealSubject()
throws PersistenceBrokerException
PersistenceBrokerExceptionpublic IndirectionHandler getIndirectionHandler()
getIndirectionHandler in interface OJBProxypublic java.lang.Object writeReplace()
writeReplace in interface OJBProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||