com.xavax.xstore
Class AbstractProxy

Object
  extended byAbstractProxy

public abstract class AbstractProxy
extends Object

AbstractProxy is the base class for all proxy classes. A AbstractProxy has a reference to an object directory entry (Link) which is used to access the target (implementation) object.


Constructor Summary
AbstractProxy(AccessKey key)
          Construct a AbstractProxy.
AbstractProxy(PObject target)
          Construct a AbstractProxy for the specified implementation object.
 
Method Summary
 boolean equals(Object p0)
          Returns true if two proxy objects are equal.
 Object get$class()
          Returns the class map (metadata) for this proxy.
 
Methods inherited from class Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProxy

public AbstractProxy(AccessKey key)
Construct a AbstractProxy. The key parameter is used to implement the private interface framework. Since an AccessKey can only be created by the persistence package, only classes within the persistence package can call this constructor.

Parameters:
key - the access key.

AbstractProxy

public AbstractProxy(PObject target)
              throws PersistenceException
Construct a AbstractProxy for the specified implementation object.

Parameters:
target - the implementation object.
Method Detail

get$class

public Object get$class()
Returns the class map (metadata) for this proxy.

Returns:
a class map.

equals

public final boolean equals(Object p0)
Returns true if two proxy objects are equal.

Parameters:
p0 - the proxy to compare to this proxy for equality.
Returns:
true if two proxy objects are equal.