Assign a Domain to a Column
You can assign a domain to a column using the Table Column Editor in a physical model.
When you attach a domain to a column, you specify physical data type for the selected column. Standard domains include: Default, Blob, Datetime, Number, and String. This list can also include user-defined physical data types that you create in the Domain Editor.
To assign a domain to a column
- Right-click the table that contains the column for which you want to assign the domain and click Column Properties.
The Table Column Editor opens.
- Select the column name in the Navigation Grid for which you want to assign the domain and click the General tab.
- Work with the following options:
- Domain Parent
Lets you select a domain from the list to attach it to the selected column. The Domain Parent option contains a toolbar that includes the following options:
Lets you specify to sort the list of domains alphabetically, in reverse alphabetical order, or by domain hierarchy.
Restores inheritance from definition. If this column is a FK, the domain may be inherited or overridden to a different domain.
Opens the Domain Editor in physical edit mode.
- Physical Name
Displays the physical name. You can change the name in this field or click the Text Editor button to open a larger edit window.
- Physical Data Type
Specifies the physical data type for the column. You can change the data type using the drop-down. The drop-down list contains the data types related to the current domain.
- Null Option
Displays the column null option. You can change the null option using the drop-down control. You can also click the Inheritance button to either inherit or override the column's null option. This button changes to provide you with a visual cue of the current inheritance setting for the column null option.
- Click Close.
Column domain assignment is saved and the Table Column Editor closes.
If you do not want to associate the selected domain with the corresponding attribute in the logical model, click the Domain Editor button, and select the Physical Only check box in the General tab. You can then assign a different, logical-only domain to the attribute in the Attribute Editor.
Copyright © 2025 Quest Software, Inc. |