public class TaskResult
extends Object
implements Serializable
OnTask
interface must return this data structure.Modifier and Type | Class and Description |
---|---|
static class |
TaskResult.TaskResultCode
The result codes
|
Modifier and Type | Field and Description |
---|---|
static TaskResult |
CONTINUE
CONTINUE to the next task regardless of the exception.
|
static TaskResult |
HALT
HALT etl process.
|
static TaskResult |
REJECT
REJECT any changes made by the task.
|
static TaskResult |
STOP
The STOP current task.
|
Constructor and Description |
---|
TaskResult()
Instantiates a new task result.
|
TaskResult(DataSet dataSet)
Instantiates a new task result.
|
TaskResult(TaskResult.TaskResultCode result)
Instantiates a new task result.
|
TaskResult(TaskResult.TaskResultCode result,
DataSet dataSet)
Instantiates a new task result.
|
Modifier and Type | Method and Description |
---|---|
DataSet |
getDataSet()
Gets the data set.
|
String |
getError()
Gets the error.
|
TaskResult.TaskResultCode |
getResult()
Gets the result.
|
void |
setDataSet(DataSet value)
Sets the data set.
|
void |
setError(String value)
Sets the error.
|
void |
setResult(TaskResult.TaskResultCode value)
Sets the result.
|
public static TaskResult CONTINUE
public static TaskResult REJECT
public static TaskResult STOP
public static TaskResult HALT
public TaskResult()
public TaskResult(DataSet dataSet)
dataSet
- the data setpublic TaskResult(TaskResult.TaskResultCode result)
result
- the resultpublic TaskResult(TaskResult.TaskResultCode result, DataSet dataSet)
result
- the resultdataSet
- the data setpublic DataSet getDataSet()
public String getError()
public TaskResult.TaskResultCode getResult()
public void setDataSet(DataSet value)
value
- the new data setpublic void setError(String value)
value
- the new errorpublic void setResult(TaskResult.TaskResultCode value)
value
- the new resultCopyright © 2010-2020 Toolsverse. All Rights Reserved.