Top Description Fields Constructors Methods
org.hibernate.query.sqm.tree.expression

public Class SqmFormat

extends SqmLiteral<String>
Class Inheritance
Imports
java.util.regex.Pattern, org.hibernate.query.SemanticException, org.hibernate.query.sqm.NodeBuilder, .SemanticQueryWalker, .SqmExpressible, org.hibernate.query.sqm.tree.SqmCopyContext

Effectively a query-literal but we want to handle it specially in the SQM to SQL AST conversion
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
public
SqmFormat(String value, SqmExpressible<String> inherentType, NodeBuilder nodeBuilder)

Method Summary

Modifier and TypeMethod and Description
public <R> R
public void
public SqmFormat
Inherited from org.hibernate.query.sqm.tree.expression.SqmLiteral:
appendHqlStringasLoggableTextgetLiteralValue

Field Detail

FORMATback to summary
private static final Pattern FORMAT

Constructor Detail

SqmFormatback to summary
public SqmFormat(String value, SqmExpressible<String> inherentType, NodeBuilder nodeBuilder)

Method Detail

acceptback to summary
public <R> R accept(SemanticQueryWalker<R> walker)

Overrides org.hibernate.query.sqm.tree.expression.SqmLiteral.accept.

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Doc from org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation

Annotations
@Override
appendHqlStringback to summary
public void appendHqlString(StringBuilder sb)

Overrides org.hibernate.query.sqm.tree.expression.SqmLiteral.appendHqlString.

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.appendHqlString.

Annotations
@Override
copyback to summary
public SqmFormat copy(SqmCopyContext context)

Overrides org.hibernate.query.sqm.tree.expression.SqmLiteral.copy.

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.copy, org.hibernate.query.sqm.tree.select.SqmSelectableNode.copy, org.hibernate.query.sqm.tree.SqmNode.copy.

Annotations
@Override