Tabnine Logo
Template.translateOrderBy
Code IndexAdd Tabnine to your IDE (free)

How to use
translateOrderBy
method
in
org.hibernate.sql.Template

Best Java code snippets using org.hibernate.sql.Template.translateOrderBy (Showing top 3 results out of 315)

origin: hibernate/hibernate-orm

public static String renderOrderByStringTemplate(
    String orderByFragment,
    final ColumnMapper columnMapper,
    final SessionFactoryImplementor sessionFactory,
    final Dialect dialect,
    final SQLFunctionRegistry functionRegistry) {
  return translateOrderBy(
      orderByFragment,
      columnMapper,
      sessionFactory,
      dialect,
      functionRegistry
  ).injectAliases( LEGACY_ORDER_BY_ALIAS_RESOLVER );
}
origin: hibernate/hibernate-orm

while( fragmentIterator.hasNext() ) {
  final Pair<String, String> fragment = fragmentIterator.next();
  final OrderByTranslation orderByFragmentTranslation = Template.translateOrderBy(
      fragment.getSecond(),
      new ColumnMapper() {
origin: hibernate/hibernate-orm

if ( hasOrder ) {
  LOG.debugf( "Translating order-by fragment [%s] for collection role : %s",  collectionBinding.getOrderBy(), getRole() );
  orderByTranslation = Template.translateOrderBy(
      collectionBinding.getOrderBy(),
      new ColumnMapperImpl(),
if ( hasManyToManyOrder ) {
  LOG.debugf( "Translating many-to-many order-by fragment [%s] for collection role : %s",  collectionBinding.getOrderBy(), getRole() );
  manyToManyOrderByTranslation = Template.translateOrderBy(
      collectionBinding.getManyToManyOrdering(),
      new ColumnMapperImpl(),
org.hibernate.sqlTemplatetranslateOrderBy

Javadoc

Performs order-by template rendering allowing ColumnMapper. An ORDER BY template has all column references "qualified" with a placeholder identified by Template#TEMPLATE which can later be used to easily inject the SQL alias.

Popular methods of Template

  • renderWhereStringTemplate
  • isNamedParameter
  • renderOrderByStringTemplate
    Performs order-by template rendering allowing ColumnMapper. An ORDER BY template has all column refe
  • isFunction
  • isIdentifier
  • extractUntil
  • isFunctionOrKeyword
  • isBoolean
  • isType
  • renderTransformerReadFragment

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now