Package wt.vc

Class VersionReference

All Implemented Interfaces:
Externalizable, Serializable, wt.fc._NetFactor, wt.fc._ObjectMappable, _WTReference, NetFactor, ObjectMappable, WTReference

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:
  • Method Details

    • 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(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
      Specified by:
      equals in interface WTReference
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      boolean
    • hashCode

      public int hashCode()


      Supported API: true
      Specified by:
      hashCode in interface WTReference
      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(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