Class SqmXmlElementExpression
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<T>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<T>
org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<T>
org.hibernate.query.sqm.tree.expression.SqmFunction<T>
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 TypeMethodDescriptionvoid
attribute
(String attributeName, Expression<?> expression) Passes the givenExpression
as value for the XML attribute with the given name.content
(Expression<?>... expressions) Passes the givenExpression
s as value for the XML content of this element.content
(List<? extends Expression<?>> expressions) Passes the givenExpression
s 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, resolveSqlAstArguments
Methods inherited from class org.hibernate.query.sqm.tree.expression.SqmFunction
accept, getArguments, getFunctionDescriptor, getFunctionName, resolveIndexedAccess, resolvePathPart
Methods 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, notEqualTo
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
alias, getSelectionItems, isCompoundSelection
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnum
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
castAs, visitSubSelectableNodes
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
Methods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLength
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
Methods 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:JpaXmlElementExpression
Passes the givenExpression
as value for the XML attribute with the given name.- Specified by:
attribute
in interfaceJpaXmlElementExpression
- Returns:
this
for method chaining
-
content
Description copied from interface:JpaXmlElementExpression
Passes the givenExpression
s as value for the XML content of this element.- Specified by:
content
in interfaceJpaXmlElementExpression
- Returns:
this
for method chaining
-
content
Description copied from interface:JpaXmlElementExpression
Passes the givenExpression
s as value for the XML content of this element.- Specified by:
content
in interfaceJpaXmlElementExpression
- Returns:
this
for method chaining
-
copy
- Specified by:
copy
in interfaceSqmExpression<String>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmSelectableNode<String>
- Specified by:
copy
in interfaceSqmTypedNode<String>
- Overrides:
copy
in classSelfRenderingSqmFunction<String>
-
appendHqlString
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
- Overrides:
appendHqlString
in classSqmFunction<String>
-