Package org.hibernate.query.criteria
Interface JpaJsonExistsExpression
- All Superinterfaces:
Expression<Boolean>,JpaCriteriaNode,JpaExpression<Boolean>,JpaJsonExistsNode,JpaSelection<Boolean>,JpaTupleElement<Boolean>,Selection<Boolean>,Serializable,TupleElement<Boolean>
- All Known Implementing Classes:
SqmJsonExistsExpression
@Incubating
public interface JpaJsonExistsExpression
extends JpaExpression<Boolean>, JpaJsonExistsNode
A special expression for the
json_exists function.- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.criteria.JpaJsonExistsNode
JpaJsonExistsNode.ErrorBehavior -
Method Summary
Modifier and TypeMethodDescriptionSets theJpaJsonExistsNode.ErrorBehavior.ERRORfor this json exists expression.Sets theJpaJsonExistsNode.ErrorBehavior.FALSEfor this json exists expression.passing(String parameterName, Expression<?> expression) Passes the givenExpressionas value for the parameter with the given name in the JSON path.Sets theJpaJsonExistsNode.ErrorBehavior.TRUEfor this json exists expression.Sets theJpaJsonExistsNode.ErrorBehavior.UNSPECIFIEDfor this json exists expression.Methods inherited from interface org.hibernate.query.criteria.JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualToMethods inherited from interface org.hibernate.query.criteria.JpaJsonExistsNode
getErrorBehaviorMethods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Method Details
-
passing
Passes the givenExpressionas value for the parameter with the given name in the JSON path.- Returns:
thisfor method chaining
-
unspecifiedOnError
JpaJsonExistsExpression unspecifiedOnError()Description copied from interface:JpaJsonExistsNodeSets theJpaJsonExistsNode.ErrorBehavior.UNSPECIFIEDfor this json exists expression.- Specified by:
unspecifiedOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-
errorOnError
JpaJsonExistsExpression errorOnError()Description copied from interface:JpaJsonExistsNodeSets theJpaJsonExistsNode.ErrorBehavior.ERRORfor this json exists expression.- Specified by:
errorOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-
trueOnError
JpaJsonExistsExpression trueOnError()Description copied from interface:JpaJsonExistsNodeSets theJpaJsonExistsNode.ErrorBehavior.TRUEfor this json exists expression.- Specified by:
trueOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-
falseOnError
JpaJsonExistsExpression falseOnError()Description copied from interface:JpaJsonExistsNodeSets theJpaJsonExistsNode.ErrorBehavior.FALSEfor this json exists expression.- Specified by:
falseOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-