Skip to content

Data Definition Mapping Register

The Data Definition Mapping Register describes the relationship/ mappings between the architecture layers, entity classes and attribute classes, and provides the instantiated mapping of those three concepts (interfaces, entities and attributes).

Access to metadata

To retrieve the current state of each element of the Data Definition Mapping Register, i.e., all the metadata related to that element, you can use the i-refactory REST API or the views available in the Data Definition Mapping Register.

Applicable Architecture Layer Mapping

View: [acm_datadefmap].[applicable_architecture_layer_mapping]

  • id: identifier of the mapping
  • architecture_layer_id_source: the identifier of [acm_datadef].[architecture_layer] source
  • architecture_layer_id_target: the identifier of [acm_datadef].[architecture_layer] target

Applicable Entity Class Mapping

View: [acm_datadefmap].[applicable_entity_class_mapping]

  • id: identifier of the mapping
  • applicable_architecture_layer_mapping_id: the identifier of the [acm_datadefmap].[applicable_architecture_layer_mapping]
  • applicable_entity_class_id_source: the identifier of [acm_datadef].[applicable_entity_class] source
  • applicable_entity_class_id_target: the identifier of [acm_datadef].[applicable_entity_class] target

Applicable Attribute Class Mapping

View: [acm_datadefmap].[attribute_class_mapping]

  • id: identifier of the mapping
  • applicable_entity_class_mapping_id: the identifier of [acm_datadefmap].[applicable_entity_class_mapping]
  • applicable_attribute_class_id_source: the identifier of [acm_datadef].[applicable_attribute_class] source
  • applicable_attribute_class_id_target: the identifier of [acm_datadef].[applicable_attribute_class] target

Interface Mapping

View: [acm_datadefmap].[interface_mapping]

  • id: identifier of the mapping
  • interface_id_source: the identifier of [acm_datadef].[interface] source
  • interface_id_target: the identifier of [acm_datadef].[interface] target
  • applicable_architecture_layer_mapping_id: the identifier of [acm_datadefmap].[applicable_architecture_layer_mapping]
  • owner_interface_id: the identifier of [acm_datadef].[interface]

Entity Mapping

View: [acm_datadefmap].[entity_mapping]

  • id: identifier of the mapping
  • interface_mapping_id: the identifier of [acm_datadefmap].[interface_mapping]
  • entity_id_source: the identifier of [acm_datadef].[entity] source
  • entity_id_target: the identifier of [acm_datadef].[entity] target
  • applicable_entity_class_mapping_id: the identifier of [acm_datadefmap].[applicable_entity_class_mapping]

Attribute Mapping

View: [acm_datadefmap].[attribute_mapping]

  • id: identifier of the mapping
  • entity_mapping_id: the identifier of [acm_datadefmap].[entity_mapping]
  • attribute_id_source: the identifier of [acm_datadef].[attribute] source
  • attribute_id_target: the identifier of [acm_datadef].[attribute] target
  • applicable_attribute_class_mapping_id: the identifier of [acm_datadefmap].[applicable_attribute_class_mapping]
  • ordinal_nbr: the sequence number of the attribute
  • mapping_type_code: type of the mapping

Example - How to query the Data Definition Mapping Register using a view

-- Select details of entity mappings
SELECT  entity_mapping.id
      , entity_mapping.interface_mapping_id
      , interface.name
      , entity_1.name
      , entity_2.name
      , entity_mapping.entity_id_source
      , entity_mapping.entity_id_target
      , entity_mapping.applicable_entity_class_mapping_id
      , entity_mapping.acm_exists_ind
      , entity_mapping.acm_last_created_dt
      , entity_mapping.acm_start_dt
      , entity_mapping.acm_end_dt
      , entity_mapping.acm_record_ind
      , entity_mapping.acm_modifier_id
      , entity_mapping.acm_entity_id
  FROM ACME.acm_datadefmap.entity_mapping entity_mapping 
       JOIN ACME.acm_datadef.interface interface 
       ON entity_mapping.interface_mapping_id = interface.id
       JOIN ACME.acm_datadef.entity entity_1 
       ON entity_mapping.entity_id_source = entity_1.id
       JOIN ACME.acm_datadef.entity entity_2 
       ON entity_mapping.entity_id_target = entity_2.id
;