PROPERTY_TYPE Table
The PROPERTY_TYPE table contains information about the types of properties permitted in a erwin DM model. In other words, rows in this table will correspond to columns on M0 tables (for scalar properties) or to M0 tables (for vector properties). The following table describes the base columns in the PROPERTY_TYPE table:
Column Name |
Data Type |
Description |
---|---|---|
ID@ |
INTEGER |
The ID of the object in the model. Though this is a short ID, it never changes. |
NAME |
VARCHAR |
The name of the type. |
LONG_ID |
CHAR(67) |
The long ID of the type. This is provided for consistency with M0. |
DEFINITION |
VARCHAR |
The definition of the type. |
TAG_IS_INTERNAL |
CHAR(1) |
Is the object type marked as Internal? Internal types are not exposed by the M0 schema. |
TAG_IS_DEPRECATED |
CHAR(1) |
Has this type been deprecated? |
TAG_DEPRECATION_LEVEL |
INTEGER |
A value of 2 indicates that the type is still in the metamodel, but is no longer active. A value of 3 indicates the type is no longer in the metamodel. A value of -1 indicates the type is for a future release. |
TAG_RELEASE_DEPRECATED |
VARCHAR |
The release in which the type was deprecated. If the type is deprecated, but this value is NULL, then the release was 7.0. |
TAG_RELEASE_ADDED |
VARCHAR |
The release in which the type was added. |
TAG_IS_LOCALLY_DEFINED |
CHAR(1) |
Is this metadata defined in the model? For example, is this a UDP? |
DATA_TYPE |
INTEGER |
The data type of the property. |
TAG_IS_REFERENCE |
CHAR(1) |
Is this a property that holds a reference to another object? |
TAG_IS_SYSTEM_MAINTAINED |
CHAR(1) |
Is this property maintained by erwin DM instead of by the user? |
REFERENCED_TYPE_REF |
INTEGER |
If this is a reference property, the type of object referenced. |
TAG_IS_ORDERED_VECTOR |
CHAR(1) |
If this is a vector property, is the order of elements significant? |
TAG_IS_ATOMIC_VECTOR |
CHAR(1) |
If this is a vector property, must the entire set of values always be set as a unit? |
Use a query similar to the following to find all the user-defined properties (UDPs) in a model:
SELECT NAME, DEFINITION
FROM M1.PROPERTY_TYPE
WHERE TAG_IS_LOCALLY_DEFINED = 'T'
Copyright © 2018 erwin, Inc.
All rights reserved.
|
|