You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
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(); } |
|
}
|
|
|