Class EntityDataLoadQueryPayload
java.lang.Object
io.jmix.aitools.dataload.generation.EntityDataLoadQueryPayload
Raw LLM output for a data-load request, deserialized from the model's JSON response.
All fields are optional: depending on what the model returns, any of them may be absent
(null). The payload is mapped to a validated EntityDataLoadQuery before it is
used for execution.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the human-readable explanation of the query produced by the LLM.@Nullable IntegerReturns the requested offset of the first row.@Nullable StringgetJpql()Returns the generated JPQL query text produced by the LLM.@Nullable IntegerReturns the requested maximum number of rows.@Nullable List<GeneratedJpqlParameterPayload> Returns the named query parameters produced by the LLM.Returns the result property names in the order of the SELECT expressions.Returns the warnings produced by the LLM about the generated query.voidsetExplanation(@Nullable String explanation) voidsetFirstResult(@Nullable Integer firstResult) voidvoidsetMaxResults(@Nullable Integer maxResults) voidsetParameters(@Nullable List<GeneratedJpqlParameterPayload> parameters) voidsetResultProperties(@Nullable List<String> resultProperties) voidsetWarnings(@Nullable List<String> warnings)
-
Field Details
-
jpql
-
parameters
-
resultProperties
-
explanation
-
warnings
-
maxResults
-
firstResult
-
-
Constructor Details
-
EntityDataLoadQueryPayload
public EntityDataLoadQueryPayload()
-
-
Method Details
-
getJpql
Returns the generated JPQL query text produced by the LLM.- Returns:
- JPQL query, or
nullif the model did not provide one
-
setJpql
-
getParameters
Returns the named query parameters produced by the LLM.- Returns:
- query parameters, or
nullif absent
-
setParameters
-
getResultProperties
Returns the result property names in the order of the SELECT expressions.- Returns:
- result properties, or
nullif absent
-
setResultProperties
-
getExplanation
Returns the human-readable explanation of the query produced by the LLM.- Returns:
- query explanation, or
nullif absent
-
setExplanation
-
getWarnings
Returns the warnings produced by the LLM about the generated query.- Returns:
- warnings, or
nullif absent
-
setWarnings
-
getMaxResults
Returns the requested maximum number of rows.- Returns:
- maximum number of rows, or
nullto apply the default limit
-
setMaxResults
-
getFirstResult
Returns the requested offset of the first row.- Returns:
- row offset, or
nullto start from the first row
-
setFirstResult
-