Class MapModelCriteriaBuilderAssumingEqualForField<K,V extends AbstractEntity,M>
- java.lang.Object
-
- org.keycloak.models.map.storage.chm.MapModelCriteriaBuilder<K,V,M>
-
- org.keycloak.models.map.storage.ldap.MapModelCriteriaBuilderAssumingEqualForField<K,V,M>
-
- All Implemented Interfaces:
ModelCriteriaBuilder<M,MapModelCriteriaBuilder<K,V,M>>
public class MapModelCriteriaBuilderAssumingEqualForField<K,V extends AbstractEntity,M> extends MapModelCriteriaBuilder<K,V,M>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.keycloak.models.map.storage.chm.MapModelCriteriaBuilder
MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V extends AbstractEntity,M>
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.ModelCriteriaBuilder
ModelCriteriaBuilder.Operator
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.chm.MapModelCriteriaBuilder
ALWAYS_FALSE, ALWAYS_TRUE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MapModelCriteriaBuilderAssumingEqualForField(StringKeyConverter<K> keyConverter, Map<SearchableModelField<? super M>,MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V,M>> fieldPredicates, Predicate<? super K> indexReadFilter, Predicate<? super V> sequentialReadFilter, SearchableModelField<? super M> modelFieldThatShouldCompareToTrueForEqual)
MapModelCriteriaBuilderAssumingEqualForField(StringKeyConverter<K> keyConverter, Map<SearchableModelField<? super M>,MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V,M>> fieldPredicates, SearchableModelField<? super M> modelFieldThatShouldCompareToTrueForEqual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapModelCriteriaBuilder<K,V,M>
compare(SearchableModelField<? super M> modelField, ModelCriteriaBuilder.Operator op, Object... values)
Adds a constraint for the given model field to this criteria builder and returns a criteria builder that is combined with the the new constraint.protected MapModelCriteriaBuilder<K,V,M>
instantiateNewInstance(StringKeyConverter<K> keyConverter, Map<SearchableModelField<? super M>,MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V,M>> fieldPredicates, Predicate<? super K> indexReadFilter, Predicate<? super V> sequentialReadFilter)
Return a new instance for nodes in this criteria tree.-
Methods inherited from class org.keycloak.models.map.storage.chm.MapModelCriteriaBuilder
and, convertValuesToKeyType, fieldCompare, fieldCompare, getEntityFilter, getKeyFilter, idCompare, not, or
-
-
-
-
Constructor Detail
-
MapModelCriteriaBuilderAssumingEqualForField
public MapModelCriteriaBuilderAssumingEqualForField(StringKeyConverter<K> keyConverter, Map<SearchableModelField<? super M>,MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V,M>> fieldPredicates, SearchableModelField<? super M> modelFieldThatShouldCompareToTrueForEqual)
-
MapModelCriteriaBuilderAssumingEqualForField
protected MapModelCriteriaBuilderAssumingEqualForField(StringKeyConverter<K> keyConverter, Map<SearchableModelField<? super M>,MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V,M>> fieldPredicates, Predicate<? super K> indexReadFilter, Predicate<? super V> sequentialReadFilter, SearchableModelField<? super M> modelFieldThatShouldCompareToTrueForEqual)
-
-
Method Detail
-
compare
public MapModelCriteriaBuilder<K,V,M> compare(SearchableModelField<? super M> modelField, ModelCriteriaBuilder.Operator op, Object... values)
Description copied from interface:ModelCriteriaBuilder
Adds a constraint for the given model field to this criteria builder and returns a criteria builder that is combined with the the new constraint. The resulting constraint is a logical conjunction (i.e. AND) of the original constraint present in thisModelCriteriaBuilder
and the given operator.- Specified by:
compare
in interfaceModelCriteriaBuilder<K,V extends AbstractEntity>
- Overrides:
compare
in classMapModelCriteriaBuilder<K,V extends AbstractEntity,M>
- Parameters:
modelField
- Field on the logical model to be constrainedop
- Operatorvalues
- Additional operands of the operator.- Returns:
-
instantiateNewInstance
protected MapModelCriteriaBuilder<K,V,M> instantiateNewInstance(StringKeyConverter<K> keyConverter, Map<SearchableModelField<? super M>,MapModelCriteriaBuilder.UpdatePredicatesFunc<K,V,M>> fieldPredicates, Predicate<? super K> indexReadFilter, Predicate<? super V> sequentialReadFilter)
Description copied from class:MapModelCriteriaBuilder
Return a new instance for nodes in this criteria tree. Subclasses can override this method to instantiate a new instance of their subclass. This allows this class to be extendable.- Overrides:
instantiateNewInstance
in classMapModelCriteriaBuilder<K,V extends AbstractEntity,M>
-
-