Template Language and Macro Reference
This section contains the following topics
Introduction
Template Language (TLX) is the template or macro language publicly exposed with erwin Data Modeler. It has been present in the product since erwin Data Modeler r7.0.
TLX is employed in a number of places in the product using expansion. This includes templates used for forward engineering, metamodel dumps, and Model Explorer and Complete Compare object naming.
Metadata Names
A number of macros make use of class names�the names of metadata objects. The section below describes a few notes on the use of class names; the full listing of all object classes and property classes is located in the document erwin Metamodel Reference bookshelf.
- Class names are always case-sensitive.
- Some object types represent an object in both the logical and the physical model. This is legacy behavior when erwin Data Modeler had only logical/physical models. For these types of objects, display names seen in erwin Data Modeler's user interface change based upon whether you are looking at the logical or physical side. However, class names do not change in a similar manner. Therefore, an entity in the logical model and a table in the physical model both have a class name of Entity.
The following list describes the class names that are included in this category:- Attribute
- Default
- Domain
- Entity
- Key_Group
- Relationship
- Validation_Rule
- Local User-Defined Properties (UDPs) have three part class names. All UDPs available in the current release are classified as Local UDPs. erwin Data Modeler allows a given UDP name to be used on a variety of object types, and in both the logical and physical model, with differing data types, defaults, descriptions, and so on. For example, the UDP named "Color" might be a color name on the logical side of an entity, a red-green-blue integer on the physical side, and a Boolean value indicating if a view should be colored on reports. To enable erwin Data Modeler to understand exactly what is being referenced, the actual class name is comprised of: <object type>.<model side>.<name>.
For example, the three "Color" values mentioned would be: Entity.Logical.Color, Entity.Physical.Color and View.Physical.Color. Future releases of erwin Data Modeler may also support Global User-Defined Properties where the property has a single data type, default, and so on, no matter where it occurs. Those UDPs will follow the normal naming convention of built-in properties, having a single-part name.
Copyright © 2023 Quest Software, Inc. |