Top Description Fields Constructors Methods
org.hibernate.metamodel.mapping.ordering

public Class OrderByFragmentTranslator

extends Object
Class Inheritance
Imports
org.hibernate.grammars.ordering.OrderingLexer, .OrderingParser, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.metamodel.mapping.ordering.ast.ParseTreeVisitor, org.jboss.logging.Logger, org.antlr.v4.runtime.BailErrorStrategy, .BufferedTokenStream, .CharStreams, .ConsoleErrorListener, .DefaultErrorStrategy, org.antlr.v4.runtime.atn.PredictionMode, org.antlr.v4.runtime.misc.ParseCancellationException

Responsible for performing the translation of the order-by fragment associated with an order set or map.
Author
Steve Ebersole
See Also
jakarta.persistence.OrderBy, org.hibernate.annotations.OrderBy

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static OrderingParser.OrderByFragmentContext
public static OrderByFragment

Returns:

The translation.
translate
(String fragment, PluralAttributeMapping pluralAttributeMapping, TranslationContext context)

Perform the translation of the user-supplied fragment, returning the translation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

OrderByFragmentTranslatorback to summary
public OrderByFragmentTranslator()

Method Detail

buildParseTreeback to summary
private static OrderingParser.OrderByFragmentContext buildParseTree(TranslationContext context, String fragment)
translateback to summary
public static OrderByFragment translate(String fragment, PluralAttributeMapping pluralAttributeMapping, TranslationContext context)

Perform the translation of the user-supplied fragment, returning the translation.

API Note

The important distinction to this split between (1) translating and (2) resolving aliases is that both happen at different times. This is performed at boot-time while building the CollectionPersister happens at runtime while loading the described collection

Returns:OrderByFragment

The translation.