Search in sources :

Example 1 with RDBPrintJob

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);
}
Also used : RDBPrintJob(org.openforis.collect.relational.print.RDBPrintJob) RecordFilter(org.openforis.collect.model.RecordFilter)

Aggregations

RecordFilter (org.openforis.collect.model.RecordFilter)1 RDBPrintJob (org.openforis.collect.relational.print.RDBPrintJob)1