Package scriptella.spi
Interface ParametersCallback
- All Known Subinterfaces:
DriverContext
- All Known Implementing Classes:
BindingsParametersCallback,CsvQuery,DynamicContext,DynamicContextDecorator,EtlContext,EtlVariable,HierarchicalParametersCallback,JaninoQuery,MapParametersCallback,NashornBindingsParametersCallback,NullParametersCallback,ParametersCallbackMap,ResultSetAdapter,SearchFilterQuery,XPathQueryExecutor
public interface ParametersCallback
Callback interface to obtain parameter values.
Note: Currently Scriptella has a limitation which does not allow to distinguish between a value of null and an absence of the variable. This will be addressed in future versions.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Method Summary
Modifier and TypeMethodDescriptiongetParameter(String name) Returns the value of parameter specified by name.
-
Method Details
-
getParameter
Returns the value of parameter specified by name.The callback internally delegates a call to parent callbacks if the parameter cannot be found.
- 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.
-