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_ARRAYfor this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_ARRAYfor this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_OBJECTfor this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_OBJECTfor this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.ERRORfor this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.ERRORfor this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.NULLfor this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.NULLfor this json query expression.passing(String parameterName, Expression<?> expression) Passes the givenExpressionas value for the parameter with the given name in the JSON path.Sets theJpaJsonQueryNode.EmptyBehavior.UNSPECIFIEDfor this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.UNSPECIFIEDfor this json query expression.Sets theJpaJsonQueryNode.WrapMode.UNSPECIFIEDfor this json query expression.Sets theJpaJsonQueryNode.WrapMode.WITH_CONDITIONAL_WRAPPERfor this json query expression.Sets theJpaJsonQueryNode.WrapMode.WITHOUT_WRAPPERfor this json query expression.Sets theJpaJsonQueryNode.WrapMode.WITH_WRAPPERfor 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, notEqualToMethods inherited from interface org.hibernate.query.criteria.JpaJsonQueryNode
getEmptyBehavior, getErrorBehavior, getWrapModeMethods 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
-
withoutWrapper
JpaJsonQueryExpression withoutWrapper()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.WrapMode.WITHOUT_WRAPPERfor this json query expression.- Specified by:
withoutWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
withWrapper
JpaJsonQueryExpression withWrapper()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.WrapMode.WITH_WRAPPERfor this json query expression.- Specified by:
withWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
withConditionalWrapper
JpaJsonQueryExpression withConditionalWrapper()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.WrapMode.WITH_CONDITIONAL_WRAPPERfor this json query expression.- Specified by:
withConditionalWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
unspecifiedWrapper
JpaJsonQueryExpression unspecifiedWrapper()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.WrapMode.UNSPECIFIEDfor this json query expression.- Specified by:
unspecifiedWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
unspecifiedOnError
JpaJsonQueryExpression unspecifiedOnError()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.ErrorBehavior.UNSPECIFIEDfor this json query expression.- Specified by:
unspecifiedOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
errorOnError
JpaJsonQueryExpression errorOnError()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.ErrorBehavior.ERRORfor this json query expression.- Specified by:
errorOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
nullOnError
JpaJsonQueryExpression nullOnError()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.ErrorBehavior.NULLfor this json query expression.- Specified by:
nullOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyArrayOnError
JpaJsonQueryExpression emptyArrayOnError()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.ErrorBehavior.EMPTY_ARRAYfor this json query expression.- Specified by:
emptyArrayOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyObjectOnError
JpaJsonQueryExpression emptyObjectOnError()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.ErrorBehavior.EMPTY_OBJECTfor this json query expression.- Specified by:
emptyObjectOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
unspecifiedOnEmpty
JpaJsonQueryExpression unspecifiedOnEmpty()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.EmptyBehavior.UNSPECIFIEDfor this json query expression.- Specified by:
unspecifiedOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
errorOnEmpty
JpaJsonQueryExpression errorOnEmpty()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.EmptyBehavior.ERRORfor this json query expression.- Specified by:
errorOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
nullOnEmpty
JpaJsonQueryExpression nullOnEmpty()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.EmptyBehavior.NULLfor this json query expression.- Specified by:
nullOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyArrayOnEmpty
JpaJsonQueryExpression emptyArrayOnEmpty()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.EmptyBehavior.EMPTY_ARRAYfor this json query expression.- Specified by:
emptyArrayOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyObjectOnEmpty
JpaJsonQueryExpression emptyObjectOnEmpty()Description copied from interface:JpaJsonQueryNodeSets theJpaJsonQueryNode.EmptyBehavior.EMPTY_OBJECTfor this json query expression.- Specified by:
emptyObjectOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-