Types

From Pengower
Jump to: navigation, search

The Post-Relational Data Model that Pengower employ is based on a simple construct of data Types and the relationships between those types. In the model Types define the makeup and structure of particular data objects within the data model, that is, a Type represents a description of a “type of” data object. For example, a data Type “Person” could be created to define data objects, which are made up of a persons name, address and telephone number. In this example, the data model would have many data objects (each containing data about a different person) but each data object is of Type “Person.” A data object is also sometimes referred to as an Instance of a data Type.

A relationship between data Types describes how the data contained in one Type, or its objects, relates (or is associated with) to objects of another Type. For example, the Type “Person” has objects which “belongs to” Type “Company” objects and in reverse a “Companyt” object “Contains” a “Person” object. Furthermore in defining the relationship between the Types it may be important to specify a Person object can only belong to one Company object but that a Company object can contain many People. This issue of how many of one object can belong to another is called cardinality and explained in more detail in the Section of relationship definition.

Type.jpg

Title

The name of the Type you wish to create

Description

A description of the Type you wish to create, used to store design notes.

Save Action

Ordinarily when an object of this Type is saved a standard save action is performed. However the Save Acton dialogue allows you to select another action, which is triggered by the standard save action is executed.

Icon

A graphical representation of the Type when viewed in the application.

Indexes

The build environment enables you to edit a Type and index particular Types so they appear in particular places within an application. Indexes will allow us to search the database quickly by the fields we select and determine headings which are displayed when the data type is listed, and also as a link.

Add Section button

Enables you to add a section or a tab under this Type.

Section Listing

All created section under this Type.

Creating and Editing Types

You can visit our tutorial on How to create Types to know more on how you can create and edit Types.

Application

You can see how Types are created and used in this video below:

See Also

How to create Types

Elements

How to create Elements

Sections

How to create Sections

Indexes