Package io.jmix.aitools.dataload
Class EntityDataLoadQuery
java.lang.Object
io.jmix.aitools.dataload.EntityDataLoadQuery
Structured JPQL query draft produced by
EntityDataLoadGenerationService for a
natural-language request. Carries everything JpqlExecutionService needs to validate
and run the query, plus the LLM's explanation and warnings for the caller.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegerRrequested offset of the first row, ornullto start from the first row.getJpql()Returns the generated JPQL select query.@Nullable IntegerReturns requested row limit, ornullto apply the default limit on execution.Returns named parameters that must be bound when executinggetJpql()Returns result column names in the exact order of the SELECT expressions ingetJpql(); used as keys for the row maps in the execution result.
-
Field Details
-
jpql
-
parameters
-
resultProperties
-
explanation
-
warnings
-
maxResults
-
firstResult
-
-
Constructor Details
-
EntityDataLoadQuery
-
-
Method Details
-
getJpql
Returns the generated JPQL select query. Every SELECT expression is aliased viaAS.- Returns:
- the generated JPQL select query
-
getParameters
Returns named parameters that must be bound when executinggetJpql()- Returns:
- named parameters
-
getResultProperties
Returns result column names in the exact order of the SELECT expressions ingetJpql(); used as keys for the row maps in the execution result.- Returns:
- result column names
-
getExplanation
- Returns:
- human-readable explanation of what the query does, produced by the LLM
-
getWarnings
- Returns:
- warnings emitted by the LLM about the generated query (assumptions made, approximations, applied pagination, etc.)
-
getMaxResults
Returns requested row limit, ornullto apply the default limit on execution.- Returns:
- requested row limit
-
getFirstResult
Rrequested offset of the first row, ornullto start from the first row.- Returns:
- requested offset of the first row
-