Interface JpaJsonExistsExpression
- All Superinterfaces:
Expression<Boolean>, JpaCriteriaNode, JpaExpression<Boolean>, JpaJsonExistsNode, JpaSelection<Boolean>, JpaTupleElement<Boolean>, Selection<Boolean>, Serializable, TupleElement<Boolean>
- All Known Implementing Classes:
SqmJsonExistsExpression
@Incubating(since="6.3")
public interface JpaJsonExistsExpression
extends JpaExpression<Boolean>, JpaJsonExistsNode
A special expression for the
json_exists function.- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface JpaJsonExistsNode
JpaJsonExistsNode.ErrorBehavior -
Method Summary
Modifier and TypeMethodDescriptionUse the JSON error behavior that raises an error.Use the JSON error behavior that returns false.passing(String parameterName, Expression<?> expression) Passes the givenExpressionas value for the parameter with the given name in the JSON path.Use the JSON error behavior that returns true.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 JpaJsonExistsNode
getErrorBehaviorMethods 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 JpaJsonExistsExpression 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 interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-
errorOnError
Use the JSON error behavior that raises an error.- Specified by:
errorOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-
trueOnError
Use the JSON error behavior that returns true.- Specified by:
trueOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-
falseOnError
Use the JSON error behavior that returns false.- Specified by:
falseOnErrorin interfaceJpaJsonExistsNode- Returns:
thisfor method chaining
-