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_ID
we useIckleQueryOperators.ExpressionCombinator
for obtainedModelCriteriaBuilder.Operator
and use it with field name corresponding toClientModel.SearchableFields.CLIENT_ID
however, forClientModel.SearchableFields.ATTRIBUTE
we 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 String
produceWhereClause(SearchableModelField<?> modelField, ModelCriteriaBuilder.Operator op, Object[] values, Map<String,Object> parameters)
Produces where clause for givenSearchableModelField
,ModelCriteriaBuilder.Operator
and 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.Operator
and values- Parameters:
modelField
- model fieldop
- operatorvalues
- searched valuesparameters
- mapping between named parameters and corresponding values- Returns:
- resulting where clause
-
-