Class GeneratedJpqlPayload

java.lang.Object
io.jmix.aitools.dataload.repair.impl.GeneratedJpqlPayload

@NullMarked public class GeneratedJpqlPayload extends Object
Raw LLM output of a repair attempt, deserialized from the model's JSON response.

Scalar fields are optional and may be absent (null); the payload is mapped to a GeneratedJpqlResult before use.

  • Field Details

  • Constructor Details

    • GeneratedJpqlPayload

      public GeneratedJpqlPayload()
  • Method Details

    • getJpql

      public @Nullable String getJpql()
      Returns the repaired JPQL query text.
      Returns:
      JPQL query, or null if the model did not provide one
    • setJpql

      public void setJpql(@Nullable String jpql)
    • getParameters

      public @Nullable List<GeneratedJpqlParameterPayload> getParameters()
      Returns the named query parameters.
      Returns:
      query parameters, or null if absent
    • setParameters

      public void setParameters(@Nullable List<GeneratedJpqlParameterPayload> parameters)
    • getExplanation

      public @Nullable String getExplanation()
      Returns the human-readable explanation of the query.
      Returns:
      query explanation, or null if absent
    • setExplanation

      public void setExplanation(@Nullable String explanation)
    • getWarnings

      public @Nullable List<String> getWarnings()
      Returns the warnings produced about the query.
      Returns:
      warnings, or null if absent
    • setWarnings

      public void setWarnings(@Nullable List<String> warnings)
    • getMaxResults

      public @Nullable Integer getMaxResults()
      Returns the requested maximum number of rows.
      Returns:
      maximum number of rows, or null if absent
    • setMaxResults

      public void setMaxResults(@Nullable Integer maxResults)
    • getFirstResult

      public @Nullable Integer getFirstResult()
      Returns the requested offset of the first row.
      Returns:
      row offset, or null if absent
    • setFirstResult

      public void setFirstResult(@Nullable Integer firstResult)