Class IckleQueryWhereClauses
- java.lang.Object
-
- org.keycloak.models.map.storage.hotRod.IckleQueryWhereClauses
-
public class IckleQueryWhereClauses extends Object
This class provides knowledge on how to build Ickle query where clauses for specifiedSearchableModelField. For example, forClientModel.SearchableFields.CLIENT_IDwe useIckleQueryOperators.ExpressionCombinatorfor obtainedModelCriteriaBuilder.Operatorand use it with field name corresponding toClientModel.SearchableFields.CLIENT_IDhowever, forClientModel.SearchableFields.ATTRIBUTEwe need to compare attribute name and attribute value so we create where clause similar to the following:(attributes.name = :attributeName) AND ( attributes.value = :attributeValue )
-
-
Constructor Summary
Constructors Constructor Description IckleQueryWhereClauses()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringproduceWhereClause(SearchableModelField<?> modelField, ModelCriteriaBuilder.Operator op, Object[] values, Map<String,Object> parameters)Produces where clause for givenSearchableModelField,ModelCriteriaBuilder.Operatorand values
-
-
-
Method Detail
-
produceWhereClause
public static String produceWhereClause(SearchableModelField<?> modelField, ModelCriteriaBuilder.Operator op, Object[] values, Map<String,Object> parameters)
Produces where clause for givenSearchableModelField,ModelCriteriaBuilder.Operatorand values- Parameters:
modelField- model fieldop- operatorvalues- searched valuesparameters- mapping between named parameters and corresponding values- Returns:
- resulting where clause
-
-