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>, SqmCacheable, 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 SelfRenderingSqmFunction
convertToSqlAst, determineResultType, getArgumentsValidator, getFunctionRenderer, getImpliedResultType, getMappingModelExpressible, getNodeType, getReturnTypeResolver, resolveResultType, resolveSqlAstArgumentsMethods inherited from class SqmFunction
accept, cacheHashCode, equals, getArguments, getFunctionDescriptor, getFunctionName, hashCode, isCompatible, resolveIndexedAccess, resolvePathPartMethods inherited from class AbstractSqmExpression
applyInferableType, as, cast, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualToMethods inherited from class AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleTypeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface SqmExpression
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, castAs, visitSubSelectableNodesMethods inherited from interface SqmNode
asLoggableTextMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
toHqlStringMethods inherited from interface 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>
-