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.DEFAULT
for this json value expression.defaultOnError
(Expression<?> expression) Sets theJpaJsonValueNode.ErrorBehavior.DEFAULT
for this json value expression.Sets theJpaJsonValueNode.EmptyBehavior.ERROR
for this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.ERROR
for this json value expression.Sets theJpaJsonValueNode.EmptyBehavior.NULL
for this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.NULL
for this json value expression.passing
(String parameterName, Expression<?> expression) Passes the givenExpression
as value for the parameter with the given name in the JSON path.Sets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIED
for this json value expression.Sets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIED
for 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, notEqualTo
Methods inherited from interface org.hibernate.query.criteria.JpaJsonValueNode
getEmptyBehavior, getEmptyDefault, getErrorBehavior, getErrorDefault
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnum
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Method Details
-
passing
Passes the givenExpression
as value for the parameter with the given name in the JSON path.- Returns:
this
for method chaining
-
unspecifiedOnError
JpaJsonValueExpression<T> unspecifiedOnError()Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.ErrorBehavior.UNSPECIFIED
for this json value expression.- Specified by:
unspecifiedOnError
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
errorOnError
JpaJsonValueExpression<T> errorOnError()Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.ErrorBehavior.ERROR
for this json value expression.- Specified by:
errorOnError
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
nullOnError
JpaJsonValueExpression<T> nullOnError()Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.ErrorBehavior.NULL
for this json value expression.- Specified by:
nullOnError
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
defaultOnError
Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.ErrorBehavior.DEFAULT
for this json value expression.- Specified by:
defaultOnError
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
unspecifiedOnEmpty
JpaJsonValueExpression<T> unspecifiedOnEmpty()Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.EmptyBehavior.UNSPECIFIED
for this json value expression.- Specified by:
unspecifiedOnEmpty
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
errorOnEmpty
JpaJsonValueExpression<T> errorOnEmpty()Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.EmptyBehavior.ERROR
for this json value expression.- Specified by:
errorOnEmpty
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
nullOnEmpty
JpaJsonValueExpression<T> nullOnEmpty()Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.EmptyBehavior.NULL
for this json value expression.- Specified by:
nullOnEmpty
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-
defaultOnEmpty
Description copied from interface:JpaJsonValueNode
Sets theJpaJsonValueNode.EmptyBehavior.DEFAULT
for this json value expression.- Specified by:
defaultOnEmpty
in interfaceJpaJsonValueNode<T>
- Returns:
this
for method chaining
-