public class SqlTask extends Object implements OnTask, SupportsRecording, SupportsCodeUpdate
Task| Modifier and Type | Field and Description |
|---|---|
static String |
CALLABLE_VAR
The CALLABLE variable name.
|
static String |
CONNECTION_ATTR |
static String |
DRIVER_ATTR |
static String |
SQL_ATTR |
static String |
USING_ATTR |
| Constructor and Description |
|---|
SqlTask() |
| Modifier and Type | Method and Description |
|---|---|
TaskResult |
executeBeforeEtlTask(EtlConfig config,
Task action,
Scenario scenario)
Executes
task before etl process is started. |
TaskResult |
executeInlineTask(EtlConfig config,
Task task,
long index,
Scenario scenario)
Executes
task for each row of the data set. |
TaskResult |
executePostTask(EtlConfig config,
Task task,
DataSet dataSet,
Scenario scenario)
Executes
task after extract or load finished. |
TaskResult |
executePreTask(EtlConfig config,
Task task,
Scenario scenario)
Executes
task before extract or load started. |
String |
getCodeLanguage(Task task)
Gets the code language.
|
Map<String,Object> |
getDefaultValues(Task task)
Gets the default values for the model used to edit task.
|
String |
getResourceName(Task task)
Gets the name of the xml file used to create a model for the task editor.
|
String |
getTitle(Task task)
Gets the title.
|
void |
init(EtlConfig config,
Task task)
Initializes task.
|
boolean |
isInlineTask()
Checks if this is inline task.
|
boolean |
isPostTask()
Checks if it is a post task.
|
boolean |
isPreEtlTask()
Checks if it is a pre etl task.
|
boolean |
isPreTask()
Checks if it is a pre task.
|
public static final String CALLABLE_VAR
public static final String SQL_ATTR
public static final String USING_ATTR
public static final String CONNECTION_ATTR
public static final String DRIVER_ATTR
public TaskResult executeBeforeEtlTask(EtlConfig config, Task action, Scenario scenario) throws Exception
OnTasktask before etl process is started.executeBeforeEtlTask in interface OnTaskconfig - the etl configaction - the task to executescenario - the scenarioException - in case of any errorpublic TaskResult executeInlineTask(EtlConfig config, Task task, long index, Scenario scenario) throws Exception
OnTasktask for each row of the data set.executeInlineTask in interface OnTaskconfig - the etl configtask - the task to executeindex - the current row numberscenario - the scenarioException - in case of any errorpublic TaskResult executePostTask(EtlConfig config, Task task, DataSet dataSet, Scenario scenario) throws Exception
OnTasktask after extract or load finished.executePostTask in interface OnTaskconfig - the etl configtask - the task to executedataSet - the data setscenario - the scenarioException - in case of any errorpublic TaskResult executePreTask(EtlConfig config, Task task, Scenario scenario) throws Exception
OnTasktask before extract or load started.executePreTask in interface OnTaskconfig - the etl configtask - the task to executescenario - the scenarioException - in case of any errorpublic Map<String,Object> getDefaultValues(Task task)
OnTaskgetDefaultValues in interface OnTasktask - the taskpublic String getResourceName(Task task)
OnTaskgetResourceName in interface OnTasktask - the taskpublic void init(EtlConfig config, Task task) throws Exception
OnTaskpublic boolean isInlineTask()
OnTaskisInlineTask in interface OnTaskpublic boolean isPostTask()
OnTaskisPostTask in interface OnTaskpublic boolean isPreEtlTask()
OnTaskisPreEtlTask in interface OnTaskpublic boolean isPreTask()
OnTaskpublic String getTitle(Task task)
OnTaskpublic String getCodeLanguage(Task task)
OnTaskgetCodeLanguage in interface OnTasktask - the taskCopyright © 2010-2020 Toolsverse. All Rights Reserved.