![]() |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
An ER diagram is the graphical representation of a conceptual schema in the Entity Relationship Model. |
||||||||||||||||||||||
There are two kinds of diagram: |
||||||||||||||||||||||
|
||||||||||||||||||||||
SER means Structured ER. This extension of ERM use the positions of entities in the diagram for semantic. The left entity of a relationship is a existence condition for the right entity. That means that the role to the right entity has got cardinality (1,1) and will not be displayed in the diagram. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERDiagram. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The entity node represents the occurance of an entity in an ER/SER diagram. Entities can occur in several diagrams as nodes. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERDEntity. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The relationship nodes represents the occurance of a relationship in an ER/SER diagram. Relationships can occur in several diagrams as nodes. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERDRelationship. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The entity relationship edge represents the occurrence of a role in an ER/SER diagram. Roles can occur in several diagrams as edges. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on PolyEREntRs. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Entities are concrete or abstract things for which information is to be collected. This information represents the features of the entities and is represented by attributes. Entities must be distinguishable, i.e. a single entity can be identified by specifying certain attribute values. Entities that can be described by the same attributes are combined into entity types. Individual entities are designated as entity specimens. Entities can have one of the following kinds: |
||||||||||||||||||||||
|
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERDiagram. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
In this context ERMRelationship is a collective notion for binary relationship or category. |
||||||||||||||||||||||
A relationship connects two entities. The roles hold the description of the cardinaltity. If the relationship represents an existence condition, it can be marked as hierarchical. |
||||||||||||||||||||||
Categories are used to represent superset/subset relationships. The category connects a superset entity (generalization) to subset entities (specializations). All categories are hierarchical relationships. |
||||||||||||||||||||||
The relationship can be categorized by the following kinds: |
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMRelationship. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
A role is a connection between an entity and a relationship. |
||||||||||||||||||||||
For binary relationships, the role annotation in (min,max)-notation is a precise method for describing the cardinality of relationships. (min,max)-notation means that an entity specimen must reference at least min specimens belonging to its linked entity and may reference no more than max specimens belonging to its linked entity. |
||||||||||||||||||||||
Roles of categories need no information about cardinality, because the kind of category fix that. Exactly one role must be marked out belonging to the generalization entity. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMEntRs. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Database tables describe how the entities of the data model are stored to relational databases. |
||||||||||||||||||||||
Sometimes it is important to distinguish between the following kinds: |
||||||||||||||||||||||
|
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDBTable. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
A CD database table owns at least one reference to an enity. The first one is the reference to the leading entity which contains no information about a role. Further entity references can be merged into the database table via relationships. In this case the role to that entity is stored within the entity reference. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDBEntity. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Entities which have a relationship to an entity referenced by a CD database table can be merged to this table. It depends on the cardinality of the relationship how many specimen of this entity can occur in the table. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Constraints are used to validate the elements of the entity relationship model. They can be assigned to entities or database tables. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERConstraint. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The constraint table assignment represents the assignment of a constraint to an entity or a database table. Each assignment contains the information at which time and for which operations the constraint has to be evaluated. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Enitities or database tables are collections of attributes. An attribute can be part of an entity and a C database table at the same time! |
||||||||||||||||||||||
For schema membership look at the following codes: |
||||||||||||||||||||||
|
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMAttribute. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The primary key is the unambiguous identifier for a database table. Each primary key contains at least one attribute. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMPrimKey. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Foreign keys represent the relationship between database tables. Each foreign key contains at least one attribute which is connected to a primary key attribute of a related database table. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMForKey. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
This class implements the link of an foreign key attribute to one primary key attribute. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Indices are used to find database table entries by the values of a list of attributes. An index contains at least one attribute. Indices with a maximum of one database table entries for each value are called unique. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMIndex. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Index attributes represent the connection of attributes to an index. |
||||||||||||||||||||||
| See also: | Arguments for views on ERMIndAttr. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
Entities that have a relationship to the leading entity of a database table can be merged to the table. It depends on the cardinality of the relationship how many specimen of this entity and its attributes can occur in the table. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
The table option represents options that are used for the implementation of tables in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMTabOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The attribute option represents options that are used for the implementation of attributes in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMAttrOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The primary key option represents options that are used for the implementation of primary keys in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMPrimOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The foreign key option represents options that are used for the implementation of foreign keys in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMForOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The index option represents options that are used for the implementation of indices in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMIndOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The index attribute option represents options that are used for the implementation of index attributes in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMIaOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
Attributes of an ER entity can be typified by a data element. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDataElement. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The data elements can be organized in data element tables. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDeTable. |
||||||||||||||||||||||
|
TargetSystem |
||||||||||||||||||||||
|
||||||||||||||||||||||
The target system is a programming language or a database in which the ERM/SERM is implemented. It is possible to implement the model in several target systems at the same time. The elements will be loaded from the inots.ini file. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
TSOption represents options that are used for the implementation of elements in a target system. The elements will be loaded from the inots.ini file. |
||||||||||||||||||||||
The following list shows the possible kinds of elements for which options can be defined: |
||||||||||||||||||||||
|
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Database views are used for restricted view on the database. They will be defined on database tables or other database views. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDBView. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
Database views are collections of columns. These columns will be definde as an expression using databas table attributes or other database view columns. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDBVColumn. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
A from clause of a database view shows, which database table or database view is used for view columns or where clauses. |
||||||||||||||||||||||
| See also: | ||||||||||||||||||||||
Modifying commands on ERMDBVFrom. |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
The view option represents options that are used for the implementation of database views in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMViewOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The column option represents options that are used for the implementation of database view columns in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMColOpt. |
|||||||||||||||||||||
|
|
||||||||||||||||||||||
The from option represents options that are used for the implementation of database view from clause in a target system. |
||||||||||||||||||||||
| See also: | Arguments for infos on ERMFromOpt. |
|||||||||||||||||||||