Chat now with support
Chat mit Support

Toad Data Modeler 7.2 - User Guide

Introduction User Interface Models and Model Objects
Physical Data Model
Entity Relationship Diagram Objects Basic Database Design Advanced Database Design
Universal Data Model Logical Data Model Working with Model Objects
Features and Tools
Application Variables Export/Import DDL Script Generation Graphics Model Actions Print Create New Project Reports Reverse Engineering Scripting and Customization About Templates Tips and Tricks Toad for Oracle Integration Toad Intelligence Central (TIC) Integration Tools Version Control
Options and Configuration Databases
Amazon Redshift 1.0 IBM DB2 LUW 9.5 IBM DB2 LUW 9.7 IBM DB2 LUW 10.1 IBM DB2 LUW 10.5 IBM DB2 LUW 11.1 IBM DB2 z/OS 10 IBM DB2 z/OS 11 Greenplum 4.1 Greenplum 4.2 Ingres 9.3 Ingres 10.0 EDB Postgres Advanced Server 10 Microsoft Access 2007/2010 Microsoft Azure SQL Database V12 Microsoft SQL Server 2005 Microsoft SQL Server 2008 Microsoft SQL Server 2012 Microsoft SQL Server 2014 Microsoft SQL Server 2016 Microsoft SQL Server 2017 Microsoft SQL Server 2019 MySQL 5.0 MySQL 5.1 MySQL 5.5 MySQL 5.6 MySQL 5.7 MySQL 8.0 Oracle 10g Oracle 11g Release 1 Oracle 11g Release 2 Oracle 12c Release 1 Oracle 12c Release 2 Oracle 18c Oracle 19c PostgreSQL 9.0 PostgreSQL 9.1 PostgreSQL 9.2 PostgreSQL 9.3 PostgreSQL 9.4 PostgreSQL 9.5 PostgreSQL 10 PostgreSQL 11 PostgreSQL 12 SQLite 3.7 Sybase ASE 15.5 Sybase ASE 15.7 SAP ASE 16.0 Sybase IQ 15.2 Sybase SQL Anywhere 11 SAP SQL Anywhere 17 Teradata 13 Vertica Database 8.0
Copyright Legal Notices

Edit Attributes

  • In the Entity Properties dialog | Attributes tab, double-click the selected attribute.

or

  • Find the attribute in Model Explorer | EntityName folder | Attributes | Double-click the selected attribute.

Example: The Attribute Properties dialog (Oracle 10g db):

Tab/Option Description

Object Navigator Dropdown Menu

Object Navigator Dropdown Menu can be expanded or collapsed by clicking the right black arrow in top right corner.

All attributes in your entity are listed here. This allows you to edit them quickly and comfortably from one place.

Tip: After you finish editing an entity, click Apply to confirm changes and select another entity from the Object Navigator box.

General Tab

General properties of attribute

Caption

Logical column name

Name

Physical attribute name

See About Naming Conventions for more information.

Primary Key Select this checkbox to set the attribute to be a part of primary key.
Not Null

Select this checkbox to set the attribute Not Null.

See NotNull Property for PK and AK Attributes for more information.

Unique

Select this checkbox to set the attribute as unique.

See Unique Attributes for more information.

Data Type

Data Type selection box

TIP:

  • Before you create new attributes, set a default data type, including parameters, for particular database. See the Settings menu | Options | Physical Model | particular database version | Default Data Type combo-box. (The selected data type will be applied also for Dictionary Types and Domains.)
  • Set maximal length for display of data types in the physical ERD. Select Settings | Options | Graphics | Maximal Number of Characters for Displayed Data Type.

Domains

Domains selection box

Note: It's not possible to assign an attribute a data type and a domain at the same time. If you select a domain, data type will be set automatically from the domain.

Default

Default value definition

Default Rule

Default rule selection

Note: Other options on the General tab vary according to a database type. Options specific for your database can be found in the Databases chapter.

Check Constraints Tab

On this tab, you can add, edit and delete check constraints.

Foreign Keys Tab

Details of a foreign key attribute are listed here.

Entity

Name of parent entity

Relationship

Name of relationship connecting the parent entity and child entity

Attribute

Name of attribute

Permissions Tab

On this tab, you can assign a User or User Group permissions for the selected attribute.

Notes Tab

A tab for notes on the attribute. The text will display in a pop-up box when you point your mouse cursor at the attribute name in ER diagram (the Attributes item has to be selected in Display Level).

