package de.superx.job; import java.io.File; public class SqlScriptAction extends ActionNode { public String databaseSystem; public String sqlScriptPath; public Integer limitDebugStmts = Integer.valueOf(-1); public String dataSource; public String sqlVarDataSource; public SqlScriptAction(String databaseSystem, Integer systemInfoId, String sqlScriptPath) { this(databaseSystem, "eduetl", "eduetl", systemInfoId, sqlScriptPath); } public SqlScriptAction(String databaseSystem, String dataSource, String sqlVarDataSource, Integer systemInfoId, String sqlScriptPath) { super("Execute sql script " + sqlScriptPath.substring(sqlScriptPath.lastIndexOf(File.separatorChar) + 1), null, systemInfoId, true, ActionType.DOSQL); this.databaseSystem = databaseSystem; this.sqlScriptPath = sqlScriptPath; this.dataSource = dataSource; this.sqlVarDataSource = sqlVarDataSource; } public SqlScriptAction(String databaseSystem, String dataSource, String sqlVarDataSource, Integer systemInfoId, String sqlScriptPath, Integer limitDebugStmts) { this(databaseSystem, dataSource, sqlVarDataSource, systemInfoId, sqlScriptPath); this.limitDebugStmts = limitDebugStmts; } public SqlScriptAction() { super(); } }