Class SqmFormat
- 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.SqmLiteral<String>
-
- org.hibernate.query.sqm.tree.expression.SqmFormat
-
- All Implemented Interfaces:
Expression<String>
,Selection<String>
,TupleElement<String>
,Serializable
,JpaCriteriaNode
,JpaExpression<String>
,JpaSelection<String>
,JpaTupleElement<String>
,SqmExpression<String>
,SqmSelectableNode<String>
,SqmExpressibleAccessor<String>
,SqmNode
,SqmTypedNode<String>
,SqmVisitableNode
public class SqmFormat extends SqmLiteral<String>
Effectively a query-literal but we want to handle it specially in the SQM to SQL AST conversion- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmFormat(String value, SqmExpressible<String> inherentType, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SemanticQueryWalker<R> walker)
Accept the walker per visitationvoid
appendHqlString(StringBuilder sb)
SqmFormat
copy(SqmCopyContext context)
-
Methods inherited from class org.hibernate.query.sqm.tree.expression.SqmLiteral
appendHqlString, asLoggableText, getLiteralValue
-
Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
alias, applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
getSelectionItems, isCompoundSelection
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, getNodeType, 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
getCompoundSelectionItems, getSelectionItems
-
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType
-
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
-
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
castAs, getNodeType, visitSubSelectableNodes
-
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 Detail
-
SqmFormat
public SqmFormat(String value, SqmExpressible<String> inherentType, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmFormat copy(SqmCopyContext context)
- 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 classSqmLiteral<String>
-
accept
public <R> R accept(SemanticQueryWalker<R> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
- Overrides:
accept
in classSqmLiteral<String>
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
- Overrides:
appendHqlString
in classSqmLiteral<String>
-
-