Top Description Fields Constructors Methods
org.hibernate.sql.ordering.antlr

public Class OrderByFragmentRenderer

extends GeneratedOrderByFragmentRenderer
Class Inheritance
Imports
org.hibernate.NullPrecedence, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.hql.internal.ast.util.ASTPrinter, .TokenPrinters, org.hibernate.internal.util.StringHelper, org.jboss.logging.Logger, antlr.collections.AST

Extension of the Antlr-generated tree walker for rendering the parsed order-by tree back to String form. out(antlr.collections.AST) is the sole semantic action here and it is used to utilize our split between text (tree debugging text) and "renderable text" (text to use during rendering).
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private int
Inherited from org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer:
_tokenNames

Constructor Summary

AccessConstructor and Description
public
OrderByFragmentRenderer(SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
private String
protected void
protected String
renderOrderByElement(String expression, String collation, String order, String nulls)

Overrides org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer.renderOrderByElement.

Implementation Note

This is just a stub.

public void
traceIn(String ruleName, AST tree)

Overrides antlr.TreeParser.traceIn.

public void
traceOut(String ruleName, AST tree)

Overrides antlr.TreeParser.traceOut.

Inherited from org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer:
collationSpecificationgetRenderedFragmentnullOrderingorderByFragmentorderingSpecificationoutsortKeysortKeySpecificationsortSpecification

Field Detail

LOGback to summary
private static final Logger LOG
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

traceDepthback to summary
private int traceDepth

Hides antlr.TreeParser.traceDepth.

Constructor Detail

OrderByFragmentRendererback to summary
public OrderByFragmentRenderer(SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

buildTraceNodeNameback to summary
private String buildTraceNodeName(AST tree)
outback to summary
protected void out(AST ast)

Overrides org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer.out.

Annotations
@Override
renderOrderByElementback to summary
protected String renderOrderByElement(String expression, String collation, String order, String nulls)

Overrides org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer.renderOrderByElement.

Doc from org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentRenderer.renderOrderByElement.

Implementation Note

This is just a stub. OrderByFragmentRenderer contains the effective implementation.

Annotations
@Override
traceInback to summary
public void traceIn(String ruleName, AST tree)

Overrides antlr.TreeParser.traceIn.

Annotations
@Override
traceOutback to summary
public void traceOut(String ruleName, AST tree)

Overrides antlr.TreeParser.traceOut.

Annotations
@Override