public abstract class StatementParameterImpl extends NamedStatementParameter
Modifier and Type | Class and Description |
---|---|
static class |
StatementParameterImpl.QueryType
Defines all the static query types supported by a Statement Parameter.
|
log
Constructor and Description |
---|
StatementParameterImpl() |
StatementParameterImpl(java.lang.String query,
StatementParameterImpl.QueryType type,
java.lang.Boolean nullConvert,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
convertNull() |
java.lang.Boolean |
getConvertNull()
Whether to convert null object results into something meaningful.
|
protected StatementParameterImpl.QueryType |
getHandler(StatementParameterImpl.QueryType queryType) |
ParameterLogger |
getParameterLogger() |
java.lang.String |
getQueryString()
Get the query string.
|
StatementParameterImpl.QueryType |
getQueryType()
Return the query type.
|
java.lang.Object |
getQueryValue(AdaptrisMessage msg) |
protected ParameterLogger |
logger() |
void |
setConvertNull(java.lang.Boolean b)
Set whether to convert null objects into something meaningful.
|
void |
setParameterLogger(ParameterLogger parameterLogger)
Set the logger for non binary parameters.
|
void |
setQueryString(java.lang.String s)
Defines a method how to get data out of the payload.
|
void |
setQueryType(StatementParameterImpl.QueryType queryType)
The type of query this is.
|
getName, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, makeCopy
public StatementParameterImpl()
public StatementParameterImpl(java.lang.String query, StatementParameterImpl.QueryType type, java.lang.Boolean nullConvert, java.lang.String name)
public void setQueryType(StatementParameterImpl.QueryType queryType)
queryType
- the type.public StatementParameterImpl.QueryType getQueryType()
public java.lang.Boolean getConvertNull()
public void setConvertNull(java.lang.Boolean b)
If set to true, then this class will convert null parameters into an empty string. Other sub-classes may perform different types of conversion
b
- true to convert a null object into an empty string, default null (false)protected boolean convertNull()
public void setQueryString(java.lang.String s)
The configured query string is tied to the underlying querytype; so for 'payload' it could be null, for 'metadata' it would be a metadata key, and for 'xpath' a valid XPath Expression.
s
- the query.setQueryType(QueryType)
public java.lang.String getQueryString()
public ParameterLogger getParameterLogger()
public void setParameterLogger(ParameterLogger parameterLogger)
parameterLogger
- protected ParameterLogger logger()
public java.lang.Object getQueryValue(AdaptrisMessage msg)
protected StatementParameterImpl.QueryType getHandler(StatementParameterImpl.QueryType queryType)