Class ExecutionAPI
java.lang.Object
com.jedox.etl.core.scriptapi.ScriptAPI
com.jedox.etl.components.scriptapi.BaseAPI
com.jedox.etl.components.scriptapi.ExecutionAPI
- All Implemented Interfaces:
com.jedox.etl.core.scriptapi.IPropertiesAware,com.jedox.etl.core.scriptapi.IScriptAPI
- Direct Known Subclasses:
FunctionAPI,JobAPI
Common methods available for jobs and functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes all processors created withinitSource(String)orinitSource(String, String, int)Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and will be removed, useinitSource(String)instead.getState()Gets theStateof the current execution including start date, first error message (if one exists) and status.initSource(String name) Initializes aSourcefor a given name (extract or transform) with no tree format and processes all rows.initSource(String name, String format, int size) Initializes aSourcefor a given name (extract or transform).booleanTests if a given string is numeric.Methods inherited from class com.jedox.etl.components.scriptapi.BaseAPI
clearProperties, getComponentName, getConfigSetting, getConfigSetting, getGlobalConnections, getLocalFilesDir, getProjectName, getProperty, setPropertyMethods inherited from class com.jedox.etl.core.scriptapi.ScriptAPI
getDefaultImports, getExtensionPoint, getParameters, isUsable, setAPIDescriptor
-
Constructor Details
-
ExecutionAPI
public ExecutionAPI()
-
-
Method Details
-
isNumeric
Tests if a given string is numeric. Uses Integrator's internal number convertion. It is similar to Groovy'sisNumber()method forCharSequence, but also supportsBooleanvalues.- Parameters:
inputData- string to test- Returns:
trueif numeric,falseotherwise
-
initSource
Initializes aSourcefor a given name (extract or transform). The number of rows to process can be configured. For tree based sources a tree format can be set.- Parameters:
name- name of the source (extract or transform)format- the tree format, can benullsize- number of rows to process, 0 processes all rows- Returns:
- the initialized
Sourceornullif in case of an error
-
initSource
Initializes aSourcefor a given name (extract or transform) with no tree format and processes all rows.- Parameters:
name- name of the source (extract or transform)- Returns:
- the initialized
Sourceornullif in case of an error
-
getSource
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and will be removed, useinitSource(String)instead.Gets an existingSourcefor a given name. If the source isn't available yet, it is initialized with no tree format and all rows are processed.- Parameters:
name- name of the source (extract or transform)- Returns:
- the requested
Sourceornullif the initialization fails
-
getState
Gets theStateof the current execution including start date, first error message (if one exists) and status.- Returns:
- the
Stateof the current execution
-
close
public void close()Closes all processors created withinitSource(String)orinitSource(String, String, int)- Specified by:
closein interfacecom.jedox.etl.core.scriptapi.IScriptAPI- Overrides:
closein classcom.jedox.etl.core.scriptapi.ScriptAPI
-
getMailer
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and will be removed, useJobAPI.getMailer()instead.Returnsnullif not called from a job.- Returns:
nullif not called from a job
-
JobAPI.getMailer()instead.