public class EtlContext extends java.lang.Object implements ParametersCallback, DriverContext
DynamicContext
.Constructor and Description |
---|
EtlContext() |
EtlContext(boolean collectStatistics) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getGlobalVariables() |
java.lang.Object |
getParameter(java.lang.String name)
Returns the value of parameter specified by name.
|
ProgressCallback |
getProgressCallback() |
java.net.URL |
getScriptFileURL() |
Session |
getSession() |
ExecutionStatisticsBuilder |
getStatisticsBuilder() |
java.net.URL |
resolve(java.lang.String uri)
Resolves a fileUrl URI relative to base URL.
|
public EtlContext()
public EtlContext(boolean collectStatistics)
public java.lang.Object getParameter(java.lang.String name)
ParametersCallback
The callback internally delegates a call to parent callbacks if the parameter cannot be found.
getParameter
in interface ParametersCallback
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.public ProgressCallback getProgressCallback()
public java.net.URL getScriptFileURL()
getScriptFileURL
in interface DriverContext
public java.net.URL resolve(java.lang.String uri) throws java.net.MalformedURLException
DriverContext
Examples:
baseUrl = "file:///tmp/doc.xml"
uri = "http://site.com/file.html"
Resolves to: http://site.com/file.html
baseUrl = "file:///tmp/doc.xml"
uri = "file.html"
Resolves to: file:///tmp/file.html
resolve
in interface DriverContext
uri
- URI to resolve..java.net.MalformedURLException
- if uri is malformed or cannot be resolved.getScriptFileURL()
public java.util.Map<java.lang.String,java.lang.Object> getGlobalVariables()
public ExecutionStatisticsBuilder getStatisticsBuilder()
public Session getSession()
Copyright © Copyright 2006-2019 The Scriptella Project Team.