Meta model driven data base replication and synchronization
First Claim
1. A method performed by an apparatus, connected to a source data base and a target data base, said apparatus comprising one or more processors and a memory device having stored computer readable instructions executable by the one or more processors for executing an export process for an automated meta model driven export of entity parts from the source data base, wherein the meta model specifies an abstract model of the source data base and comprises a description of an entity part and/or a reference relationship between entity parts being resolvable from a referencing entity part to a referenced entity part, the method comprising:
- identifying a set of entity parts being identifiable outside the source data base by a public key, an internal key, or a mixture of a public key and an internal key as first level entity parts;
supplementing the identified set of first level entity parts by a set of second level entity parts being referenced by the first level entity parts according to at least one reference relationship described in the meta model;
initializing an empty repository as a staging memory for the export process;
retrieving the identified set of first level entity parts in sequence from the source data base and adding every retrieved first level entity part to the repository;
linking every added first level entity part to its corresponding meta model description;
supplementing the repository by;
scanning the first level entity parts added to the repository;
resolving, for every scanned first level entity part, its reference relationships in a recursive manner to identify related child entity parts;
evaluating, for every child entity part, whether it is already added to the repository;
adding every child entity part to the repository when it is not yet added; and
dumping content of the repository into an export file.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to a method of executing an export process for an automated meta model driven export of entity parts from a source data base (10), wherein the meta model specifies an abstract model of the source data base (10) and comprises a description of an entity part and/or a reference relationship between entity parts being resolvable from a referencing entity part to a referenced entity part. The method comprising the steps identifying (S14) a set of entity parts being identifiable outside the source data base (10) by a public key, an internal key, or a mixture of a public key and an internal key as first level entity parts, supplementing (S16) the set of first level entity parts by a set of second level entity parts being referenced by the first level parts according to at least one reference relationship described in the meta model, and writing (S18) export data for the set of first level parts and the set of second level parts into an export file. The present invention also relates to a method of executing an import process for an automated meta model driven import of entity parts from a source data base (10) to a target data base (12).
11 Citations
23 Claims
-
1. A method performed by an apparatus, connected to a source data base and a target data base, said apparatus comprising one or more processors and a memory device having stored computer readable instructions executable by the one or more processors for executing an export process for an automated meta model driven export of entity parts from the source data base, wherein the meta model specifies an abstract model of the source data base and comprises a description of an entity part and/or a reference relationship between entity parts being resolvable from a referencing entity part to a referenced entity part, the method comprising:
-
identifying a set of entity parts being identifiable outside the source data base by a public key, an internal key, or a mixture of a public key and an internal key as first level entity parts; supplementing the identified set of first level entity parts by a set of second level entity parts being referenced by the first level entity parts according to at least one reference relationship described in the meta model; initializing an empty repository as a staging memory for the export process; retrieving the identified set of first level entity parts in sequence from the source data base and adding every retrieved first level entity part to the repository; linking every added first level entity part to its corresponding meta model description; supplementing the repository by; scanning the first level entity parts added to the repository; resolving, for every scanned first level entity part, its reference relationships in a recursive manner to identify related child entity parts; evaluating, for every child entity part, whether it is already added to the repository; adding every child entity part to the repository when it is not yet added; and dumping content of the repository into an export file. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method performed by an apparatus, connected to a source data base and a target data base, said apparatus comprising one or more processors and a memory device having stored computer readable instructions executable by the one or more processors for executing an import process for an automated meta model driven import of entity parts from the source data base to the target data base, wherein the automated meta model specifies an abstract model of the source data base or the target data base and comprises at least a description of an entity part and/or a private child reference being resolvable from a parent entity part of the source data base or the target data base which is identifiable outside the source data base or the target data base by a public key, wherein the resolution is to at least one referenced entity part of the source data base or the target data base and is identifiable only internally in the source data base or the target data base, and wherein the private child reference is used to override a pre-existing aggregation of entity parts in the target data base being referenced from an entity part of the target data base having the same public key as the parent entity part in the source data base, the method comprising:
-
parsing an import file to build an initial graph of entity parts according to the meta model in a repository as staging memory for data import into the target data base; transforming the initial graph in the repository into an import graph of entity parts, said transforming comprising; identifying a next entity part in the initial graph being identifiable outside the source data base by a public key as next first level source entity part; searching the target data base for an entity part which has a public key corresponding to the public key of the next first level source entity part as next first level target entity part; deleting entity parts being referenced by the next first level target entity part in the target data base when the referenced entity parts are identifiable internally in the target data base and a private child reference of the meta model indicates that such entity parts are to be deleted in the target data base prior to data import; completing the next first level target entity part and its referenced entity parts with data from the target data base, said completing comprising; resolving public references of the next first level target entity part from the repository or from the target data base; resolving 1;
1 references of the next first level target entity part;proceeding recursively with the resolution of public references and 1;
1 references from the next first level target entity part to its referenced entity parts;propagating references being identifiable internally in the target data base and corresponding to transient references parsed from the import file from the target data base into the import graph; creating an import sequence for entity parts in the import graph in accordance with types of references according to a rule that child entity parts follow parent entity parts; reordering the import sequence such that the entity parts which are referenced are listed prior to entity parts referencing entity parts; and updating the target data base on the basis of the import graph of entity parts. - View Dependent Claims (9, 10, 11, 12)
-
-
13. An apparatus connected to a source data base and a target data base, said apparatus comprising one or more processors and a memory device having stored computer readable instructions executable by the one or more processors for executing an export process according to an automated meta model driven export of entity parts from the source data base, wherein said one or more processors are configured to:
-
manage a meta model specifying an abstract model of the source data base and comprising a description of an entity part and/or a reference relationship between entity parts being resolvable from a referencing entity part to a referenced entity part; identify a set of entity parts being identifiable outside the source data base by a public key, an internal key, or a mixed public and internal key as first level entity parts; supplement the identified set of first level entity parts by a set of second level entity parts being referenced by the first level entity parts according to at least one reference relationship described in the meta model; initialize an empty repository as a staging memory for the export process; retrieve the identified set of first level entity parts in sequence from the source data base; add each of the retrieved first level entity parts to the repository; link the each added first level entity parts to its corresponding meta model description; supplement the repository memory with export data; scan the first level entity parts added to the repository memory; resolve, for every scanned first level entity part, its reference relationships in a recursive manner to identify related child entity parts; evaluate, for every child entity part, whether it is already added to the repository memory and to add every child entity part to the repository memory when it is not added; and dump content of the repository memory into an export file. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. An apparatus connected to a source data base and a target data base, said apparatus comprising one or more processors and a memory device having stored computer readable instructions executable by the one or more processors for executing an import process for an automated meta model driven import of entity parts from the source data base to the target data base, wherein the automated meta model specifies an abstract model of the source data base or the target data base and comprises a description of an entity part and/or a private child reference being resolvable from a parent entity part of the source data base or the target data base which is identifiable outside the source data base or the target data base by a public key, wherein the resolution is to at least one referenced entity part of the source data base or the target data base and is identifiable internally in the source data base or the target data base, and wherein the private child reference is used to override a pre-existing aggregation of entity parts in the target data base being referenced from an entity part of the target data base having the same public key as the parent entity part in the source data base, wherein the one or more processors are configured to:
-
parse an import file to build an initial graph of entity parts according to the meta model in a repository as staging memory for data import into the target data base; transform the initial graph in the repository into an import graph of entity parts by performing the steps of; identifying a next entity part in the initial graph being identifiable outside the source data base by a public key as next first level source entity part; searching the target data base for an entity part which has a public key corresponding to the public key of the next first level source entity part as next first level target entity part; deleting entity parts being referenced by the next first level target entity part in the target data base when the referenced entity parts are identifiable internally in the target data base and a private child reference of the meta model indicates that such entity parts are to be deleted in the target data base prior to data import; completing the next first level target entity part and its referenced entity parts with data from the target data base by performing the steps of; resolving public references of the next first level target entity part from the repository or from the target data base; resolving 1;
1 references of the next first level target entity part;proceeding recursively with the resolution of public references and 1;
1 references from the next first level target entity part to its referenced entity parts;propagating references being identifiable internally in the target data base and corresponding to transient references parsed from the import file from the target data base into the import graph; creating an import sequence for entity parts in the import graph in accordance with types of references according to a rule that child entity parts follow parent entity parts; reordering the import sequence such that the entity parts which are referenced are listed prior to entity parts referencing entity parts; and update the target data base on the basis of the import graph of entity parts. - View Dependent Claims (20, 21, 22, 23)
-
Specification