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.ERROR
for this json exists expression.Sets theJpaJsonExistsNode.ErrorBehavior.FALSE
for this json exists expression.passing
(String parameterName, Expression<?> expression) Passes the givenExpression
as value for the parameter with the given name in the JSON path.Sets theJpaJsonExistsNode.ErrorBehavior.TRUE
for this json exists expression.Sets theJpaJsonExistsNode.ErrorBehavior.UNSPECIFIED
for 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, notEqualTo
Methods inherited from interface org.hibernate.query.criteria.JpaJsonExistsNode
getErrorBehavior
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnum
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Method Details
-
passing
Passes the givenExpression
as value for the parameter with the given name in the JSON path.- Returns:
this
for method chaining
-
unspecifiedOnError
JpaJsonExistsExpression unspecifiedOnError()Description copied from interface:JpaJsonExistsNode
Sets theJpaJsonExistsNode.ErrorBehavior.UNSPECIFIED
for this json exists expression.- Specified by:
unspecifiedOnError
in interfaceJpaJsonExistsNode
- Returns:
this
for method chaining
-
errorOnError
JpaJsonExistsExpression errorOnError()Description copied from interface:JpaJsonExistsNode
Sets theJpaJsonExistsNode.ErrorBehavior.ERROR
for this json exists expression.- Specified by:
errorOnError
in interfaceJpaJsonExistsNode
- Returns:
this
for method chaining
-
trueOnError
JpaJsonExistsExpression trueOnError()Description copied from interface:JpaJsonExistsNode
Sets theJpaJsonExistsNode.ErrorBehavior.TRUE
for this json exists expression.- Specified by:
trueOnError
in interfaceJpaJsonExistsNode
- Returns:
this
for method chaining
-
falseOnError
JpaJsonExistsExpression falseOnError()Description copied from interface:JpaJsonExistsNode
Sets theJpaJsonExistsNode.ErrorBehavior.FALSE
for this json exists expression.- Specified by:
falseOnError
in interfaceJpaJsonExistsNode
- Returns:
this
for method chaining
-