前页 | 后页 |
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 the Repository Datatypes collection.Associated table in repository
t_datatypesDatatype Attributes
Attribute |
Remarks |
See also |
---|---|---|
DatatypeID |
Long Notes: Read/Write The instance ID for this datatype within the current model; this is system maintained. |
|
DefaultLen |
Long Notes: Read/Write The default length (DDL only). |
|
DefaultPrec |
Long Notes: Read/Write The default precision (DDL only). |
|
DefaultScale |
Long Notes: Read/Write The default scale (DDL only). |
|
GenericType |
String Notes: Read/Write The associated generic type for this data type. |
|
HasLength |
String Notes: Read/Write Indicates whether the datatype has a length component. |
|
MaxLen |
Long Notes: Read/Write The maximum length (DDL only). |
|
MaxPrec |
Long Notes: Read/Write The maximum precision (DDL only). |
|
MaxScale |
Long Notes: Read/Write The maximum scale (DDL only). |
|
Name |
String Notes: Read/Write The datatype name (such as integer). This appears in the related drop-down datatype lists where appropriate. |
|
ObjectType |
ObjectType Notes: Read only Distinguishes objects referenced through a Dispatch interface. |
ObjectType |
Product |
String Notes: Read/Write The datatype product, such as Java, C++ or Oracle. |
|
Size |
Long Notes: Read/Write The datatype size. |
|
Type |
String Notes: Read/Write The type can be DDL for database datatypes or Code for language datatypes. |
|
UserDefined |
Long Notes: Read/Write Indicates if the datatype is a user defined type or system generated. Datatypes distributed with Enterprise Architect are all system generated. Datatypes created in the 'Datatype' dialog are marked 1 (True). |
Datatype Methods
Method |
Remarks |
See also |
---|---|---|
GetLastError() |
String Notes: Returns a string value describing the most recent error that occurred in relation to this object. |
|
Update() |
Boolean Notes: Updates the current Datatype object after modification or appending a new item. If False is returned, check the 'GetLastError()' function for more information. |