Package org.hibernate.query.criteria
Interface JpaJsonTableFunction
- All Superinterfaces:
JpaJsonTableColumnsNode
- All Known Implementing Classes:
SqmJsonTableFunction
A special expression for the
json_table
function.- Since:
- 7.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The behavior of the json exists expression when a JSON processing error occurs. -
Method Summary
Modifier and TypeMethodDescriptionSets theJpaJsonTableFunction.ErrorBehavior.ERROR
for this json table expression.Get theJpaJsonTableFunction.ErrorBehavior
of this json table expression.Sets theJpaJsonTableFunction.ErrorBehavior.NULL
for this json table expression.ordinalityColumn
(String columnName) Defines a long typed column on the result type with the given name which is set to the ordinality i.e.passing
(String parameterName, Expression<?> expression) Passes the givenExpression
as value for the parameter with the given name in the JSON path.Sets theJpaJsonTableFunction.ErrorBehavior.UNSPECIFIED
for this json table expression.Methods inherited from interface org.hibernate.query.criteria.JpaJsonTableColumnsNode
existsColumn, existsColumn, nested, queryColumn, queryColumn, valueColumn, valueColumn, valueColumn, valueColumn
-
Method Details
-
passing
Passes the givenExpression
as value for the parameter with the given name in the JSON path.- Returns:
this
for method chaining
-
getErrorBehavior
JpaJsonTableFunction.ErrorBehavior getErrorBehavior()Get theJpaJsonTableFunction.ErrorBehavior
of this json table expression.- Returns:
- the error behavior
-
unspecifiedOnError
JpaJsonTableFunction unspecifiedOnError()Sets theJpaJsonTableFunction.ErrorBehavior.UNSPECIFIED
for this json table expression.- Returns:
this
for method chaining
-
errorOnError
JpaJsonTableFunction errorOnError()Sets theJpaJsonTableFunction.ErrorBehavior.ERROR
for this json table expression.- Returns:
this
for method chaining
-
nullOnError
JpaJsonTableFunction nullOnError()Sets theJpaJsonTableFunction.ErrorBehavior.NULL
for this json table expression.- Returns:
this
for method chaining
-
ordinalityColumn
Description copied from interface:JpaJsonTableColumnsNode
Defines a long typed column on the result type with the given name which is set to the ordinality i.e. the 1-based position of the processed element. Ordinality starts again at 1 within nested paths.- Specified by:
ordinalityColumn
in interfaceJpaJsonTableColumnsNode
- Returns:
this
for method chaining
-