org.hibernate.dialect.function

Class StandardJDBCEscapeFunction

Implemented Interfaces:
SQLFunction

public class StandardJDBCEscapeFunction
extends StandardSQLFunction

Analogous to StandardSQLFunction except that standard JDBC escape sequences (i.e. {fn blah}) are used when rendering the SQL.
Author:
Steve Ebersole

Constructor Summary

StandardJDBCEscapeFunction(String name)
StandardJDBCEscapeFunction(String name, Type typeValue)

Method Summary

String
render(List args, SessionFactoryImplementor factory)
Render the function call as SQL fragment.
String
toString()

Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction

getName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, render, toString

Constructor Details

StandardJDBCEscapeFunction

public StandardJDBCEscapeFunction(String name)

StandardJDBCEscapeFunction

public StandardJDBCEscapeFunction(String name,
                                  Type typeValue)

Method Details

render

public String render(List args,
                     SessionFactoryImplementor factory)
Render the function call as SQL fragment.
Specified by:
render in interface SQLFunction
Overrides:
render in interface StandardSQLFunction
Parameters:
args - The function arguments
factory - The SessionFactory
Returns:
The rendered function call

toString

public String toString()
Overrides:
toString in interface StandardSQLFunction