String driverClassName = "";
String url = "";
String username = "";
String driverDelegateClass = "";
String password = "";
DataBase quartzDataBase = null;
if (StringUtil.getBoolean(quartzConfig.getIsDefaultConfig())) {
quartzDataBase = selectedDatabase;
} else {
String selectedDB = quartzConfig.getDataBaseId();
for (DataBase dataBase : fixFlowConfig.getDataBaseConfig().getDataBase()) {
if (dataBase.getId().equals(selectedDB)) {
quartzDataBase = dataBase;
}
}
}
if (quartzDataBase == null) {
throw new FixFlowException("定时任务框架启动失败!未找到指定的数据库");
}
driverClassName = quartzDataBase.getDriverClassName();
url = quartzDataBase.getUrl();
username = quartzDataBase.getUsername();
password = quartzDataBase.getPassword();
if (quartzDataBase.getDbtype().equals(DBType.ORACLE)) {
driverDelegateClass = "com.founder.fix.fixflow.expand.quartz.jdbcjobstore.oracle.OracleDelegate";
// driverDelegateClass =
// "org.quartz.impl.jdbcjobstore.oracle.OracleDelegate";//org.quartz.impl.jdbcjobstore.StdJDBCDelegate
} else {
if (quartzDataBase.getDbtype().equals(DBType.SQLSERVER)) {
driverDelegateClass = "org.quartz.impl.jdbcjobstore.MSSQLDelegate";
} else {
driverDelegateClass = "org.quartz.impl.jdbcjobstore.StdJDBCDelegate";
}