2025-03-27 12:45:55 +03:00
|
|
|
package _VisualDVM.ComponentsServer.BugReportSetting;
|
|
|
|
|
import Common.Database.Objects.DBObject;
|
|
|
|
|
import Common.Database.Objects.iDBObject;
|
|
|
|
|
import _VisualDVM.ComponentsServer.BugReport.BugReport;
|
|
|
|
|
public class BugReportSetting extends iDBObject {
|
|
|
|
|
public String bugreport_id = "";
|
|
|
|
|
public String name = "";
|
|
|
|
|
public String value = "";
|
|
|
|
|
public BugReportSetting() {
|
|
|
|
|
}
|
|
|
|
|
public BugReportSetting(BugReport bugReport, String name_in, Object value_in) {
|
|
|
|
|
this(name_in, value_in);
|
|
|
|
|
bugreport_id = bugReport.id;
|
|
|
|
|
}
|
2025-03-27 15:31:26 +03:00
|
|
|
public BugReportSetting(String name_in, Object value_in) {
|
2025-03-27 12:45:55 +03:00
|
|
|
name = name_in;
|
2025-03-27 15:31:26 +03:00
|
|
|
value = (value_in instanceof Boolean) ? ((boolean) value_in ? "1" : "0") : value_in.toString();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void SynchronizeFields(DBObject src) {
|
|
|
|
|
super.SynchronizeFields(src);
|
|
|
|
|
BugReportSetting src_ = (BugReportSetting) src;
|
|
|
|
|
bugreport_id = src_.bugreport_id;
|
|
|
|
|
name = src_.name;
|
|
|
|
|
value = src_.value;
|
2025-03-27 12:45:55 +03:00
|
|
|
}
|
|
|
|
|
}
|