Class JpaSingleUseObjectModelCriteriaBuilder
java.lang.Object
org.keycloak.models.map.storage.jpa.JpaModelCriteriaBuilder<JpaSingleUseObjectEntity,SingleUseObjectValueModel,JpaSingleUseObjectModelCriteriaBuilder>
org.keycloak.models.map.storage.jpa.singleUseObject.JpaSingleUseObjectModelCriteriaBuilder
- All Implemented Interfaces:
ModelCriteriaBuilder<SingleUseObjectValueModel,
JpaSingleUseObjectModelCriteriaBuilder>
public class JpaSingleUseObjectModelCriteriaBuilder
extends JpaModelCriteriaBuilder<JpaSingleUseObjectEntity,SingleUseObjectValueModel,JpaSingleUseObjectModelCriteriaBuilder>
A
JpaModelCriteriaBuilder
implementation for single-use objects.- Author:
- Stefan Guilhen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.ModelCriteriaBuilder
ModelCriteriaBuilder.Operator
-
Constructor Summary
ConstructorDescriptionJpaSingleUseObjectModelCriteriaBuilder
(JpaPredicateFunction<JpaSingleUseObjectEntity> predicateFunc) -
Method Summary
Modifier and TypeMethodDescriptioncompare
(SearchableModelField<? super SingleUseObjectValueModel> modelField, ModelCriteriaBuilder.Operator op, Object... value) 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.Methods inherited from class org.keycloak.models.map.storage.jpa.JpaModelCriteriaBuilder
and, convertToJson, getPredicateFunc, getUuidsForInOperator, getValuesForInOperator, hashExpression, isDistinct, not, or, validateValue
-
Constructor Details
-
JpaSingleUseObjectModelCriteriaBuilder
public JpaSingleUseObjectModelCriteriaBuilder() -
JpaSingleUseObjectModelCriteriaBuilder
public JpaSingleUseObjectModelCriteriaBuilder(JpaPredicateFunction<JpaSingleUseObjectEntity> predicateFunc)
-
-
Method Details
-
compare
public JpaSingleUseObjectModelCriteriaBuilder compare(SearchableModelField<? super SingleUseObjectValueModel> modelField, ModelCriteriaBuilder.Operator op, Object... value) 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.- Parameters:
modelField
- Field on the logical model to be constrainedop
- Operatorvalue
- Additional operands of the operator.- Returns:
-