Setting valid end types

The entities allowed at each end of a link can be restricted to one or more entity types. This helps users to enter data consistently, and improves the effectiveness of searches and data analysis.

Restricting the end types that are valid for each link type forces users to enter data consistently. This can bring many advantages for users when searching and analyzing the data. For example, users can:

  • Set the end types of the links they want to browse.

  • Build queries using links with specific combinations of end type.

  • Report on links with specific combinations of end type.

  • Import and export link data with selected end types.

Some examples of links with restricted end types, in the example User Guide Database, are:

  • A Relationship link type may have a Person entity type for each end of the link.

  • An Owner link type may have Telephone and Vehicle entity types as possible End 1 types and Organization and Person entity types as possible End 2 types.

  • A Location link type may have only one entity type at one end (Address) but several possible entity types at the other end, such as Organization, Person, Vehicle.

There are two ways of reviewing and setting the entities used as end types on links:

  • For single link types, use the Link Type dialog.

  • For all link types in the current database, use the Valid End Types dialog (described below). This also enables you to find out how link end types are used in the database and to apply this usage to the database design. If you change the valid end types for a database that already contains data, you can identify which link types have invalid end types by using an Exceptions report. See below Viewing exceptions and correcting links with invalid end types.

Defining valid end types

In the Valid End Types dialog, the End 1 Types and End 2 Types lists show all the entity types defined in the database.

Note: Although these are called End 1 and End 2 this does not imply direction.

There are two ways of defining valid end types. You can:

  • Click Usage to display the Used End Types dialog, review how the end types are used in the database, and then click Replace to replace the end types in the database design with the end types as used in the database. You can then adjust the end type combinations further if required.

  • In the Valid End Types dialog, turn on or off the checkboxes against the entity types that you want to include as valid or exclude as invalid.

When you have set the end types that you require at each end of the link type, click Apply to save the changes, or click Restore to cancel.

Restoring or applying changes

You can cancel the changes you have made to a link type by clicking Restore. You will lose any changes that you made since you last clicked Apply.

After you click Apply, you cannot restore the original end types.