public interface 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 Parameter 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 | Interface and Description |
|---|---|
static interface |
Parameter.Binding |
static interface |
Parameter.BindingHandler<B extends Parameter.Binding,P extends Parameter> |
static interface |
Parameter.Builder<SELF> |
static interface |
Parameter.Factory<TYPE extends Parameter> |
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_FIELD |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
applyExecutionState(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.fasterxml.jackson.databind.JsonNode jsonNode) |
Parameter.Binding |
binding() |
String |
dataType() |
Object |
defaultValue() |
String |
description() |
String |
name() |
boolean |
optional() |
String |
title() |
String |
type() |
static final String TYPE_FIELD
String type()
String name()
String dataType()
boolean optional()
@Nullable Parameter.Binding binding()
Parameter applyExecutionState(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JsonNode jsonNode)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.