Package wt.vc
Class VersionReference
java.lang.Object
wt.vc._VersionReference
wt.vc.VersionReference
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,_WTReference,NetFactor,ObjectMappable,WTReference
@GenAsObjectMappable(interfaces=WTReference.class,versions=7263052232937541122L,properties={@GeneratedProperty(name="key",type=VersionForeignKey.class,accessors=@PropertyAccessors(setExceptions={})),@GeneratedProperty(name="object",type=Iterated.class,accessors=@PropertyAccessors(setAccess=PRIVATE,getExceptions=WTRuntimeException.class,setExceptions={}),columnProperties=@ColumnProperties(persistent=false))})
public class VersionReference
extends _VersionReference
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:
-
Field Summary
Fields inherited from class wt.vc._VersionReference
OBJECT -
Method Summary
Modifier and TypeMethodDescriptionboolean
Supported API: trueinthashCode()
Supported API: trueprotected voidinitialize(Iterated obj) Supports initialization, following construction of an instance.protected voidinitialize(VersionForeignKey objId) Supports initialization, following construction of an instance.static VersionReferenceConstructs a VersionReference using an iterated object.static VersionReferenceConstructs a VersionReference using a foreign key.booleanreferences(Persistable obj)
Supported API: truevoidrefresh()
Supported API: true
-
Method Details
-
newVersionReference
Constructs a VersionReference using an iterated object.
Supported API: true- Parameters:
obj-- Returns:
- VersionReference
- Throws:
WTException
-
newVersionReference
Constructs a VersionReference using a foreign key.
Supported API: true- Parameters:
objId-- Returns:
- VersionReference
- Throws:
WTException
-
refresh
Supported API: true- Throws:
WTException
-
equals
Supported API: true- Specified by:
equalsin interfaceWTReference- Overrides:
equalsin classObject- Parameters:
obj-- Returns:
- boolean
-
hashCode
public int hashCode()
Supported API: true- Specified by:
hashCodein interfaceWTReference- Overrides:
hashCodein classObject- Returns:
- int
-
references
Supported API: true- Parameters:
obj-- Returns:
- boolean
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
obj-- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
objId-- Throws:
WTException
-