In Toad Data Modeler, you can define your own data types (in case the database platform you use supports this feature).
To add a user data type
Select Model Menu | Model Items | User Data Types and click Add in the User Data Types dialog.
Example: User Data Types listed in User Data Types dialog
To edit a user data type
Double-click the selected data type or click Edit in the User Data Types dialog.
Example: The User Data Type Properties dialog (Oracle 10g)
General Tab |
Description | ||
Caption |
Logical user data type name | ||
Name |
Physical user data type name | ||
Schema |
Schema selection box | ||
Type |
This option is available in Oracle models only. Contains specific types of user defined types. | ||
Generate |
Select this option to generate the user data type in final SQL script. | ||
Generate SQL Only |
This option is available only for Oracle user data types. If this checkbox is selected, only the SQL code that you manually entered in appropriate tab (Object Type or Varray Type or Nested Table Type) will be generated in final DDL script. | ||
| |||
To Do Tab |
On this tab, you can write some tasks related to the user data type.
| ||
Used In Tab |
All objects where the user data type is used are listed here. | ||
Permissions Tab |
On this tab, you can assign a User or User Group permissions for selected user data type. | ||
Notes Tab |
Write notes related to the user data type. | ||
Object Type Tab |
See example of specification and definition in the following screenshot. | ||
|
Example: User Data Type Properties dialog | Object Type tab (Oracle 10g)
To assign a User Data Type to an attribute
|
TIP: You can reach the User Data Types dialog from the Attribute Properties dialog - see the small icons next to the Data Type box. |
|
Note:
|
|
Note: When you delete an user data type, the changes will reflect in all attributes that had this type assigned. There, the user data type will be replaced with data type that it was originally created from. To find out which attributes use a specific user data type, go to User Data Type Properties dialog | Used in tab. |
In Toad Data Modeler, you can define dictionary types. Dictionary is an alias of data type (must be supported by database).
|
Note: Oracle databases support user data types only, Microsoft SQL Server supports both user data types and dictionary types. |
To add a dictionary type
Select Model Menu | Model Items | Dictionary Types and click Add in the dialog.
To edit a dictionary type
Select Model | Model Items | Dictionary Types and double-click the selected dictionary type or click Edit.
General Tab |
Description | ||
Caption |
Logical dictionary type name | ||
Name |
Physical dictionary type name | ||
Data Type |
Data Type selection box | ||
| |||
To Do Tab |
You can enter To Do tasks related to the object here.
| ||
Used In Tab |
All objects using this dictionary type are listed here. | ||
Notes Tab |
Tab for notes related to the dictionary type. |
To select a dictionary type for attributes
|
Note:
|
|
Note: When you delete a dictionary type, it will be also removed from all attributes in which it was used and replaced with the data type that it was based on (e.g. deleting dictionary type based on char data type will cause all attributes to revert back to the char data type). To find out which attributes will be changed when you delete a dictionary type, open the Dictionary Type Properties dialog | Used In tab. |
Domain is another dictionary item in Toad Data Modeler. Domains only have logical meaning and are not generated. If a domain is used in a attribute, only the values of the domain are transferred to the attribute and are generated.
To add a domain
Select Model Menu | Model Items | Domains and click Add in the Domains dialog.
To edit a domain
Select Model Menu | Model Items | Domains and double-click the selected domain or click Edit in the Domains dialog.
Example: The Domain Properties dialog (Oracle 10g)
General Tab |
Description | ||
Caption |
Logical domain name | ||
Name |
Physical domain name | ||
Data Type |
Data Type selection box | ||
| |||
Check Constraints Tab |
On this tab, you can add, edit and delete check constraints of a domain. | ||
To Do Tab |
On this tab, you can write some tasks related to the domain. | ||
Used In Tab |
All attributes with this domain are listed on this tab. Double-clicking any attribute will open its Attribute Properties. | ||
Notes Tab |
Tab for notes on the domain. |
To select domains for attributes
|
Note:
|
|
Note: Deleting a domain will remove it from all attributes that are using it. To find out which attributes they are, open the Domain Properties dialog | Used In tab. |
Toad Data Modeler allows you to use dictionary items also in other models. You can simply export all of them to the .TXI file, and then import them to any model at any time. You can save the .TXI file where you want, no default path is defined.
Dictionary items are:
They have only a logical meaning. They are not generated in DDL/SQL script. If a domain is used in attribute, only values of the domain are transferred to the attribute during the DDL script generation process.
They are data types defined by users and can be generated in final DDL script. User data types are not derived from data types.
They are data types that are derived from other data types. They can be generated in final DDL script.
You want to use dictionary items of Model A in Model B:
|
Note:
|
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy