|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.sql.Template
public final class Template
Parses SQL fragments specified in mapping documents
Field Summary | |
---|---|
static String |
TEMPLATE
|
Method Summary | |
---|---|
static String |
renderOrderByStringTemplate(String sqlOrderByString,
Dialect dialect,
SQLFunctionRegistry functionRegistry)
Takes order by clause provided in the mapping attribute and interpolates the alias. |
static String |
renderWhereStringTemplate(String sqlWhereString,
Dialect dialect,
SQLFunctionRegistry functionRegistry)
|
static String |
renderWhereStringTemplate(String sqlWhereString,
String placeholder,
Dialect dialect)
Deprecated. Only intended for annotations usage; use renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry) instead |
static String |
renderWhereStringTemplate(String sqlWhereString,
String placeholder,
Dialect dialect,
SQLFunctionRegistry functionRegistry)
Takes the where condition provided in the mapping attribute and interpolates the alias. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEMPLATE
Method Detail |
---|
public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, SQLFunctionRegistry functionRegistry)
public static String renderWhereStringTemplate(String sqlWhereString, String placeholder, Dialect dialect)
renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry)
instead
renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry)
,
except that a SQLFunctionRegistry is not provided (i.e., only the dialect-defined functions are
considered). This is only intended for use by the annotations project until the
many-to-many/map-key-from-target-table feature is pulled into core.
public static String renderWhereStringTemplate(String sqlWhereString, String placeholder, Dialect dialect, SQLFunctionRegistry functionRegistry)
sqlWhereString
- The string into which to interpolate the placeholder valueplaceholder
- The value to be interpolated into the the sqlWhereStringdialect
- The dialect to applyfunctionRegistry
- The registry of all sql functions
public static String renderOrderByStringTemplate(String sqlOrderByString, Dialect dialect, SQLFunctionRegistry functionRegistry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |