Package org.hibernate.query.criteria
Interface JpaJsonQueryNode
- All Known Subinterfaces:
JpaJsonQueryExpression
- All Known Implementing Classes:
SqmJsonQueryExpression
The base for
json_query function nodes.- Since:
- 7.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe behavior of the json query expression when a JSON path does not resolve for a JSON document.static enumThe behavior of the json query expression when a JSON processing error occurs.static enumThe kind of wrapping to apply to the results of the query. -
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.Get theJpaJsonQueryNode.EmptyBehaviorof this json query expression.Get theJpaJsonQueryNode.ErrorBehaviorof this json query expression.Get theJpaJsonQueryNode.WrapModeof this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.NULLfor this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.NULLfor this json query expression.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.
-
Method Details
-
getWrapMode
JpaJsonQueryNode.WrapMode getWrapMode()Get theJpaJsonQueryNode.WrapModeof this json query expression.- Returns:
- the wrap mode
-
getErrorBehavior
JpaJsonQueryNode.ErrorBehavior getErrorBehavior()Get theJpaJsonQueryNode.ErrorBehaviorof this json query expression.- Returns:
- the error behavior
-
getEmptyBehavior
JpaJsonQueryNode.EmptyBehavior getEmptyBehavior()Get theJpaJsonQueryNode.EmptyBehaviorof this json query expression.- Returns:
- the empty behavior
-
withoutWrapper
JpaJsonQueryNode withoutWrapper()Sets theJpaJsonQueryNode.WrapMode.WITHOUT_WRAPPERfor this json query expression.- Returns:
thisfor method chaining
-
withWrapper
JpaJsonQueryNode withWrapper()Sets theJpaJsonQueryNode.WrapMode.WITH_WRAPPERfor this json query expression.- Returns:
thisfor method chaining
-
withConditionalWrapper
JpaJsonQueryNode withConditionalWrapper()Sets theJpaJsonQueryNode.WrapMode.WITH_CONDITIONAL_WRAPPERfor this json query expression.- Returns:
thisfor method chaining
-
unspecifiedWrapper
JpaJsonQueryNode unspecifiedWrapper()Sets theJpaJsonQueryNode.WrapMode.UNSPECIFIEDfor this json query expression.- Returns:
thisfor method chaining
-
unspecifiedOnError
JpaJsonQueryNode unspecifiedOnError()Sets theJpaJsonQueryNode.ErrorBehavior.UNSPECIFIEDfor this json query expression.- Returns:
thisfor method chaining
-
errorOnError
JpaJsonQueryNode errorOnError()Sets theJpaJsonQueryNode.ErrorBehavior.ERRORfor this json query expression.- Returns:
thisfor method chaining
-
nullOnError
JpaJsonQueryNode nullOnError()Sets theJpaJsonQueryNode.ErrorBehavior.NULLfor this json query expression.- Returns:
thisfor method chaining
-
emptyArrayOnError
JpaJsonQueryNode emptyArrayOnError()Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_ARRAYfor this json query expression.- Returns:
thisfor method chaining
-
emptyObjectOnError
JpaJsonQueryNode emptyObjectOnError()Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_OBJECTfor this json query expression.- Returns:
thisfor method chaining
-
unspecifiedOnEmpty
JpaJsonQueryNode unspecifiedOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.UNSPECIFIEDfor this json query expression.- Returns:
thisfor method chaining
-
errorOnEmpty
JpaJsonQueryNode errorOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.ERRORfor this json query expression.- Returns:
thisfor method chaining
-
nullOnEmpty
JpaJsonQueryNode nullOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.NULLfor this json query expression.- Returns:
thisfor method chaining
-
emptyArrayOnEmpty
JpaJsonQueryNode emptyArrayOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_ARRAYfor this json query expression.- Returns:
thisfor method chaining
-
emptyObjectOnEmpty
JpaJsonQueryNode emptyObjectOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_OBJECTfor this json query expression.- Returns:
thisfor method chaining
-