Created
October 9, 2016 09:51
-
-
Save JRuumis/3cd8e89be8f682a8ab36f6c9aa411b3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rpd.common | |
import rpd.extract._ | |
import rpd.html.BusinessModelListHtml | |
import rpd.load._ | |
/** | |
* Created by janis on 01/10/2016. | |
*/ | |
object NewTest extends App { | |
val rpdXmlRoot = """C:\Developer\Project Source Data\AnalyserXML\BAE NR RPD\""" | |
val myDataStore = DataStore( | |
// Business Layer | |
businessModels = BusinessModelsExtract(rpdXmlRoot).targets, | |
logicalTables = LogicalTablesExtract(rpdXmlRoot).targets, | |
dimensions = DimensionsExtract(rpdXmlRoot).targets, | |
logicalTableSources = LogicalTableSourcesExtract(rpdXmlRoot).targets, | |
logicalJoins = LogicalJoinsExtract(rpdXmlRoot).targets, | |
logicalTableColumns = LogicalTableColumnsExtract(rpdXmlRoot).targets, | |
logicalTableSourceColumns = LogicalTableSourceColumnsExtract(rpdXmlRoot).targets, | |
dimensionLevels = DimensionLevelsExtract(rpdXmlRoot).targets, | |
//Physical Layer | |
databases = DatabasesExtract(rpdXmlRoot).targets, | |
schemas = SchemasExtract(rpdXmlRoot).targets, | |
physicalTables = PhysicalTablesExtract(rpdXmlRoot).targets, | |
physicalColumns = PhysicalColumnsExtract(rpdXmlRoot).targets, | |
// Presentation Layer | |
presentationCatalogs = PresentationCatalogsExtract(rpdXmlRoot).targets, | |
presentationTables = PresentationTablesExtract(rpdXmlRoot).targets, | |
presentationTableColumns = PresentationTableColumnsExtract(rpdXmlRoot).targets | |
) | |
myDataStore.setDataStoreForAllEntities | |
BusinessModelListHtml(myDataStore).writeHtml | |
println("done") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment