Package org.hibernate.query.criteria
Interface JpaJsonTableColumnsNode
- All Known Subinterfaces:
JpaJsonTableFunction
- All Known Implementing Classes:
SqmJsonTableFunction
,SqmJsonTableFunction.Columns
A special expression for the definition of columns within the
json_table
function.- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionexistsColumn
(String columnName) LikeexistsColumn(String, String)
, but uses the column name as JSON path expression.existsColumn
(String columnName, String jsonPath) Defines a boolean column on the result type with the given name for which the value can be obtained by invokingjson_exists
with the given JSON path.Defines nested columns that are accessible by the given JSON path.ordinalityColumn
(String columnName) Defines a long typed column on the result type with the given name which is set to the ordinality i.e.queryColumn
(String columnName) LikequeryColumn(String, String)
, but uses the column name as JSON path expression.queryColumn
(String columnName, String jsonPath) Defines a string column on the result type with the given name for which the value can be obtained by invokingjson_query
with the given JSON path.<T> JpaJsonValueNode<T>
valueColumn
(String columnName, Class<T> type) LikevalueColumn(String, Class, String)
but uses the column name as JSON path expression.<T> JpaJsonValueNode<T>
valueColumn
(String columnName, Class<T> type, String jsonPath) Defines a column on the result type with the given name and type for which the value can be obtained by the given JSON path expression.<T> JpaJsonValueNode<T>
valueColumn
(String columnName, JpaCastTarget<T> type) LikevalueColumn(String, Class, String)
but uses the column name as JSON path expression.<T> JpaJsonValueNode<T>
valueColumn
(String columnName, JpaCastTarget<T> type, String jsonPath) Defines a column on the result type with the given name and type for which the value can be obtained by the given JSON path expression.
-
Method Details
-
existsColumn
LikeexistsColumn(String, String)
, but uses the column name as JSON path expression.- Returns:
- The
JpaJsonExistsNode
for the column
-
existsColumn
Defines a boolean column on the result type with the given name for which the value can be obtained by invokingjson_exists
with the given JSON path.- Returns:
- The
JpaJsonExistsNode
for the column
-
queryColumn
LikequeryColumn(String, String)
, but uses the column name as JSON path expression.- Returns:
- The
JpaJsonQueryNode
for the column
-
queryColumn
Defines a string column on the result type with the given name for which the value can be obtained by invokingjson_query
with the given JSON path.- Returns:
- The
JpaJsonQueryNode
for the column
-
valueColumn
LikevalueColumn(String, Class, String)
but uses the column name as JSON path expression.- Returns:
- The
JpaJsonValueNode
for the column
-
valueColumn
Defines a column on the result type with the given name and type for which the value can be obtained by the given JSON path expression.- Returns:
- The
JpaJsonValueNode
for the column
-
valueColumn
LikevalueColumn(String, Class, String)
but uses the column name as JSON path expression.- Returns:
- The
JpaJsonValueNode
for the column
-
valueColumn
Defines a column on the result type with the given name and type for which the value can be obtained by the given JSON path expression.- Returns:
- The
JpaJsonValueNode
for the column
-
nested
Defines nested columns that are accessible by the given JSON path.- Returns:
- a new columns node for the nested JSON path
-
ordinalityColumn
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.- Returns:
this
for method chaining
-