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 enum
The behavior of the json query expression when a JSON path does not resolve for a JSON document.static enum
The behavior of the json query expression when a JSON processing error occurs.static enum
The kind of wrapping to apply to the results of the query. -
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.Get theJpaJsonQueryNode.EmptyBehavior
of this json query expression.Get theJpaJsonQueryNode.ErrorBehavior
of this json query expression.Get theJpaJsonQueryNode.WrapMode
of this json query expression.Sets theJpaJsonQueryNode.EmptyBehavior.NULL
for this json query expression.Sets theJpaJsonQueryNode.ErrorBehavior.NULL
for this json query expression.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.
-
Method Details
-
getWrapMode
JpaJsonQueryNode.WrapMode getWrapMode()Get theJpaJsonQueryNode.WrapMode
of this json query expression.- Returns:
- the wrap mode
-
getErrorBehavior
JpaJsonQueryNode.ErrorBehavior getErrorBehavior()Get theJpaJsonQueryNode.ErrorBehavior
of this json query expression.- Returns:
- the error behavior
-
getEmptyBehavior
JpaJsonQueryNode.EmptyBehavior getEmptyBehavior()Get theJpaJsonQueryNode.EmptyBehavior
of this json query expression.- Returns:
- the empty behavior
-
withoutWrapper
JpaJsonQueryNode withoutWrapper()Sets theJpaJsonQueryNode.WrapMode.WITHOUT_WRAPPER
for this json query expression.- Returns:
this
for method chaining
-
withWrapper
JpaJsonQueryNode withWrapper()Sets theJpaJsonQueryNode.WrapMode.WITH_WRAPPER
for this json query expression.- Returns:
this
for method chaining
-
withConditionalWrapper
JpaJsonQueryNode withConditionalWrapper()Sets theJpaJsonQueryNode.WrapMode.WITH_CONDITIONAL_WRAPPER
for this json query expression.- Returns:
this
for method chaining
-
unspecifiedWrapper
JpaJsonQueryNode unspecifiedWrapper()Sets theJpaJsonQueryNode.WrapMode.UNSPECIFIED
for this json query expression.- Returns:
this
for method chaining
-
unspecifiedOnError
JpaJsonQueryNode unspecifiedOnError()Sets theJpaJsonQueryNode.ErrorBehavior.UNSPECIFIED
for this json query expression.- Returns:
this
for method chaining
-
errorOnError
JpaJsonQueryNode errorOnError()Sets theJpaJsonQueryNode.ErrorBehavior.ERROR
for this json query expression.- Returns:
this
for method chaining
-
nullOnError
JpaJsonQueryNode nullOnError()Sets theJpaJsonQueryNode.ErrorBehavior.NULL
for this json query expression.- Returns:
this
for method chaining
-
emptyArrayOnError
JpaJsonQueryNode emptyArrayOnError()Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_ARRAY
for this json query expression.- Returns:
this
for method chaining
-
emptyObjectOnError
JpaJsonQueryNode emptyObjectOnError()Sets theJpaJsonQueryNode.ErrorBehavior.EMPTY_OBJECT
for this json query expression.- Returns:
this
for method chaining
-
unspecifiedOnEmpty
JpaJsonQueryNode unspecifiedOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.UNSPECIFIED
for this json query expression.- Returns:
this
for method chaining
-
errorOnEmpty
JpaJsonQueryNode errorOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.ERROR
for this json query expression.- Returns:
this
for method chaining
-
nullOnEmpty
JpaJsonQueryNode nullOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.NULL
for this json query expression.- Returns:
this
for method chaining
-
emptyArrayOnEmpty
JpaJsonQueryNode emptyArrayOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_ARRAY
for this json query expression.- Returns:
this
for method chaining
-
emptyObjectOnEmpty
JpaJsonQueryNode emptyObjectOnEmpty()Sets theJpaJsonQueryNode.EmptyBehavior.EMPTY_OBJECT
for this json query expression.- Returns:
this
for method chaining
-