Skip to content

Instantly share code, notes, and snippets.

@JRuumis
Created October 9, 2016 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JRuumis/3cd8e89be8f682a8ab36f6c9aa411b3b to your computer and use it in GitHub Desktop.
Save JRuumis/3cd8e89be8f682a8ab36f6c9aa411b3b to your computer and use it in GitHub Desktop.
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