use of org.openforis.collect.relational.print.RDBPrintJob in project collect by openforis.
the class SurveyExportParametersVM method startRDBSurveyExportJob.
private void startRDBSurveyExportJob(final CollectSurvey survey, final SurveyExportParametersFormObject parameters) {
rdbExportJob = new RDBPrintJob();
rdbExportJob.setSurvey(survey);
rdbExportJob.setTargetSchemaName(survey.getName());
rdbExportJob.setRecordManager(recordManager);
RecordFilter recordFilter = new RecordFilter(survey);
rdbExportJob.setRecordFilter(recordFilter);
rdbExportJob.setIncludeData(parameters.isIncludeData());
rdbExportJob.setDialect(parameters.getRdbDialectEnum());
rdbExportJob.setDateTimeFormat(parameters.getRdbDateTimeFormat());
rdbExportJob.setTargetSchemaName(parameters.getRdbTargetSchemaName());
jobManager.start(rdbExportJob, String.valueOf(survey.getId()));
openSurveyExportStatusPopUp(survey.getName(), rdbExportJob);
}
Aggregations