Package org.hibernate.query.criteria
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
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 org.hibernate.query.criteria.JpaJsonValueNode
JpaJsonValueNode.EmptyBehavior, JpaJsonValueNode.ErrorBehavior -
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.Sets theJpaJsonValueNode.EmptyBehavior.NULLfor this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.NULLfor this json value expression.passing(String parameterName, Expression<?> expression) Passes the givenExpressionas value for the parameter with the given name in the JSON path.Sets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIEDfor this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIEDfor this json value expression.Methods inherited from interface org.hibernate.query.criteria.JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualToMethods inherited from interface org.hibernate.query.criteria.JpaJsonValueNode
getEmptyBehavior, getEmptyDefault, getErrorBehavior, getErrorDefaultMethods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Method Details
-
passing
Passes the givenExpressionas value for the parameter with the given name in the JSON path.- Returns:
thisfor method chaining
-
unspecifiedOnError
JpaJsonValueExpression<T> unspecifiedOnError()Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIEDfor this json value expression.- Specified by:
unspecifiedOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
errorOnError
JpaJsonValueExpression<T> errorOnError()Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.ErrorBehavior.ERRORfor this json value expression.- Specified by:
errorOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
nullOnError
JpaJsonValueExpression<T> nullOnError()Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.ErrorBehavior.NULLfor this json value expression.- Specified by:
nullOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
defaultOnError
Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.ErrorBehavior.DEFAULTfor this json value expression.- Specified by:
defaultOnErrorin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
unspecifiedOnEmpty
JpaJsonValueExpression<T> unspecifiedOnEmpty()Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIEDfor this json value expression.- Specified by:
unspecifiedOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
errorOnEmpty
JpaJsonValueExpression<T> errorOnEmpty()Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.EmptyBehavior.ERRORfor this json value expression.- Specified by:
errorOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
nullOnEmpty
JpaJsonValueExpression<T> nullOnEmpty()Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.EmptyBehavior.NULLfor this json value expression.- Specified by:
nullOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-
defaultOnEmpty
Description copied from interface:JpaJsonValueNodeSets theJpaJsonValueNode.EmptyBehavior.DEFAULTfor this json value expression.- Specified by:
defaultOnEmptyin interfaceJpaJsonValueNode<T>- Returns:
thisfor method chaining
-