Package org.hibernate.query.criteria
Interface JpaJsonQueryExpression
- All Superinterfaces:
Expression<String>
,JpaCriteriaNode
,JpaExpression<String>
,JpaJsonQueryNode
,JpaSelection<String>
,JpaTupleElement<String>
,Selection<String>
,Serializable
,TupleElement<String>
- All Known Implementing Classes:
SqmJsonQueryExpression
A special expression for the
json_query
function.- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.criteria.JpaJsonQueryNode
JpaJsonQueryNode.EmptyBehavior, JpaJsonQueryNode.ErrorBehavior, JpaJsonQueryNode.WrapMode
-
Method Summary
Modifier and TypeMethodDescriptionSets theJpaJsonQueryNode.EmptyBehavior.EMPTY_ARRAY
for this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_ARRAY
for this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_OBJECT
for this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_OBJECT
for this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.ERROR
for this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.ERROR
for this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.NULL
for this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.NULL
for this json query expression.passing
(String parameterName, Expression<?> expression) Passes the givenExpression
as value for the parameter with the given name in the JSON path.Sets theJpaJsonQueryNode.EmptyBehavior.UNSPECIFIED
for this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.UNSPECIFIED
for this json query expression.Sets theJpaJsonQueryNode.WrapMode.UNSPECIFIED
for this json query expression.Sets theJpaJsonQueryNode.WrapMode.WITH_CONDITIONAL_WRAPPER
for this json query expression.Sets theJpaJsonQueryNode.WrapMode.WITHOUT_WRAPPER
for this json query expression.Sets theJpaJsonQueryNode.WrapMode.WITH_WRAPPER
for this json query 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.JpaJsonQueryNode
getEmptyBehavior, getErrorBehavior, getWrapMode
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
-
withoutWrapper
JpaJsonQueryExpression withoutWrapper()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.WrapMode.WITHOUT_WRAPPER
for this json query expression.- Specified by:
withoutWrapper
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
withWrapper
JpaJsonQueryExpression withWrapper()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.WrapMode.WITH_WRAPPER
for this json query expression.- Specified by:
withWrapper
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
withConditionalWrapper
JpaJsonQueryExpression withConditionalWrapper()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.WrapMode.WITH_CONDITIONAL_WRAPPER
for this json query expression.- Specified by:
withConditionalWrapper
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
unspecifiedWrapper
JpaJsonQueryExpression unspecifiedWrapper()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.WrapMode.UNSPECIFIED
for this json query expression.- Specified by:
unspecifiedWrapper
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
unspecifiedOnError
JpaJsonQueryExpression unspecifiedOnError()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.ErrorBehavior.UNSPECIFIED
for this json query expression.- Specified by:
unspecifiedOnError
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
errorOnError
JpaJsonQueryExpression errorOnError()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.ErrorBehavior.ERROR
for this json query expression.- Specified by:
errorOnError
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
nullOnError
JpaJsonQueryExpression nullOnError()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.ErrorBehavior.NULL
for this json query expression.- Specified by:
nullOnError
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
emptyArrayOnError
JpaJsonQueryExpression emptyArrayOnError()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_ARRAY
for this json query expression.- Specified by:
emptyArrayOnError
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
emptyObjectOnError
JpaJsonQueryExpression emptyObjectOnError()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_OBJECT
for this json query expression.- Specified by:
emptyObjectOnError
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
unspecifiedOnEmpty
JpaJsonQueryExpression unspecifiedOnEmpty()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.EmptyBehavior.UNSPECIFIED
for this json query expression.- Specified by:
unspecifiedOnEmpty
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
errorOnEmpty
JpaJsonQueryExpression errorOnEmpty()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.EmptyBehavior.ERROR
for this json query expression.- Specified by:
errorOnEmpty
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
nullOnEmpty
JpaJsonQueryExpression nullOnEmpty()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.EmptyBehavior.NULL
for this json query expression.- Specified by:
nullOnEmpty
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
emptyArrayOnEmpty
JpaJsonQueryExpression emptyArrayOnEmpty()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_ARRAY
for this json query expression.- Specified by:
emptyArrayOnEmpty
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-
emptyObjectOnEmpty
JpaJsonQueryExpression emptyObjectOnEmpty()Description copied from interface:JpaJsonQueryNode
Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_OBJECT
for this json query expression.- Specified by:
emptyObjectOnEmpty
in interfaceJpaJsonQueryNode
- Returns:
this
for method chaining
-