public final class Template extends Object
Modifier and Type | Method and Description |
---|---|
static String |
renderTransformerReadFragment(String fragment,
String... columnNames) |
static String |
renderWhereStringTemplate(String sqlWhereString,
Dialect dialect,
SqmFunctionRegistry functionRegistry) |
static String |
renderWhereStringTemplate(String sqlWhereString,
String placeholder,
Dialect dialect)
Deprecated.
Only intended for annotations usage; use
renderWhereStringTemplate(String, String, Dialect, SqmFunctionRegistry) instead |
static String |
renderWhereStringTemplate(String sqlWhereString,
String placeholder,
Dialect dialect,
SqmFunctionRegistry functionRegistry)
Takes the where condition provided in the mapping attribute and interpolates the alias.
|
public static final String TEMPLATE
public static String renderTransformerReadFragment(String fragment, String... columnNames)
public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, SqmFunctionRegistry functionRegistry)
@Deprecated public static String renderWhereStringTemplate(String sqlWhereString, String placeholder, Dialect dialect)
renderWhereStringTemplate(String, String, Dialect, SqmFunctionRegistry)
insteadrenderWhereStringTemplate(String, String, Dialect, SqmFunctionRegistry)
,
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, SqmFunctionRegistry 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 functionsCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.