Class EntityDataLoadQuery

java.lang.Object
io.jmix.aitools.dataload.EntityDataLoadQuery

public class EntityDataLoadQuery extends Object
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 Details

  • Constructor Details

  • Method Details

    • getJpql

      public String getJpql()
      Returns the generated JPQL select query. Every SELECT expression is aliased via AS.
      Returns:
      the generated JPQL select query
    • getParameters

      public List<GeneratedJpqlParameter> getParameters()
      Returns named parameters that must be bound when executing getJpql()
      Returns:
      named parameters
    • getResultProperties

      public List<String> getResultProperties()
      Returns result column names in the exact order of the SELECT expressions in getJpql(); used as keys for the row maps in the execution result.
      Returns:
      result column names
    • getExplanation

      public String getExplanation()
      Returns:
      human-readable explanation of what the query does, produced by the LLM
    • getWarnings

      public List<String> getWarnings()
      Returns:
      warnings emitted by the LLM about the generated query (assumptions made, approximations, applied pagination, etc.)
    • getMaxResults

      public @Nullable Integer getMaxResults()
      Returns requested row limit, or null to apply the default limit on execution.
      Returns:
      requested row limit
    • getFirstResult

      public @Nullable Integer getFirstResult()
      Rrequested offset of the first row, or null to start from the first row.
      Returns:
      requested offset of the first row