Not Null Constraint Tab

Options related to Not Null Constraint definition.

Click this button to open the parent form (Entity Properties form).

Note: Above the Object Navigator Dropdown Menu, you can see name of the entity that the attribute belongs to. The Properties dialog of this entity will open.

Display Attributes in Model

To display attributes in your ER diagram

From the Display Level box on the toolbar, select Attributes.

To define a display level for particular Workspace

Right-click the work area  | Workspace Format... | Entities tab | Display Level | select Attributes.

To set the default Display Level properties for all models that you will create

Select Settings | Options | Physical Model | Entity tab | Display Level.

To define different colors for attributes on your Workspace

Select Settings | Options | Model section | Physical Model | Entity tab | Attribute Colors area.

Order Attributes

In the Entity Properties form | Attributes tab, you can order attributes:

  • Manually via the green arrows at the bottom of the form
  • Automatically (e.g. by Name, Caption, Data type etc.)

Manual Order

The order you will set via the green arrows will be applied in particular entity box in the Designer (all workspaces).

Example: Attributes in the Film Entity Properties form have been ordered manually using the green arrows and finally confirmed Apply. Now see the Film entity in Designer and compare its order of attributes with the order set in the Film Entity Properties form. The order is identical.

Automatic Order

Click the appropriate column name - e.g. click the Name column to sort attributes alphabetically.

This function offers you just a different view on the attributes in the Entity Properties form. It does not influence order of attributes in entity box in the Designer.

If you sort attributes this way, you cannot manually change order of attributes via the green arrows. If you click a green arrow, this message will display:

Click OK to activate the green arrows and order the attributes manually.

Note:

  • No green arrow is enabled when there is no attribute or when there are attributes but none is selected.
  • If any sorting function is turned on (e.g. sorting by name), green arrows are both active, so you can click any of them to turn off the sorting and set the ordinal order.

Copy Attributes

In Toad Data Modeler there are several methods and places where to copy attributes. You can select from the following options.

A. CTRL + Drag&Drop techniques on the Workspace

Use: This way, you can copy attributes within an entity and between entities on one WS. You can copy one or more attributes at one jump.

Example:

  1. See Display Attributes in Model for more information.
  2. Select an entity of which attributes you want to copy.
  3. Press CTRL and hold the key down. Click the attributes that you want to copy.
  4. Release CTRL key.

  1. Now click the selected objects, hold the mouse button down. Press CTRL again and hold the key down.
  2. Drag the selected attributes to a target entity. (If you want to copy the attributes within the entity, drag it a little in the entity box itself.)
  3. Release your mouse button and CTRL.

B. In the Entity Properties form | Attributes tab: CTRL + Drag&Drop techniques

Use:

  • In the Entity Properties form, you can copy attributes within an entity and between entities of the same model or a different model.
  • From the Entity Properties form and Workspace, and vice versa
  • Between the Entity Properties form and Model Explorer
  • Multiple selection is possible here - use SHIFT or CTRL keys

Example:

  1. Open the Customer Properties form of the Customer entity and the Employee Properties form of the Employee entity.
  2. Click the Attributes tabs in both forms.
  3. Press CTRL and hold the key down.
  4. Click the Name attribute in the Customer Properties form and drag it to the Employee Properties form | Attributes tab.
  5. Release your mouse button and CTRL.

C. In Model Explorer

Use: You can make copies of attributes:

  • In Model Explorer itself
  • From Model Explorer to a Workspace and vice versa
  • Between Model Explorer and the Entity Properties form | Attributes tab
  • Between two Model Explorers of two different models (see the following examples)
  • Multiple selection is possible here - use SHIFT or CTRL keys

Example: Making a copy of attributes from Model Explorer to a WS.

  1. Unfold the Entities folder | 'EntityName' | Attributes tab in Model Explorer tree.
  2. Make selection of attributes.
  3. Press CTRL, hold it down.
  4. Click any selected attribute and drag the attribute to the appropriate entity box on the Workspace.
  5. Release the mouse button and CTRL.

Note:

  • An attribute is copied with all its properties.
  • It's possible to copy objects between models of a different database. However, some specific object properties cannot be copied - properties that are in the source model but do not exist in target model. E.g. Copy of entity from Microsoft SQL 2005 to MySQL 5.1. - Entity A has Partition Schema, Entity B has Fulltext Catalog. In these cases, the entities will not be copied to MySQL model.
Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen