Interface JpaJsonValueExpression<T>
- All Superinterfaces:
Expression<T>, JpaCriteriaNode, JpaExpression<T>, JpaJsonValueNode<T>, JpaSelection<T>, JpaTupleElement<T>, Selection<T>, Serializable, TupleElement<T>
- All Known Implementing Classes:
SqmJsonValueExpression
@Incubating(since="6.3")
public interface JpaJsonValueExpression<T>
extends JpaExpression<T>, JpaJsonValueNode<T>
A special expression for the
json_value function.- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface JpaJsonValueNode
JpaJsonValueNode.EmptyBehavior, JpaJsonValueNode.ErrorBehavior -
Method Summary
Modifier and TypeMethodDescriptiondefaultOnEmpty(Expression<?> expression) Use the JSON empty behavior that returns the given default value.defaultOnError(Expression<?> expression) Use the JSON error behavior that returns the given default value.Use the JSON empty behavior that raises an error.Use the JSON error behavior that raises an error.Use the JSON empty behavior that returns null.Use the JSON error behavior that returns null.passing(String parameterName, Expression<?> expression) Passes the givenExpressionas value for the parameter with the given name in the JSON path.Use the unspecified JSON empty behavior.Use the unspecified JSON error behavior.Methods inherited from interface JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from interface JpaJsonValueNode
getEmptyBehavior, getEmptyDefault, getErrorBehavior, getErrorDefaultMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface TupleElement
getAlias
-
Method Details
-
passing
@Nonnull JpaJsonValueExpression<T> passing(@Nonnull String parameterName, @Nonnull Expression<?> expression) Passes the givenExpressionas value for the parameter with the given name in the JSON path.- Returns:
thisfor method chaining
-
unspecifiedOnError
Use the unspecified JSON error behavior.- Specified by:
unspecifiedOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
errorOnError
Use the JSON error behavior that raises an error.- Specified by:
errorOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
nullOnError
Use the JSON error behavior that returns null.- Specified by:
nullOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
defaultOnError
Use the JSON error behavior that returns the given default value.- Specified by:
defaultOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
unspecifiedOnEmpty
Use the unspecified JSON empty behavior.- Specified by:
unspecifiedOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
errorOnEmpty
Use the JSON empty behavior that raises an error.- Specified by:
errorOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
nullOnEmpty
Use the JSON empty behavior that returns null.- Specified by:
nullOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
defaultOnEmpty
Use the JSON empty behavior that returns the given default value.- Specified by:
defaultOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-