Datatype Class

A Datatype is a named type that can be associated with attribute or method types. It typically is related to either code engineering or database modeling. Datatypes also indicate which language or database system they relate to. Datatypes can be accessed using theRepositoryDatatypes collection.

Associated table in .EAP file t_datatypes

Datatype Attributes

Attribute

Type

Notes

DatatypeID

Long

Read/Write

The instance ID for this datatype within the current model; this is system maintained.

DefaultLen

Long

Read/Write

The default length (DDL only).

DefaultPrec

Long

Read/Write

The default precision (DDL only).

DefaultScale

Long

Read/Write

The default scale (DDL only).

GenericType

String

Read/Write

The associated generic type for this data type.

HasLength

String

Read/Write

Indicates whether the datatype has a length component.

MaxLen

Long

Read/Write

The maximum length (DDL only).

MaxPrec

Long

Read/Write

The maximum precision (DDL only).

MaxScale

Long

Read/Write

The maximum scale (DDL only).

Name

String

Read/Write

The datatype name (such as integer). This appears in the related drop-down datatype lists where appropriate.