Class JpqlPresenceValidator

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

@Component("aitls_JpqlPresenceValidator") public class JpqlPresenceValidator extends Object implements JpqlResultValidator, org.springframework.core.Ordered
Checks that the query text is present (not blank).
  • Constructor Details

    • JpqlPresenceValidator

      public JpqlPresenceValidator()
  • 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