if (spooler_task.params().var("db_class") != null && spooler_task.params().var("db_class").length() > 0) {
this.setDbClass(spooler_task.params().var("db_class"));
spooler_log.debug1(".. job parameter [db_class]: " + this.getDbClass());
}
SOSArguments arguments = new SOSArguments(this.getDbProperty());
SOSConnection conn;
if (sosLogger!=null){
conn = getSchedulerConnection(this.getJobSettings(),sosLogger);
}else{
conn = getSchedulerConnection(this.getJobSettings());
}
if (spooler_task.params().var("db") != null && spooler_task.params().var("db").length() > 0) {
if (sosLogger!=null){
conn = SOSConnection.createInstance(
dbClass,
arguments.as_string("-class=", ""),
arguments.as_string("-url=", ""),
arguments.as_string("-user=", ""),
arguments.as_string("-password=", ""),
sosLogger );
} else{
conn = SOSConnection.createInstance(
dbClass,
arguments.as_string("-class=", ""),
arguments.as_string("-url=", ""),
arguments.as_string("-user=", ""),
arguments.as_string("-password=", ""));
}
}
if (spooler_job!=null && getJobSettings()!=null) setJobProperties(getJobSettings().getSection("job " + spooler_job.name()));
if (spooler_task != null) this.setJobId(spooler_task.id());
if (spooler_job != null) this.setJobName(spooler_job.name());