Package org.hibernate.dialect.function
Class TemplateRenderer
- java.lang.Object
-
- org.hibernate.dialect.function.TemplateRenderer
-
public class TemplateRenderer extends Object
Delegate for handling function "templates".
-
-
Constructor Summary
Constructors Constructor Description TemplateRenderer(String template)
Constructs a template renderer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAnticipatedNumberOfArguments()
String
getTemplate()
String
render(List args, SessionFactoryImplementor factory)
The rendering code.
-
-
-
Constructor Detail
-
TemplateRenderer
public TemplateRenderer(String template)
Constructs a template renderer- Parameters:
template
- The template
-
-
Method Detail
-
getTemplate
public String getTemplate()
-
getAnticipatedNumberOfArguments
public int getAnticipatedNumberOfArguments()
-
render
public String render(List args, SessionFactoryImplementor factory)
The rendering code.- Parameters:
args
- The arguments to inject into the templatefactory
- The SessionFactory- Returns:
- The rendered template with replacements
-
-