public interface QueryResult
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalRequiredParameters()
Returns additional required parameters.
|
java.util.List<QueryParameterBinding> |
getParameterBindings()
Returns the parameters binding for this query.
|
default java.util.Map<java.lang.String,java.lang.String> |
getParameters()
A map containing the parameter names and the references to the
Argument names which define the values. |
default java.util.Map<java.lang.String,DataType> |
getParameterTypes() |
java.lang.String |
getQuery() |
static QueryResult |
of(java.lang.String query,
java.util.List<QueryParameterBinding> parameterBindings,
java.util.Map<java.lang.String,java.lang.String> additionalRequiredParameters)
Creates a new encoded query.
|
@NonNull java.lang.String getQuery()
@NonNull default java.util.Map<java.lang.String,java.lang.String> getParameters()
Argument
names which define the values.
These can be used to resolve the runtime values to bind to the prepared statement.@NonNull default java.util.Map<java.lang.String,DataType> getParameterTypes()
java.util.List<QueryParameterBinding> getParameterBindings()
java.util.Map<java.lang.String,java.lang.String> getAdditionalRequiredParameters()
@NonNull static QueryResult of(@NonNull java.lang.String query, @NonNull java.util.List<QueryParameterBinding> parameterBindings, @NonNull java.util.Map<java.lang.String,java.lang.String> additionalRequiredParameters)
query
- The queryparameterBindings
- The parameters bindingadditionalRequiredParameters
- Additional required parameters to execute the query