Exporting and importing business objects based on metadata
First Claim
Patent Images
1. A method comprising:
- detecting an indication to create a metadata file for a business object in a first database, wherein the metadata file indicates the hierarchical structure of interrelated data object types that constitute the business object and indicates relationships among the data object types;
determining a root data object type in a tree data structure representing the business object and a maximum depth, wherein the maximum depth represents a maximum level of the hierarchical structure for which metadata should be collected;
traversing each data object type of the tree data structure beginning at the root data object type;
locating each data object type in the first database;
determining metadata of each data object type from the first database;
recording metadata of each data object type to the metadata file;
detecting a request to export the business object from the first database;
determining the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export;
creating an export file;
writing extensions to the export file, wherein extensions are scripts that customize business object instances during import;
determining a first business object instance based on the filter;
determining a first parent data object instance corresponding to the first business object instance based on the metadata;
determining attributes of the first parent data object instance;
writing the attributes and metadata of the first parent data object instance to the export file;
determining a plurality of children data object instances based on the metadata file;
determining attributes of the each of the plurality of children data object instances; and
writing the attributes and metadata of each of the plurality of children data object instances to the export file.
1 Assignment
0 Petitions
Accused Products
Abstract
A metadata file can be automatically generated based on a database instance and a user defined maximum depth. The relationships between data objects that constitute a business object may be visualized in a tree. The maximum depth limits the number of levels in the tree to traverse. A metadata file describes the structure of a business object and relationships between sets of data objects that constitute the business object. The structure defined in the metadata file can be used to export instances of the business object from the database. The exported business object instances can be imported to another database.
20 Citations
18 Claims
-
1. A method comprising:
-
detecting an indication to create a metadata file for a business object in a first database, wherein the metadata file indicates the hierarchical structure of interrelated data object types that constitute the business object and indicates relationships among the data object types; determining a root data object type in a tree data structure representing the business object and a maximum depth, wherein the maximum depth represents a maximum level of the hierarchical structure for which metadata should be collected; traversing each data object type of the tree data structure beginning at the root data object type; locating each data object type in the first database; determining metadata of each data object type from the first database; recording metadata of each data object type to the metadata file; detecting a request to export the business object from the first database; determining the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export; creating an export file; writing extensions to the export file, wherein extensions are scripts that customize business object instances during import; determining a first business object instance based on the filter; determining a first parent data object instance corresponding to the first business object instance based on the metadata; determining attributes of the first parent data object instance; writing the attributes and metadata of the first parent data object instance to the export file; determining a plurality of children data object instances based on the metadata file; determining attributes of the each of the plurality of children data object instances; and writing the attributes and metadata of each of the plurality of children data object instances to the export file. - View Dependent Claims (2)
-
-
3. A method comprising:
-
creating a metadata file for a business object in a first database wherein the metadata file indicates the hierarchical structure of interrelated data object types that constitute the business object and indicates relationships among the data object types; detecting a request to export the business object from the first database; determining the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export; creating an export file; writing extensions to the export file, wherein extensions are scripts that customize business object instances during import; determining a first business object instance based on the filter; determining a first parent data object instance corresponding to the first business object instance based on the metadata; determining attributes of the first parent data object instance; writing the attributes and metadata of the first parent data object instance to the export file; determining a plurality of children data object instances based on the metadata file; determining attributes of the each of the plurality of children data object instances; and writing the attributes and metadata of each of the plurality of children data object instances to the export file. - View Dependent Claims (4, 5, 6, 7)
-
-
8. A computer program product comprising a tangible computer storage medium having computer usable code stored thereon, wherein the computer usable code, when executed on a computing device, causes the computing device to:
-
detect an indication to create a metadata file for a business object in a first database, wherein the metadata file indicates the hierarchical structure of interrelated data object types that constitute the business object and indicates relationships among the data object types; determine a root data object type in a tree data structure representing the business object and a maximum depth, wherein the maximum depth represents a maximum level of the hierarchical structure for which metadata should be collected; traverse each data object type of the tree data structure beginning at the root data object type; locate each data object type in the first database; determine metadata of each data object type from the first database; record metadata of each data object type to the metadata file; detect a request to export the business object from the first database; determine the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export; create an export file; write extensions to the export file, wherein extensions are scripts that customize business object instances during import; determine a first business object instance based on the filter; determine a first parent data object instance corresponding to the first business object instance based on the metadata; determine attributes of the first parent data object instance; write the attributes and metadata of the first parent data object instance to the export file; determine a plurality of children data object instances based on the metadata file; determine attributes of the each of the plurality of children data object instances; and write the attributes and metadata of each of the plurality of children data object instances to the export file. - View Dependent Claims (9)
-
-
10. A computer program product comprising a tangible computer storage medium having computer usable code stored thereon, wherein the computer usable code, when executed on a computing device, causes the computing device to:
-
create a metadata file for a business object in a first database wherein the metadata file indicates the hierarchical structure of interrelated data object types that constitute the business object and indicates relationships among the data object type; detect a request to export the business object from the first database; determine the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export; create an export file; write extensions to the export file, wherein extensions are scripts that customize business object instances during import; determine a first business object instance based on the filter; determine a first parent data object instance corresponding to the first business object instance based on the metadata; determine attributes of the first parent data object instance; write the attributes and metadata of the first parent data object instance to the export file; determine a plurality of children data object instances based on the metadata file; determine attributes of the each of the plurality of children data object instances; and write the attributes and metadata of each of the plurality of children data object instances to the export file. - View Dependent Claims (11, 12, 13, 14)
-
-
15. An apparatus comprising:
-
a processing unit; and a memory coupled to the processing unit, wherein the memory comprises instructions which, when executed by the processing unit, cause the processing unit to; detect an indication to create a metadata file for a business object in a first database, wherein the metadata file describes the hierarchical structure of interrelated data object types that constitute the business object and relationships between the data object types; determine a root data object type of the business object and a maximum depth, wherein the maximum depth represents a maximum level of the hierarchical structure for which metadata should be collected; collect metadata of the root data object type; write the metadata of the root data object type to the metadata file; determine that the maximum depth has not been reached; determine a plurality of children data object types; collect metadata of the children data object types; write the metadata of the children data object types to the metadata file; detect a request to export the business object from the first database; determine the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export; create an export file; write extensions to the export file, wherein extensions are scripts that customize business object instances during import; determine a first business object instance based on the filter; determine a first parent data object instance corresponding to the first business object instance based on the metadata; determine attributes of the first parent data object instance; write the attributes and metadata of the first parent data object instance to the export file; determine a plurality of children data object instances based on the metadata file; determine attributes of the each of the plurality of children data object instances; and write the attributes and metadata of each of the plurality of children data object instances to the export file.
-
-
16. An apparatus comprising:
-
a processing unit; and a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to; create a metadata file for a business object in a first database wherein the metadata file indicates the hierarchical structure of interrelated data object types that constitute the business object and indicates relationships among the data object types; detect a request to export the business object from the first database; determine the metadata file for the business object and a filter, wherein the filter indicates which business object instances of the business object to export; create an export file; write extensions to the export file, wherein extensions are scripts that customize business object instances during import; determine a first business object instance based on the filter; determine a first parent data object instance corresponding to the first business object instance based on the metadata; determine attributes of the first parent data object instance; write the attributes and metadata of the first parent data object instance to the export file; determine a plurality of children data object instances based on the metadata file; determine attributes of the each of the plurality of children data object instances; and write the attributes and metadata of each of the plurality of children data object instances to the export file. - View Dependent Claims (17, 18)
-
Specification