Package org.hibernate.query.criteria
Interface JpaXmlTableFunction
- All Known Implementing Classes:
SqmXmlTableFunction
A special expression for the
xmltable function.- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionordinalityColumn(String columnName) Defines a long 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 XPath expression.queryColumn(String columnName, String xpath) Defines a string column on the result type with the given name for which the value can be obtained by evaluatingxmlquerywith the given XPath expression on the XML document.<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, Class<X> type) LikevalueColumn(String, Class, String)but uses the column name as XPath expression.<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, Class<X> type, String xpath) LikevalueColumn(String, JpaCastTarget, String), but converting theClasstoJpaCastTargetviaHibernateCriteriaBuilder.castTarget(Class).<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, JpaCastTarget<X> castTarget) LikevalueColumn(String, JpaCastTarget, String)but uses the column name as XPath expression.<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, JpaCastTarget<X> castTarget, String xpath) Defines an column on the result type with the given name and type for which the value can be obtained by the given XPath path expression.
-
Method Details
-
queryColumn
LikequeryColumn(String, String), but uses the column name as XPath expression.- Returns:
- The
JpaXmlTableColumnNodefor the column
-
queryColumn
Defines a string column on the result type with the given name for which the value can be obtained by evaluatingxmlquerywith the given XPath expression on the XML document.- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
LikevalueColumn(String, Class, String)but uses the column name as XPath expression.- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
LikevalueColumn(String, JpaCastTarget, String)but uses the column name as XPath expression.- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
LikevalueColumn(String, JpaCastTarget, String), but converting theClasstoJpaCastTargetviaHibernateCriteriaBuilder.castTarget(Class).- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, JpaCastTarget<X> castTarget, String xpath) Defines an column on the result type with the given name and type for which the value can be obtained by the given XPath path expression.- Returns:
- The
JpaXmlTableColumnNodefor the column
-
ordinalityColumn
Defines a long 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:
thisfor method chaining
-