Skip to content

Overview Generic Data Access Model

In this section we explain what a generic data access model is and why you need it. You will find an overview of the steps you need to follow to create a generic data access model.

What is a generic data access model?

The generic data access model (GDAL model) represents the generic data access layer (GDAL). The generic data access layer provides different views with which you can access the data in the central fact persistency layer (CFPL). It lays the foundation for data consumption through different generated views on the data.

Basically, it reconstructs the logical validation model but with the logical primary and foreign keys replaced by the surrogate keys from the central facts model. The logical primary keys from the logical validation model will become alternate keys in the generic data access model. The generic data access model is physically implemented in the database as a set of generated views, stored procedures and table-valued functions that handles both query access (read) as transactional (write) processes.

Ideally, the GDAL model should be a 100% generation artifact following from the central facts model. It is not allowed to add custom entities or attributes to the generic data access model. Although it is allowed to rename entities and attributes, this is not recommended.

Tip

If you want to add custom logic or derivations to the generic data access model, use a separate view layer on top of the generic data access model. This could be a separate physical model, or a SQL script that is added to the model deployment.

How to use the generic data access model?

Two scenarios can be distinguished for loading data into the generic data access layer:

  1. The batch load scenario
  2. The data is delivered through a batch process
  3. The generic access model represents a read-only generic data access layer. In this case there will only be read mappings between the central facts model and the generic access model.
  4. The CRUD scenario
  5. The data is written directly to the GDAL from an OLTP or CRUD application.
  6. The generic access model represents a read/write generic data access layer. In this case there will be read/write mappings from a GDAL entity to the corresponding CFPL entities. Write triggers and CRUD stored procedures will be generated in the database.

Click here to read how to adjust the GDAL model settings for a batch or a CRUD scenario.

Generate a new generic data access model

If a generic data access model does not yet exist or it has been fully generated, you can generate a new generic access model from the central facts model, as explained here.

Update an existing generic data access model

In most cases, the generic access model already exists and has some manual adjustments. If you have updated the central facts model, you should also update the generic access model. It is explained how to change an existing general access model here: change generic data access model

Generic data access perspectives

The generic data access model generates several views, functions, stored procedures and triggers in the database. You can get an overview of these objects here: data access perspectives

What's next?

After you've created and checked the generic data access model: