java.lang.Object | |
↳ | org.hibernate.sql.Template |
Parses SQL fragments specified in mapping documents
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Template.NoOpColumnMapper |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TEMPLATE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs order-by template rendering allowing
column mapping . | |||||||||||
This method is deprecated.
Use
renderOrderByStringTemplate(String, ColumnMapper, SessionFactoryImplementor, Dialect, SQLFunctionRegistry) instead
| |||||||||||
This method is deprecated.
Only intended for annotations usage; use
renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry) instead
| |||||||||||
Takes the where condition provided in the mapping attribute and interpolates the alias.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Performs order-by template rendering allowing column mapping
. An ORDER BY template
has all column references "qualified" with a placeholder identified by TEMPLATE
which can later
be used to easily inject the SQL alias.
orderByFragment | The order-by fragment to render. |
---|---|
columnMapper | The column mapping strategy to use. |
sessionFactory | The session factory. |
dialect | The SQL dialect being used. |
functionRegistry | The SQL function registry |
This method is deprecated.
Use renderOrderByStringTemplate(String, ColumnMapper, SessionFactoryImplementor, Dialect, SQLFunctionRegistry)
instead
Performs order-by template rendering without column mapping
. An ORDER BY template
has all column references "qualified" with a placeholder identified by TEMPLATE
orderByFragment | The order-by fragment to render. |
---|---|
dialect | The SQL dialect being used. |
functionRegistry | The SQL function registry |
This method is deprecated.
Only intended for annotations usage; use renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry)
instead
Same functionality as 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.
Takes the where condition provided in the mapping attribute and interpolates the alias. Handles sub-selects, quoted identifiers, quoted strings, expressions, SQL functions, named parameters.
sqlWhereString | The string into which to interpolate the placeholder value |
---|---|
placeholder | The value to be interpolated into the the sqlWhereString |
dialect | The dialect to apply |
functionRegistry | The registry of all sql functions |