Top Description Fields Constructors Methods
org.hibernate.dialect.function

public Class TemplateRenderer

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.CoreMessageLogger, org.jboss.logging.Logger

Delegate for handling function "templates".
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String[]
private static final CoreMessageLogger
private final int[]
private final String

Constructor Summary

AccessConstructor and Description
public
TemplateRenderer(String
The template
template
)

Constructs a template renderer

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String

Returns:

The rendered template with replacements
render
(List<E>
The arguments to inject into the template
args
,
SessionFactoryImplementor
The SessionFactory
factory
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
The rendering code.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chunksback to summary
private final String[] chunks
LOGback to summary
private static final CoreMessageLogger LOG
paramIndexesback to summary
private final int[] paramIndexes
templateback to summary
private final String template

Constructor Detail

TemplateRendererback to summary
public TemplateRenderer(String template)

Constructs a template renderer

Parameters
template:String

The template

Method Detail

getAnticipatedNumberOfArgumentsback to summary
public int getAnticipatedNumberOfArguments()
getTemplateback to summary
public String getTemplate()
renderback to summary
public String render(List<E> args, SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

The rendering code.

Parameters
args:List<E>

The arguments to inject into the template

factory:SessionFactoryImplementor

The SessionFactory

Returns:String

The rendered template with replacements

Annotations
@SuppressWarnings:UnusedDeclaration