org.hibernate.sql.ordering.antlr
Class OrderByFragmentTranslator

java.lang.Object
  extended by org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator

public class OrderByFragmentTranslator
extends Object

A translator for order-by mappings, whether specified by hbm.xml files, Hibernate OrderBy annotation or JPA OrderBy annotation.


Nested Class Summary
static class OrderByFragmentTranslator.StandardOrderByTranslationImpl
           
 
Constructor Summary
OrderByFragmentTranslator()
           
 
Method Summary
static OrderByTranslation translate(TranslationContext context, String fragment)
          Perform the translation of the user-supplied fragment, returning the translation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderByFragmentTranslator

public OrderByFragmentTranslator()
Method Detail

translate

public static OrderByTranslation translate(TranslationContext context,
                                           String fragment)
Perform the translation of the user-supplied fragment, returning the translation.

The important distinction to this split between (1) translating and (2) resolving aliases is that both happen at different times

Parameters:
context - Context giving access to delegates needed during translation.
fragment - The user-supplied order-by fragment
Returns:
The translation.


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.