org.hibernate.sql.ordering.antlr
Class OrderByFragmentTranslator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderByFragmentTranslator
public OrderByFragmentTranslator()
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.