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

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

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

origin: hibernate/hibernate-orm

/**
 * Performs order-by template rendering without {@link ColumnMapper column mapping}.  An <tt>ORDER BY</tt> template
 * has all column references "qualified" with a placeholder identified by {@link Template#TEMPLATE}
 *
 * @param orderByFragment The order-by fragment to render.
 * @param dialect The SQL dialect being used.
 * @param functionRegistry The SQL function registry
 *
 * @return The rendered <tt>ORDER BY</tt> template.
 *
 * @deprecated Use {@link #translateOrderBy} instead
 */
@Deprecated
public static String renderOrderByStringTemplate(
    String orderByFragment,
    Dialect dialect,
    SQLFunctionRegistry functionRegistry) {
  return renderOrderByStringTemplate(
      orderByFragment,
      NoOpColumnMapper.INSTANCE,
      null,
      dialect,
      functionRegistry
  );
}
origin: hibernate/hibernate-orm

  public String doStandardRendering(String fragment) {
    return Template.renderOrderByStringTemplate( fragment, MAPPER, SESSION_FACTORY, DIALECT, FUNCTION_REGISTRY );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Performs order-by template rendering without {@link ColumnMapper column mapping}.  An <tt>ORDER BY</tt> template
 * has all column references "qualified" with a placeholder identified by {@link Template#TEMPLATE}
 *
 * @param orderByFragment The order-by fragment to render.
 * @param dialect The SQL dialect being used.
 * @param functionRegistry The SQL function registry
 *
 * @return The rendered <tt>ORDER BY</tt> template.
 *
 * @deprecated Use {@link #renderOrderByStringTemplate(String,ColumnMapper,SessionFactoryImplementor,Dialect,SQLFunctionRegistry)} instead
 */
@Deprecated
public static String renderOrderByStringTemplate(
    String orderByFragment,
    Dialect dialect,
    SQLFunctionRegistry functionRegistry) {
  return renderOrderByStringTemplate(
      orderByFragment,
      NoOpColumnMapper.INSTANCE,
      null,
      dialect,
      functionRegistry
  );
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Performs order-by template rendering without {@link ColumnMapper column mapping}.  An <tt>ORDER BY</tt> template
 * has all column references "qualified" with a placeholder identified by {@link Template#TEMPLATE}
 *
 * @param orderByFragment The order-by fragment to render.
 * @param dialect The SQL dialect being used.
 * @param functionRegistry The SQL function registry
 *
 * @return The rendered <tt>ORDER BY</tt> template.
 *
 * @deprecated Use {@link #renderOrderByStringTemplate(String,ColumnMapper,SessionFactoryImplementor,Dialect,SQLFunctionRegistry)} instead
 */
@Deprecated
public static String renderOrderByStringTemplate(
    String orderByFragment,
    Dialect dialect,
    SQLFunctionRegistry functionRegistry) {
  return renderOrderByStringTemplate(
      orderByFragment,
      NoOpColumnMapper.INSTANCE,
      null,
      dialect,
      functionRegistry
  );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

hasOrder = sqlOrderByString != null;
sqlOrderByStringTemplate = hasOrder ?
    Template.renderOrderByStringTemplate(sqlOrderByString, dialect, factory.getSqlFunctionRegistry()) :
    null;
sqlWhereString = StringHelper.isNotEmpty( collection.getWhere() ) ? "( " + collection.getWhere() + ") " : null;
origin: hibernate/hibernate

hasOrder = sqlOrderByString != null;
sqlOrderByStringTemplate = hasOrder ?
    Template.renderOrderByStringTemplate(sqlOrderByString, dialect) :
    null;
sqlWhereString = collection.getWhere();
origin: org.hibernate/com.springsource.org.hibernate.core

sqlOrderByStringTemplate = Template.renderOrderByStringTemplate(
    collection.getOrderBy(),
    mapper,
manyToManyOrderByTemplate = Template.renderOrderByStringTemplate(
    collection.getManyToManyOrdering(),
    mapper,
origin: org.hibernate/com.springsource.org.hibernate

sqlOrderByStringTemplate = Template.renderOrderByStringTemplate(
    collection.getOrderBy(),
    mapper,
manyToManyOrderByTemplate = Template.renderOrderByStringTemplate(
    collection.getManyToManyOrdering(),
    mapper,
org.hibernate.sqlTemplaterenderOrderByStringTemplate

Javadoc

Takes order by clause provided in the mapping attribute and interpolates the alias. Handles asc, desc, SQL functions, quoted identifiers.

Popular methods of Template

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

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JCheckBox (javax.swing)
  • Top plugins for Android Studio
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