Class GeneratedJpqlResult

java.lang.Object
io.jmix.aitools.dataload.execution.GeneratedJpqlResult

@NullMarked public class GeneratedJpqlResult extends Object
Structured JPQL draft returned by the generation layer.

This type represents what the LLM produced after generation or repair.

  • Field Details

  • Constructor Details

    • GeneratedJpqlResult

      public GeneratedJpqlResult(String jpql, List<GeneratedJpqlParameter> parameters, String explanation, List<String> warnings)
      Creates a result without execution hints (maxResults / firstResult are unset).
      Parameters:
      jpql - generated JPQL text
      parameters - structured query parameters
      explanation - short human-readable explanation of the query intent
      warnings - warnings produced during generation
    • GeneratedJpqlResult

      public GeneratedJpqlResult(String jpql, List<GeneratedJpqlParameter> parameters, String explanation, List<String> warnings, @Nullable Integer maxResults, @Nullable Integer firstResult)
      Parameters:
      jpql - generated JPQL text
      parameters - structured query parameters
      explanation - short human-readable explanation of the query intent
      warnings - warnings produced during generation
      maxResults - requested maximum number of rows
      firstResult - requested row offset
  • Method Details

    • getJpql

      public String getJpql()
      Returns the generated JPQL text.
      Returns:
      JPQL text
    • getParameters

      public List<GeneratedJpqlParameter> getParameters()
      Returns the structured parameters produced together with the JPQL draft.
      Returns:
      query parameters
    • getExplanation

      public String getExplanation()
      Returns a short human-readable explanation of the generated query intent.
      Returns:
      query explanation
    • getWarnings

      public List<String> getWarnings()
      Returns warnings produced during generation, for example ambiguity notes.
      Returns:
      generation warnings
    • getMaxResults

      public @Nullable Integer getMaxResults()
      Returns the requested maximum number of rows, if the generation layer provided it.

      This value is still part of the generation-stage result and may later be normalized together with the JPQL text by post-processing.

      Returns:
      maximum number of rows, or null if not specified
    • getFirstResult

      public @Nullable Integer getFirstResult()
      Returns the requested row offset, if the generation layer provided it.

      This value is still part of the generation-stage result and may later be normalized together with the JPQL text by post-processing.

      Returns:
      row offset, or null if not specified
    • toString

      public String toString()
      Overrides:
      toString in class Object