Interface JpaJsonValueNode<T>
- All Known Subinterfaces:
JpaJsonValueExpression<T>
- All Known Implementing Classes:
SqmJsonValueExpression
The base for
json_value function nodes.- Since:
- 7.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe behavior of the json value expression when a JSON path does not resolve for a JSON document.static enumThe behavior of the json value expression when a JSON processing error occurs. -
Method Summary
Modifier and TypeMethodDescriptiondefaultOnEmpty(Expression<?> expression) Sets theJpaJsonValueNode.EmptyBehavior.DEFAULTfor this json value expression.defaultOnError(Expression<?> expression) Sets theJpaJsonValueNode.ErrorBehavior.DEFAULTfor this json value expression.Sets theJpaJsonValueNode.EmptyBehavior.ERRORfor this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.ERRORfor this json value expression.Get theJpaJsonValueNode.EmptyBehaviorof this json value expression.Get theJpaExpressionthat is returned when the JSON path does not resolve for a JSON document.Get theJpaJsonValueNode.ErrorBehaviorof this json value expression.Get theJpaExpressionthat is returned on a json processing error.Sets theJpaJsonValueNode.EmptyBehavior.NULLfor this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.NULLfor this json value expression.Sets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIEDfor this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIEDfor this json value expression.
-
Method Details
-
getErrorBehavior
Get theJpaJsonValueNode.ErrorBehaviorof this json value expression.- Returns:
- the error behavior
-
getEmptyBehavior
Get theJpaJsonValueNode.EmptyBehaviorof this json value expression.- Returns:
- the empty behavior
-
getErrorDefault
Get theJpaExpressionthat is returned on a json processing error. ReturnsnullifgetErrorBehavior()is notJpaJsonValueNode.ErrorBehavior.DEFAULT.- Returns:
- the value to return on a json processing error
-
getEmptyDefault
Get theJpaExpressionthat is returned when the JSON path does not resolve for a JSON document. ReturnsnullifgetEmptyBehavior()is notJpaJsonValueNode.EmptyBehavior.DEFAULT.- Returns:
- the value to return on a json processing error
-
unspecifiedOnError
Sets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIEDfor this json value expression.- Returns:
thisfor method chaining
-
errorOnError
Sets theJpaJsonValueNode.ErrorBehavior.ERRORfor this json value expression.- Returns:
thisfor method chaining
-
nullOnError
Sets theJpaJsonValueNode.ErrorBehavior.NULLfor this json value expression.- Returns:
thisfor method chaining
-
defaultOnError
Sets theJpaJsonValueNode.ErrorBehavior.DEFAULTfor this json value expression.- Returns:
thisfor method chaining
-
unspecifiedOnEmpty
Sets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIEDfor this json value expression.- Returns:
thisfor method chaining
-
errorOnEmpty
Sets theJpaJsonValueNode.EmptyBehavior.ERRORfor this json value expression.- Returns:
thisfor method chaining
-
nullOnEmpty
Sets theJpaJsonValueNode.EmptyBehavior.NULLfor this json value expression.- Returns:
thisfor method chaining
-
defaultOnEmpty
Sets theJpaJsonValueNode.EmptyBehavior.DEFAULTfor this json value expression.- Returns:
thisfor method chaining
-