Class DefaultEntityQueryMetadataProvider
java.lang.Object
com.foreach.across.modules.entity.query.DefaultEntityQueryMetadataProvider
- All Implemented Interfaces:
EntityQueryMetadataProvider
public class DefaultEntityQueryMetadataProvider
extends Object
implements EntityQueryMetadataProvider
Default implementation of
EntityQueryMetadataProvider
that validates properties
using a EntityPropertyRegistry
.- Since:
- 2.0.0
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidOperatorForProperty
(EntityQueryOps operator, String property) boolean
isValidProperty
(String property) boolean
isValidValueForPropertyAndOperator
(Object value, String property, EntityQueryOps operator) void
validateOperatorForCondition
(EntityQueryCondition condition) void
validatePropertyForCondition
(EntityQueryCondition condition) void
validateValueForCondition
(EntityQueryCondition condition)
-
Constructor Details
-
DefaultEntityQueryMetadataProvider
-
-
Method Details
-
isValidProperty
- Specified by:
isValidProperty
in interfaceEntityQueryMetadataProvider
-
isValidOperatorForProperty
- Specified by:
isValidOperatorForProperty
in interfaceEntityQueryMetadataProvider
-
isValidValueForPropertyAndOperator
public boolean isValidValueForPropertyAndOperator(Object value, String property, EntityQueryOps operator) - Specified by:
isValidValueForPropertyAndOperator
in interfaceEntityQueryMetadataProvider
-
validatePropertyForCondition
- Specified by:
validatePropertyForCondition
in interfaceEntityQueryMetadataProvider
-
validateOperatorForCondition
- Specified by:
validateOperatorForCondition
in interfaceEntityQueryMetadataProvider
-
validateValueForCondition
- Specified by:
validateValueForCondition
in interfaceEntityQueryMetadataProvider
-