Primitive Types
A primitive type is used to group characteristics shared by several attributes. Primitive types are implemented as classes.
Prerequisite: Importing the Primitive Types
To access primitive types in HOPEX IT Architecture, the administrator must import the “ISQL ANSI” module in your environment. To import a module in HOPEX, see Modules > Importing a Module documentation.
Defining a Primitive Type
Primitive types are defined in a class diagram.
These are classes for which the following is specified:
They are of the "Primitive Type” stereotype.
They are "Abstract” classes because they will not be instantiated.
They are "Non-persistent" classes. They should not have a corresponding table in the database.
To specify types of class attributes:
1. Open the properties of the class and select the Internal Characteristics page.
2. Expand the Attributes section.
3. Click the Type expression field and select the attribute type using the arrow.
The following classes are in the standard list:
 
Alphanumeric types
 
Other Information
M-Char
Alphanumeric string of fixed length
Length
M-Varchar
Alphanumeric string of variable length
 
Numeric types
 
 
M-Numeric
Number
Length, decimal places
M-Amount
Amount expressed as currency
Length, decimal places
Date types
 
 
M-Date
Date
 
M-Time
Time
 
M-Datetime
Date and time
 
Binary types
 
 
M-Timestamp
Identification automatically generated from the date and time, expressed in thousandths of seconds since 01 January 1970
 
M-Bool
Boolean, equals 0 or 1
 
M-Multimedia
Binary string