Model driven development of EGL code

The EGL model driven development allows you to create EGL code from either a unified modeling language (UML) model or from an existing database. This allows you to create EGL database access code quickly and efficiently, allowing more time to be spent developing the business portion of your application. The model to EGL transformation reduces coding problems related to data access code. The generated code can be used by multiple applications.

After the code is generated, you can modify and update it to meet your business needs.

Transform from a database schema

EGL code can be transformed from the database schema after a connection to an existing database is established. The EGL Data Access Application wizard provides a model driven transformation from a database connection. The transformation produces records and EGL services or libraries that provide an EGL data access layer over a relational database. Additionally, an EGL JSF web application is produced that uses the data access layer created.

Transform from a UML model

The EGL TPM editor provides a model driven transformation from a UML model. A UML model is a graphical representation that defines the structure and behavior of a system. It consists of diagrams that show the different entities (such as people, things, and data) and how they relate to each other. Transformation parameters allow you to indicate the type of EGL output that is generated.

You can import an existing UML model or create one with a UML modeling application. The model must be of file type emx or uml.

Figure 1 shows a UML model diagram for an airline reservation application. Each of the three classes is represented by a box, that contains the name of the class, class attributes, and class operations. The lines connecting the boxes define the type of association between the classes.

Figure 1. Sample UML model
Sample UML model with three classes.

The transformation produces the DDL that matches the transformed model.


Feedback