public class EtlContext extends Object implements ParametersCallback, DriverContext
DynamicContext.| Constructor and Description |
|---|
EtlContext() |
EtlContext(boolean collectStatistics) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getGlobalVariables() |
Object |
getParameter(String name)
Returns the value of parameter specified by name.
|
ProgressCallback |
getProgressCallback() |
URL |
getScriptFileURL() |
Session |
getSession() |
ExecutionStatisticsBuilder |
getStatisticsBuilder() |
URL |
resolve(String uri)
Resolves a fileUrl URI relative to base URL.
|
public EtlContext()
public EtlContext(boolean collectStatistics)
public Object getParameter(String name)
ParametersCallbackThe callback internally delegates a call to parent callbacks if the parameter cannot be found.
getParameter in interface ParametersCallbackname - 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 URL getScriptFileURL()
getScriptFileURL in interface DriverContextpublic URL resolve(String uri) throws MalformedURLException
DriverContextExamples:
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.htmlresolve in interface DriverContexturi - URI to resolve..MalformedURLException - if uri is malformed or cannot be resolved.getScriptFileURL()public ExecutionStatisticsBuilder getStatisticsBuilder()
public Session getSession()
Copyright © 2006-2012. All Rights Reserved.