Added snapshot and historic year field

This commit is contained in:
Fabio Sinibaldi 2020-01-28 17:08:34 +01:00
parent d3cfc4cd03
commit e86bb3296a
1 changed files with 16 additions and 5 deletions

View File

@ -13,7 +13,6 @@ public class SchemaDefinition {
private static final String ASSOCIATION="association";
private static final String BATCH="batch";
private static final String COMPANY="company";
private static final String ROUTINE_ID="routine";
private static final String AREA="area";
private static final String SPECIES="species";
private static final String PERIOD="period";
@ -24,7 +23,10 @@ public class SchemaDefinition {
private static final String REPORT_FIELDS="report_fields";
private static final String REPORT_LABELS="report_labels";
//SYSTEM FIELDS
private static final String ROUTINE_ID="routine";
private static final String SNAPSHOT="snapshot";
private static final String HISTORIC="history_year";
public String getRelatedDescription() {
@ -58,7 +60,12 @@ public class SchemaDefinition {
public String getRoutineIdFieldName() {
return routineIdFieldName;
}
public String getHistoricYearFieldName() {
return historicYearFieldName;
}
public String getSnapshotFieldName() {
return snapshotFieldName;
}
public String getAreaField() {
return areaField;
@ -91,13 +98,14 @@ public class SchemaDefinition {
this.associationUUIDField = props.getProperty(ASSOCIATION);
this.batchUUIDField = props.getProperty(BATCH);
this.companyUUIDField = props.getProperty(COMPANY);
this.routineIdFieldName=props.getProperty(ROUTINE_ID);
this.areaField=props.getProperty(AREA);
this.speciesField=props.getProperty(SPECIES);
this.quarterField=props.getProperty(QUARTER);
this.periodField=props.getProperty(PERIOD);
this.snapshotFieldName=props.getProperty(SNAPSHOT);
this.historicYearFieldName=props.getProperty(HISTORIC);
this.routineIdFieldName=props.getProperty(ROUTINE_ID);
this.analysisEnabled=Boolean.parseBoolean(props.getProperty(ENABLE_ANALYSIS, "false"));
@ -126,6 +134,9 @@ public class SchemaDefinition {
private Boolean analysisEnabled;
private String snapshotFieldName;
private String historicYearFieldName;
private String routineIdFieldName;
private ArrayList<String> toReportFields=new ArrayList<>();