Interface JpaJsonValueNode<T>
- All Known Subinterfaces:
JpaJsonValueExpression<T>
- All Known Implementing Classes:
SqmJsonValueExpression
-
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
JpaJsonValueNode.ErrorBehavior getErrorBehavior()Get theJpaJsonValueNode.ErrorBehaviorof this json value expression.- Returns:
- the error behavior
-
getEmptyBehavior
JpaJsonValueNode.EmptyBehavior 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
JpaJsonValueNode<T> unspecifiedOnError()Sets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIEDfor this json value expression.- Returns:
thisfor method chaining
-
errorOnError
JpaJsonValueNode<T> errorOnError()Sets theJpaJsonValueNode.ErrorBehavior.ERRORfor this json value expression.- Returns:
thisfor method chaining
-
nullOnError
JpaJsonValueNode<T> 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
JpaJsonValueNode<T> unspecifiedOnEmpty()Sets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIEDfor this json value expression.- Returns:
thisfor method chaining
-
errorOnEmpty
JpaJsonValueNode<T> errorOnEmpty()Sets theJpaJsonValueNode.EmptyBehavior.ERRORfor this json value expression.- Returns:
thisfor method chaining
-
nullOnEmpty
JpaJsonValueNode<T> 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
-