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).
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()validate(GeneratedJpqlResult result) Validates the given query draft.
-
Constructor Details
-
JpqlPresenceValidator
public JpqlPresenceValidator()
-
-
Method Details
-
validate
Description copied from interface:JpqlResultValidatorValidates the given query draft.- Specified by:
validatein interfaceJpqlResultValidator- Parameters:
result- generated query draft to validate- Returns:
- issues found, or an empty list if the rule passed
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-