Class SelectedValuesValidator

java.lang.Object
io.jmix.aitools.dataload.validation.validator.SelectedValuesValidator
All Implemented Interfaces:
JpqlResultValidator, org.springframework.core.Ordered

@Component("aitls_SelectedValuesValidator") public class SelectedValuesValidator extends Object implements JpqlResultValidator, org.springframework.core.Ordered
Checks that every result column is a value rather than an entity instance, so the repair loop can rewrite a query that selects an entity whole. An entity column would also carry attributes the current user may not read.
  • Field Details

  • Constructor Details

    • SelectedValuesValidator

      public SelectedValuesValidator()
  • Method Details

    • validate

      public List<JpqlValidationIssue> validate(GeneratedJpqlResult result)
      Description copied from interface: JpqlResultValidator
      Validates the given query draft.
      Specified by:
      validate in interface JpqlResultValidator
      Parameters:
      result - generated query draft to validate
      Returns:
      issues found, or an empty list if the rule passed
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered