CREATE RELATIONSHIP-TYPE [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL SDMAIN
CREATE RELATIONSHIP-TYPE
Creates a new relationship type.
Syntax
C[REATE] R[ELATIONSHIP-]T[YPE] entity-type-name1
,entity-type-name2
[,entity-type-name3]
[,entity-type-name4]
[,entity-type-name5]
[,entity-type-name6]
;R[ELATIONSHIP-]C[LASS] = relation-class-name
.
Parameters
entity-type-name(N) Name of the entity type that establishes the
relationship type.
relation-class-name Name of the relationship class.
Description
Every relationship type has the following attributes associated with it
after it is created:
scope-owner scope-changed
date-created sensitivity
date-changed relationship-position
These attributes, called special attributes, are associated by default
and can never be deleted from the relationship type's attribute list.
A minimum of two entity types and a maximum of six entity types can be
related in a relationship type. The order of the entity types is
important when creating a new relationship type. When only two entity
types are involved, the first entity type is the subject (parent) and the
second is the object (child). For example, if the first entity type is
FILE, the second is ELEMENT, and the relationship class is contains, then
the relationship type is interpreted as FILE contains ELEMENT.
Open Mode: Customization
Scope: DA scope or any scope with extend capability. The scope
with which the dictionary is open is the owner of the
relationship type.
Example
The following example creates a new relationship type project contains
program, with contains being the relationship class of the relationship
type.
>CREATE RELATIONSHIP-TYPE project, program;
>>RELATIONSHIP-CLASS = contains.
>
MPE/iX 5.0 Documentation