Interface JpaJsonQueryExpression
- All Superinterfaces:
Expression<String>, JpaCriteriaNode, JpaExpression<String>, JpaJsonQueryNode, JpaSelection<String>, JpaTupleElement<String>, Selection<String>, Serializable, TupleElement<String>
- All Known Implementing Classes:
SqmJsonQueryExpression
@Incubating(since="6.3")
public interface JpaJsonQueryExpression
extends JpaExpression<String>, JpaJsonQueryNode
A special expression for the
json_query function.- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface JpaJsonQueryNode
JpaJsonQueryNode.EmptyBehavior, JpaJsonQueryNode.ErrorBehavior, JpaJsonQueryNode.WrapMode -
Method Summary
Modifier and TypeMethodDescriptionUse the JSON empty behavior that returns an empty array.Use the JSON error behavior that returns an empty array.Use the JSON empty behavior that returns an empty object.Use the JSON error behavior that returns an empty object.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.Use the unspecified JSON query wrapper mode.Use the JSON query wrapper mode with a conditional wrapper.Use the JSON query wrapper mode without a wrapper.Use the JSON query wrapper mode with a wrapper.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 JpaJsonQueryNode
getEmptyBehavior, getErrorBehavior, getWrapModeMethods 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 JpaJsonQueryExpression 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
-
withoutWrapper
Use the JSON query wrapper mode without a wrapper.- Specified by:
withoutWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
withWrapper
Use the JSON query wrapper mode with a wrapper.- Specified by:
withWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
withConditionalWrapper
Use the JSON query wrapper mode with a conditional wrapper.- Specified by:
withConditionalWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
unspecifiedWrapper
Use the unspecified JSON query wrapper mode.- Specified by:
unspecifiedWrapperin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
unspecifiedOnError
Use the unspecified JSON error behavior.- Specified by:
unspecifiedOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
errorOnError
Use the JSON error behavior that raises an error.- Specified by:
errorOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
nullOnError
Use the JSON error behavior that returns null.- Specified by:
nullOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyArrayOnError
Use the JSON error behavior that returns an empty array.- Specified by:
emptyArrayOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyObjectOnError
Use the JSON error behavior that returns an empty object.- Specified by:
emptyObjectOnErrorin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
unspecifiedOnEmpty
Use the unspecified JSON empty behavior.- Specified by:
unspecifiedOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
errorOnEmpty
Use the JSON empty behavior that raises an error.- Specified by:
errorOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
nullOnEmpty
Use the JSON empty behavior that returns null.- Specified by:
nullOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyArrayOnEmpty
Use the JSON empty behavior that returns an empty array.- Specified by:
emptyArrayOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-
emptyObjectOnEmpty
Use the JSON empty behavior that returns an empty object.- Specified by:
emptyObjectOnEmptyin interfaceJpaJsonQueryNode- Returns:
thisfor method chaining
-