Class RootEntityValidator
java.lang.Object
io.jmix.aitools.dataload.validation.validator.RootEntityValidator
- All Implemented Interfaces:
JpqlResultValidator,org.springframework.core.Ordered
@Component("aitls_RootEntityValidator")
public class RootEntityValidator
extends Object
implements JpqlResultValidator, org.springframework.core.Ordered
Checks that the query's root entity is non-blank and known to the introspected domain model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JpaDomainModelIntrospectorprotected QueryTransformerFactorystatic final Stringstatic final StringFields 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.
-
Field Details
-
ROOT_ENTITY_UNKNOWN_CODE
- See Also:
-
ROOT_ENTITY_UNKNOWN_GUIDANCE
- See Also:
-
modelIntrospector
-
queryTransformerFactory
-
-
Constructor Details
-
RootEntityValidator
public RootEntityValidator()
-
-
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
-