Next: Version Characteristics
Up: Versions
Previous: Operations on Versioned
Version information is represented using the
following system attributes:
- (non-versioned) version system attribute for an instance
- _defaultVersion (with data type INTEGER)
indicates the current version number of an object instance;
null means that there is no default (or current) version;
- _nextVersion (with data type INTEGER)
indicates the next version number for a new version;
- (versioned) version system attributes for a version
- _version (with data type INTEGER)
represents the version number of an object;
- _preVersion (with data type INTEGER)
represents the version number preceding
this version;
- _fromDate (with data type DATETIME)
represents the time this version is created;
- _deleteDate (with data type DATETIME)
represents the time this version is logically deleted (or expired).
All of the above system attributes are single-valued.
Attributes nextVersion, _version and _fromDate
are also specified with minimum cardinality of 1.
Additional version attributes can be computed using methods:
- _sucVersion represents the version number(s) succeeding
a specific version; this attribute consists of
all versions with the same _oid
and _preVersion equal to this specific version number;
- _lastVersion represents the last used version
number of an object instance;
this attribute value is computed as:
_nextVersion - 1.