public abstract class AbstractJdbcPipelet extends java.lang.Object implements Pipelet
Modifier and Type | Field and Description |
---|---|
protected AnyMap |
_configuration
The pipelet configuration.
|
static java.lang.String |
PARAM_DB_PROPS
parameter for database specific properties, e.g. user/password.
|
static java.lang.String |
PARAM_DB_URL
parameter for database url.
|
static java.lang.String |
PARAM_STMT
parameter for the statement (PreparedStatement) to log.
|
static java.lang.String |
PARAM_VALUE_PATHS
parameter for the value paths which reference the values to use in the log statement.
|
static java.lang.String |
VALUE_PATH_SEPARATOR
The value path separator.
|
Constructor and Description |
---|
AbstractJdbcPipelet() |
Modifier and Type | Method and Description |
---|---|
void |
configure(AnyMap configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.
|
protected AnyMap |
getDbProps(ParameterAccessor paramAccessor) |
protected java.lang.String |
getDbUrl(ParameterAccessor paramAccessor) |
protected java.lang.String |
getStatement(ParameterAccessor paramAccessor) |
protected java.util.List<Value> |
getStatementValues(ParameterAccessor paramAccessor,
AnyMap metadata) |
public static final java.lang.String PARAM_DB_URL
public static final java.lang.String PARAM_DB_PROPS
public static final java.lang.String PARAM_STMT
public static final java.lang.String PARAM_VALUE_PATHS
public static final java.lang.String VALUE_PATH_SEPARATOR
protected AnyMap _configuration
protected java.lang.String getDbUrl(ParameterAccessor paramAccessor) throws ProcessingException
ProcessingException
protected AnyMap getDbProps(ParameterAccessor paramAccessor) throws ProcessingException
ProcessingException
protected java.lang.String getStatement(ParameterAccessor paramAccessor) throws ProcessingException
ProcessingException
protected java.util.List<Value> getStatementValues(ParameterAccessor paramAccessor, AnyMap metadata) throws ProcessingException
ProcessingException
public void configure(AnyMap configuration) throws ProcessingException
Pipelet
configure
in interface Pipelet
configuration
- configuration of pipelet.ProcessingException
- configuration is not applicable for pipelet (missing properties, wrong datatypes)