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 enumThe behavior of the json exists expression when a JSON processing error occurs. -
Method Summary
Modifier and TypeMethodDescriptionSets theJpaJsonTableFunction.ErrorBehavior.ERRORfor this json table expression.Get theJpaJsonTableFunction.ErrorBehaviorof this json table expression.Sets theJpaJsonTableFunction.ErrorBehavior.NULLfor 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 givenExpressionas value for the parameter with the given name in the JSON path.Sets theJpaJsonTableFunction.ErrorBehavior.UNSPECIFIEDfor 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 givenExpressionas value for the parameter with the given name in the JSON path.- Returns:
thisfor method chaining
-
getErrorBehavior
JpaJsonTableFunction.ErrorBehavior getErrorBehavior()Get theJpaJsonTableFunction.ErrorBehaviorof this json table expression.- Returns:
- the error behavior
-
unspecifiedOnError
JpaJsonTableFunction unspecifiedOnError()Sets theJpaJsonTableFunction.ErrorBehavior.UNSPECIFIEDfor this json table expression.- Returns:
thisfor method chaining
-
errorOnError
JpaJsonTableFunction errorOnError()Sets theJpaJsonTableFunction.ErrorBehavior.ERRORfor this json table expression.- Returns:
thisfor method chaining
-
nullOnError
JpaJsonTableFunction nullOnError()Sets theJpaJsonTableFunction.ErrorBehavior.NULLfor this json table expression.- Returns:
thisfor method chaining
-
ordinalityColumn
Description copied from interface:JpaJsonTableColumnsNodeDefines 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:
ordinalityColumnin interfaceJpaJsonTableColumnsNode- Returns:
thisfor method chaining
-