public abstract class ValueParameter extends Object implements Parameter
They consist of a declaration and a binding. Parameters without a binding are called "free" or "unbound" parameters. In order to execute a query all of its non-optional parameters must have a binding associated with them, i.e. be "bound".
The caller is expected to provide a ValueParameter object when binding previously declared parameters.
In that case the declaration elements do not need to be repeated, only its name property.
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueParameter.Builder |
Parameter.Binding, Parameter.BindingHandler<B extends Parameter.Binding,P extends Parameter>, Parameter.Factory<TYPE extends Parameter>| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_NAME |
TYPE_FIELD| Constructor and Description |
|---|
ValueParameter() |
| Modifier and Type | Method and Description |
|---|---|
static ValueParameter |
any(String name) |
ValueParameter |
applyExecutionState(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.fasterxml.jackson.databind.JsonNode state) |
static ValueParameter.Builder |
builder() |
abstract ValueParameter.Builder |
toBuilder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbinding, dataType, defaultValue, description, name, optional, title, typepublic static final String TYPE_NAME
public static ValueParameter.Builder builder()
public static ValueParameter any(String name)
public abstract ValueParameter.Builder toBuilder()
public ValueParameter applyExecutionState(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JsonNode state)
applyExecutionState in interface ParameterCopyright © 2012–2021 Graylog, Inc.. All rights reserved.