wt.vc
Class VersionReference

java.lang.Object
  extended by wt.vc.VersionReference
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable, WTReference

public class VersionReference
extends Object
implements WTReference, Externalizable

The VersionReference is a kind of reference to Iterated objects by means of the overridden key. This key is a foreign key to the latest iteration in a branch.

Use the newVersionReference static factory method(s), not the VersionReference constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
          

Supported API: true
 int hashCode()
          

Supported API: true
protected  void initialize(Iterated obj)
          Supports initialization, following construction of an instance.
protected  void initialize(wt.vc.VersionForeignKey objId)
          Supports initialization, following construction of an instance.
static VersionReference newVersionReference(Iterated obj)
          Constructs a VersionReference using an iterated object.
static VersionReference newVersionReference(wt.vc.VersionForeignKey objId)
          Constructs a VersionReference using a foreign key.
 boolean references(Persistable obj)
          

Supported API: true
 void refresh()
          

Supported API: true
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

newVersionReference

public static VersionReference newVersionReference(Iterated obj)
                                            throws WTException
Constructs a VersionReference using an iterated object.

Supported API: true

Parameters:
obj -
Returns:
VersionReference
Throws:
WTException

newVersionReference

public static VersionReference newVersionReference(wt.vc.VersionForeignKey objId)
                                            throws WTException
Constructs a VersionReference using a foreign key.

Supported API: true

Parameters:
objId -
Returns:
VersionReference
Throws:
WTException

refresh

public void refresh()
             throws WTException


Supported API: true

Throws:
WTException

equals

public boolean equals(Object obj)


Supported API: true

Overrides:
equals in class Object
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()


Supported API: true

Overrides:
hashCode in class Object
Returns:
int

references

public boolean references(Persistable obj)


Supported API: true

Parameters:
obj -
Returns:
boolean

initialize

protected void initialize(Iterated obj)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
obj -
Throws:
WTException

initialize

protected void initialize(wt.vc.VersionForeignKey objId)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
objId -
Throws:
WTException