Class SqmXmlElementExpression
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<String>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<String>
org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<String>
org.hibernate.query.sqm.tree.expression.SqmFunction<String>
org.hibernate.query.sqm.function.SelfRenderingSqmFunction<String>
org.hibernate.query.sqm.tree.expression.SqmXmlElementExpression
- All Implemented Interfaces:
Expression<String>,Selection<String>,TupleElement<String>,Serializable,JpaCriteriaNode,JpaExpression<String>,JpaFunction<String>,JpaSelection<String>,JpaTupleElement<String>,JpaXmlElementExpression,SemanticPathPart,SqmExpression<String>,SqmSelectableNode<String>,SqmExpressibleAccessor<String>,SqmNode,SqmTypedNode<String>,SqmVisitableNode
@Incubating
public class SqmXmlElementExpression
extends SelfRenderingSqmFunction<String>
implements JpaXmlElementExpression
Special expression for the xmlelement function that also captures special syntax elements like xmlattributes.
- Since:
- 7.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmXmlElementExpression(SqmFunctionDescriptor descriptor, FunctionRenderer renderer, List<? extends SqmTypedNode<?>> arguments, @Nullable ReturnableType<String> impliedResultType, @Nullable ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, NodeBuilder nodeBuilder, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHqlString(StringBuilder hql, SqmRenderContext context) attribute(String attributeName, Expression<?> expression) Passes the givenExpressionas value for the XML attribute with the given name.content(Expression<?>... expressions) Passes the givenExpressions as value for the XML content of this element.content(List<? extends Expression<?>> expressions) Passes the givenExpressions as value for the XML content of this element.copy(SqmCopyContext context) Methods inherited from class org.hibernate.query.sqm.function.SelfRenderingSqmFunction
convertToSqlAst, determineResultType, getArgumentsValidator, getFunctionRenderer, getImpliedResultType, getMappingModelExpressible, getNodeType, getReturnTypeResolver, resolveResultType, resolveSqlAstArgumentsMethods inherited from class org.hibernate.query.sqm.tree.expression.SqmFunction
accept, equals, getArguments, getFunctionDescriptor, getFunctionName, hashCode, resolveIndexedAccess, resolvePathPartMethods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualToMethods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
castAs, visitSubSelectableNodesMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableTextMethods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlStringMethods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Constructor Details
-
SqmXmlElementExpression
public SqmXmlElementExpression(SqmFunctionDescriptor descriptor, FunctionRenderer renderer, List<? extends SqmTypedNode<?>> arguments, @Nullable ReturnableType<String> impliedResultType, @Nullable ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, NodeBuilder nodeBuilder, String name)
-
-
Method Details
-
attribute
Description copied from interface:JpaXmlElementExpressionPasses the givenExpressionas value for the XML attribute with the given name.- Specified by:
attributein interfaceJpaXmlElementExpression- Returns:
thisfor method chaining
-
content
Description copied from interface:JpaXmlElementExpressionPasses the givenExpressions as value for the XML content of this element.- Specified by:
contentin interfaceJpaXmlElementExpression- Returns:
thisfor method chaining
-
content
Description copied from interface:JpaXmlElementExpressionPasses the givenExpressions as value for the XML content of this element.- Specified by:
contentin interfaceJpaXmlElementExpression- Returns:
thisfor method chaining
-
copy
- Specified by:
copyin interfaceSqmExpression<String>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<String>- Specified by:
copyin interfaceSqmTypedNode<String>- Overrides:
copyin classSelfRenderingSqmFunction<String>
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classSqmFunction<String>
-