Skip navigation links

Package com.orchestranetworks.addon.dml

Classes and interfaces to call the Dynamic data modeling service.

See: Description

Package com.orchestranetworks.addon.dml Description

Classes and interfaces to call the Dynamic data modeling service.


Example of executing data model generation.

First, you need to define the source used for data model generation. You can use a file or a record in the Dynamic data modeling dataset's Data model table. The following describes how to define each source type:


Then, you need to define the data model specification, which contains the configurations used for generating an XML Schema Document (XSD) file.

                Repository repository;
                Session session;
                
                DataModelSpec dataModelSpec = new DataModelSpec(repository, session);
                dataModelSpec.setDataModelSource(dataModelSource);

During data model generation, you can save data model configurations to the Dynamic data modeling dataset using the options below:


After that, you can execute the service:

        DataModelResult dataModelResult = XSDGeneratorFactory.getXSDGenerator().generate(dataModelSpec);

The final result is an XML Schema Document (XSD), which can be accessed as below:

        File datamodelFile=dataModelResult.getExportedFile();

Sample for creating a data model source with the specific data model name declared in the Data model table in the Dynamic data modeling dataset.

To create an instance of SourcePrimaryKey with the specific data model name declared in the Data model table, you need to implement the following:

        Repository repository;
        String dataModelName;
        
        SourcePrimaryKey dataModelSource = SourcePrimaryKeyFactory.getInstance().getSourcePrimarykey(repository, dataModelName);
Skip navigation links

EBX® Add-ons Version 5.3.0.

Copyright TIBCO Software Inc. 2001-2022. All rights reserved.
All third party product and company names and third party marks mentioned in this document are the property of their respective owners and are mentioned for identification.