This class can be launched to populate your database
Argument required :
the workspace folder where the "data-model" folder will be detected
the database name that must be declared in /data-model/CONTEXT/datasource-context.xml
Optional argument : if you want to restrict the tables to populate
Depending on the meta data that is going to be read, the main method will :
load the project representation
read the scripts/csv files in /data-model/BACKUP/ and populate the tables with this data
the population of the tables uses generated stored procedures (insert by code, update by code)
two kinds of file can be used to fetch data
a $ separated file (.txt)
a xml file representing a SourceAndScript
where you mention a datasource and a script to read (xsd is given in /data-model/BACKUP/backup-1.0.xsd)
in a xml file, you can mention every datasource that is available in the InputDataSourceProvider
inputSourceProvider that is declared in your data-model/CONTEXT/datasource-context.xml file