public interface QueryResult
Modifier and Type | Method and Description |
---|---|
default java.util.Set<java.lang.String> |
getAdditionalRequiredParameters()
Returns the names of additional required parameters for this query.
|
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. |
java.util.Map<java.lang.String,DataType> |
getParameterTypes() |
java.lang.String |
getQuery() |
static QueryResult |
of(java.lang.String query,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.util.Map<java.lang.String,DataType> parameterTypes,
java.util.Set<java.lang.String> additionalRequiredParameters)
Creates a new encoded query.
|
@NonNull java.lang.String getQuery()
@NonNull 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 java.util.Map<java.lang.String,DataType> getParameterTypes()
default java.util.Set<java.lang.String> getAdditionalRequiredParameters()
@NonNull static QueryResult of(@NonNull java.lang.String query, @Nullable java.util.Map<java.lang.String,java.lang.String> parameters, @Nullable java.util.Map<java.lang.String,DataType> parameterTypes, @Nullable java.util.Set<java.lang.String> additionalRequiredParameters)
query
- The queryparameters
- The parametersparameterTypes
- The parameter typesadditionalRequiredParameters
- Names of the additional required parameters to execute the query