public abstract class VirtualProxy extends java.lang.Object implements OJBProxy, java.io.Serializable
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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 proxypublic static IndirectionHandler getIndirectionHandler(VirtualProxy proxy)
proxy - The proxypublic boolean alreadyMaterialized()
true if the real subject already been loadedpublic java.lang.Object getRealSubject()
throws PersistenceBrokerException
PersistenceBrokerExceptionpublic IndirectionHandler getIndirectionHandler()
getIndirectionHandler in interface OJBProxypublic java.lang.Object writeReplace()
writeReplace in interface OJBProxy(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30