130 lines
3.3 KiB
Java
130 lines
3.3 KiB
Java
package eu.dnetlib.validatorapi.entities;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
|
|
@Entity
|
|
public class SummaryResult {
|
|
|
|
@Id
|
|
String rule_name;
|
|
int rule_weight;
|
|
String guidelines;
|
|
String internal_error;
|
|
String rule_status;
|
|
long passed_records;
|
|
long failed_records;
|
|
boolean has_errors;
|
|
boolean has_warnings;
|
|
|
|
public SummaryResult(String rule_name, long passed_records, long failed_records) {
|
|
this.rule_name = rule_name;
|
|
this.passed_records = passed_records;
|
|
this.failed_records = failed_records;
|
|
}
|
|
|
|
public SummaryResult(String rule_name, int rule_weight, long passed_records, long failed_records) {
|
|
this.rule_name = rule_name;
|
|
this.rule_weight = rule_weight;
|
|
this.passed_records = passed_records;
|
|
this.failed_records = failed_records;
|
|
}
|
|
|
|
public SummaryResult(String rule_name, int rule_weight, String guidelines, String internal_error, long passed_records,
|
|
long failed_records, String rule_status, boolean has_errors, boolean has_warnings) {
|
|
this.rule_name = rule_name;
|
|
this.rule_weight = rule_weight;
|
|
this.guidelines = guidelines;
|
|
this.internal_error = internal_error;
|
|
this.rule_status = rule_status;
|
|
this.passed_records = passed_records;
|
|
this.failed_records = failed_records;
|
|
this.has_errors = has_errors;
|
|
this.has_warnings = has_warnings;
|
|
}
|
|
|
|
public String getRule_name() {
|
|
return rule_name;
|
|
}
|
|
|
|
public void setRule_name(String rule_name) {
|
|
this.rule_name = rule_name;
|
|
}
|
|
|
|
public int getRule_weight() {
|
|
return rule_weight;
|
|
}
|
|
|
|
public void setRule_weight(int rule_weight) {
|
|
this.rule_weight = rule_weight;
|
|
}
|
|
|
|
public String getGuidelines() {
|
|
return guidelines;
|
|
}
|
|
|
|
public void setGuidelines(String guidelines) {
|
|
this.guidelines = guidelines;
|
|
}
|
|
|
|
public String getInternal_error() {
|
|
return internal_error;
|
|
}
|
|
|
|
public void setInternal_error(String internal_error) {
|
|
this.internal_error = internal_error;
|
|
}
|
|
|
|
public long getPassed_records() {
|
|
return passed_records;
|
|
}
|
|
|
|
public void setPassed_records(long passed_records) {
|
|
this.passed_records = passed_records;
|
|
}
|
|
|
|
public long getFailed_records() {
|
|
return failed_records;
|
|
}
|
|
|
|
public void setFailed_records(long failed_records) {
|
|
this.failed_records = failed_records;
|
|
}
|
|
|
|
public String getRule_status() {
|
|
return rule_status;
|
|
}
|
|
|
|
public void setRule_status(String rule_status) {
|
|
this.rule_status = rule_status;
|
|
}
|
|
|
|
public boolean isHas_errors() {
|
|
return has_errors;
|
|
}
|
|
|
|
public void setHas_errors(boolean has_errors) {
|
|
this.has_errors = has_errors;
|
|
}
|
|
|
|
public boolean isHas_warnings() {
|
|
return has_warnings;
|
|
}
|
|
|
|
public void setHas_warnings(boolean has_warnings) {
|
|
this.has_warnings = has_warnings;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "SummaryResult{" +
|
|
"rule_name='" + rule_name + '\'' +
|
|
", rule_weight=" + rule_weight +
|
|
", passed_records=" + passed_records +
|
|
", failed_records=" + failed_records +
|
|
'}';
|
|
}
|
|
|
|
|
|
}
|