Class SqmXmlTableFunction<T>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.expression.SqmSetReturningFunction<T>
org.hibernate.query.sqm.function.SelfRenderingSqmSetReturningFunction<T>
org.hibernate.query.sqm.tree.expression.SqmXmlTableFunction<T>
- All Implemented Interfaces:
Serializable,JpaCriteriaNode,JpaSetReturningFunction<T>,JpaXmlTableFunction,SqmNode,SqmVisitableNode
public class SqmXmlTableFunction<T>
extends SelfRenderingSqmSetReturningFunction<T>
implements JpaXmlTableFunction
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmXmlTableFunction(SqmSetReturningFunctionDescriptor descriptor, SetReturningFunctionRenderer renderer, @Nullable ArgumentsValidator argumentsValidator, SetReturningFunctionTypeResolver setReturningTypeResolver, NodeBuilder nodeBuilder, SqmExpression<String> xpath, SqmExpression<?> document) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHqlString(StringBuilder hql, SqmRenderContext context) copy(SqmCopyContext context) ordinalityColumn(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) LikeJpaXmlTableFunction.queryColumn(String, String), but uses the column name as XPath expression.queryColumn(String columnName, @Nullable 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.protected List<SqlAstNode> resolveSqlAstArguments(List<? extends SqmTypedNode<?>> sqmArguments, SqmToSqlAstConverter walker) <X> JpaXmlTableColumnNode<X> valueColumn(String columnName, Class<X> type) LikeJpaXmlTableFunction.valueColumn(String, Class, String)but uses the column name as XPath expression.<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, Class<X> type, String xpath) LikeJpaXmlTableFunction.valueColumn(String, JpaCastTarget, String), but converting theClasstoJpaCastTargetviaHibernateCriteriaBuilder.castTarget(Class).<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, JpaCastTarget<X> castTarget) LikeJpaXmlTableFunction.valueColumn(String, JpaCastTarget, String)but uses the column name as XPath expression.<X> JpaXmlTableColumnNode<X> valueColumn(String columnName, JpaCastTarget<X> castTarget, @Nullable 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.Methods inherited from class org.hibernate.query.sqm.function.SelfRenderingSqmSetReturningFunction
convertToSqlAst, getArgumentsValidator, getFunctionRenderer, getSetReturningTypeResolver, getType, isTypeResolvedMethods inherited from class org.hibernate.query.sqm.tree.expression.SqmSetReturningFunction
accept, equals, getArguments, getFunctionDescriptor, getFunctionName, hashCodeMethods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilderMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmXmlTableFunction
public SqmXmlTableFunction(SqmSetReturningFunctionDescriptor descriptor, SetReturningFunctionRenderer renderer, @Nullable ArgumentsValidator argumentsValidator, SetReturningFunctionTypeResolver setReturningTypeResolver, NodeBuilder nodeBuilder, SqmExpression<String> xpath, SqmExpression<?> document)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmNode- Overrides:
copyin classSelfRenderingSqmSetReturningFunction<T>
-
resolveSqlAstArguments
protected List<SqlAstNode> resolveSqlAstArguments(List<? extends SqmTypedNode<?>> sqmArguments, SqmToSqlAstConverter walker) - Overrides:
resolveSqlAstArgumentsin classSelfRenderingSqmSetReturningFunction<T>
-
queryColumn
Description copied from interface:JpaXmlTableFunctionLikeJpaXmlTableFunction.queryColumn(String, String), but uses the column name as XPath expression.- Specified by:
queryColumnin interfaceJpaXmlTableFunction- Returns:
- The
JpaXmlTableColumnNodefor the column
-
queryColumn
Description copied from interface:JpaXmlTableFunctionDefines 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.- Specified by:
queryColumnin interfaceJpaXmlTableFunction- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
Description copied from interface:JpaXmlTableFunctionLikeJpaXmlTableFunction.valueColumn(String, Class, String)but uses the column name as XPath expression.- Specified by:
valueColumnin interfaceJpaXmlTableFunction- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
Description copied from interface:JpaXmlTableFunctionLikeJpaXmlTableFunction.valueColumn(String, JpaCastTarget, String)but uses the column name as XPath expression.- Specified by:
valueColumnin interfaceJpaXmlTableFunction- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
Description copied from interface:JpaXmlTableFunctionLikeJpaXmlTableFunction.valueColumn(String, JpaCastTarget, String), but converting theClasstoJpaCastTargetviaHibernateCriteriaBuilder.castTarget(Class).- Specified by:
valueColumnin interfaceJpaXmlTableFunction- Returns:
- The
JpaXmlTableColumnNodefor the column
-
valueColumn
public <X> JpaXmlTableColumnNode<X> valueColumn(String columnName, JpaCastTarget<X> castTarget, @Nullable String xpath) Description copied from interface:JpaXmlTableFunctionDefines 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.- Specified by:
valueColumnin interfaceJpaXmlTableFunction- Returns:
- The
JpaXmlTableColumnNodefor the column
-
ordinalityColumn
Description copied from interface:JpaXmlTableFunctionDefines 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.- Specified by:
ordinalityColumnin interfaceJpaXmlTableFunction- Returns:
thisfor method chaining
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classSqmSetReturningFunction<T>
-