Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » sql » [javadoc | source]
org.hibernate.sql
public final class: Template [javadoc | source]
java.lang.Object
   org.hibernate.sql.Template
Parses SQL fragments specified in mapping documents
Field Summary
public static final  String TEMPLATE     
Method from org.hibernate.sql.Template Summary:
renderOrderByStringTemplate,   renderWhereStringTemplate,   renderWhereStringTemplate,   renderWhereStringTemplate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.sql.Template Detail:
 public static String renderOrderByStringTemplate(String sqlOrderByString,
    Dialect dialect,
    SQLFunctionRegistry functionRegistry) 
    Takes order by clause provided in the mapping attribute and interpolates the alias. Handles asc, desc, SQL functions, quoted identifiers.
 public static String renderWhereStringTemplate(String sqlWhereString,
    Dialect dialect,
    SQLFunctionRegistry functionRegistry) 
 public static String renderWhereStringTemplate(String sqlWhereString,
    String placeholder,
    Dialect dialect) 
Deprecated! Only - intended for annotations usage; use #renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry) instead

 public static String renderWhereStringTemplate(String sqlWhereString,
    String placeholder,
    Dialect dialect,
    SQLFunctionRegistry functionRegistry) 
    Takes the where condition provided in the mapping attribute and interpolates the alias. Handles subselects, quoted identifiers, quoted strings, expressions, SQL functions, named parameters.