HOPEX UML : HOPEX UML : Attribute type : Primitive Types
   
Primitive Types
 
Defining a Primitive Type
A primitive type is used to group characteristics shared by several attributes. Primitive types are implemented as classes.
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. In the Properties dialog box of the class, select the Attributes tab.
2. 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 January 1, 1970
 
M-Bool
Boolean, equals 0 or 1
 
M-Multimedia
Binary string