com.xavax.xstore
Class Link

Object
  extended byLink

public class Link
extends Object

Link is an entry in the object directory for a persistent object. Each Link includes a reference to the proxy, a (possibly null) reference to the implementation object, the LOID, a reference to the class metadata, and flags to keep track of whether the object is persisted or deleted.


Method Summary
 PObject access()
          Returns the implementation object associated with this Link.
 boolean deleted()
          Returns true if the object was deleted during the current transaction.
 LOID loid()
          Returns the LOID for this Link.
 boolean persisted()
          Returns true if this object is persisted.
 AbstractProxy proxy()
          Returns the proxy object.
 PObject target()
          Returns the target (implementation) object.
 String toString()
          Returns a string representation of this Link.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

access

public PObject access()
Returns the implementation object associated with this Link. Load the object if necessary.

Returns:
the implementation object.

loid

public LOID loid()
Returns the LOID for this Link.

Returns:
the LOID.

deleted

public boolean deleted()
Returns true if the object was deleted during the current transaction.

Returns:
true if the object was deleted.

persisted

public boolean persisted()
Returns true if this object is persisted.

Returns:
true if this object is persisted.

proxy

public AbstractProxy proxy()
Returns the proxy object.

Returns:
the proxy object.

target

public PObject target()
Returns the target (implementation) object.

Returns:
the target object.

toString

public String toString()
Returns a string representation of this Link.

Returns:
a string representation of this Link.