Package scriptella.execution
Class EtlContext
java.lang.Object
scriptella.execution.EtlContext
- All Implemented Interfaces:
DriverContext,ParametersCallback
Execution context for script.
This class contains global data for executed elements.
Note: Execution context is not intended to change its state during sql elements execution as opposed to
Note: Execution context is not intended to change its state during sql elements execution as opposed to
DynamicContext.- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParameter(String name) Returns the value of parameter specified by name.Resolves a fileUrl URI relative to base URL.
-
Constructor Details
-
EtlContext
public EtlContext() -
EtlContext
public EtlContext(boolean collectStatistics)
-
-
Method Details
-
getParameter
Description copied from interface:ParametersCallbackReturns the value of parameter specified by name.The callback internally delegates a call to parent callbacks if the parameter cannot be found.
- Specified by:
getParameterin interfaceParametersCallback- Parameters:
name- parameter name. Providers are allowed (but not required) to ignore a case of the name parameter to comply with their internal model. For example JDBC drivers are case-insensitive to column names.- Returns:
- parameter value or null if parameter doesn't exist.
-
getProgressCallback
-
getScriptFileURL
- Specified by:
getScriptFileURLin interfaceDriverContext
-
resolve
Description copied from interface:DriverContextResolves a fileUrl URI relative to base URL.Examples:
Resolves to:baseUrl = "file:///tmp/doc.xml" uri = "http://site.com/file.html"
http://site.com/file.htmlResolves to:baseUrl = "file:///tmp/doc.xml" uri = "file.html"
file:///tmp/file.html- Specified by:
resolvein interfaceDriverContext- Parameters:
uri- URI to resolve..- Returns:
- resolved file URL.
- Throws:
MalformedURLException- if uri is malformed or cannot be resolved.- See Also:
-
getGlobalVariables
-
getStatisticsBuilder
-
getSession
-