Class SqmFormat
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.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>, SqmCacheable, SqmExpressibleAccessor<String>, SqmNode, SqmTypedNode<String>, SqmVisitableNode
Effectively a query-literal but we want to handle it specially in the SQM to SQL AST conversion
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmFormat(String value, SqmBindableType<String> inherentType, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(SemanticQueryWalker<R> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) copy(SqmCopyContext context) @NonNull String@NonNull SqmBindableType<String> The expression's type.Methods inherited from class SqmLiteral
appendHqlString, asLoggableText, cacheHashCode, equals, hashCode, isCompatibleMethods 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, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface SqmExpression
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, castAs, visitSubSelectableNodesMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
SqmFormat
-
-
Method Details
-
getNodeType
Description copied from interface:SqmExpressionThe expression's type.Can change as a result of calls to
SqmExpression.applyInferableType(SqmBindableType)- Specified by:
getNodeTypein interfaceSqmExpression<String>- Specified by:
getNodeTypein interfaceSqmTypedNode<String>- Overrides:
getNodeTypein classAbstractJpaTupleElement<String>
-
getLiteralValue
- Overrides:
getLiteralValuein classSqmLiteral<String>
-
copy
- Specified by:
copyin interfaceSqmExpression<String>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<String>- Specified by:
copyin interfaceSqmTypedNode<String>- Overrides:
copyin classSqmLiteral<String>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode- Overrides:
acceptin classSqmLiteral<String>
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classSqmLiteral<String>
-