Top Description Constructors Methods
org.hibernate.dialect.function

public Class StandardJDBCEscapeFunction

extends StandardSQLFunction
Class Inheritance
Imports
java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.type.Type

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

Constructor Summary

AccessConstructor and Description
public
StandardJDBCEscapeFunction(String
The function name
name
,
Type
The function return type
typeValue
)

Constructs a StandardJDBCEscapeFunction

Method Summary

Modifier and TypeMethod and Description
public String
render(Type
The type of the first argument
argumentType
,
List<E>
The function arguments
args
,
SessionFactoryImplementor
The SessionFactory
factory
)

Overrides org.hibernate.dialect.function.StandardSQLFunction.render.

Implements org.hibernate.dialect.function.SQLFunction.render.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Render the function call as SQL fragment.
public String
toString()

Overrides org.hibernate.dialect.function.StandardSQLFunction.toString.

Returns a string representation of the object.
Inherited from org.hibernate.dialect.function.StandardSQLFunction:
getNamegetRenderedNamegetReturnTypegetTypehasArgumentshasParenthesesIfNoArguments

Constructor Detail

StandardJDBCEscapeFunctionback to summary
public StandardJDBCEscapeFunction(String name, Type typeValue)

Constructs a StandardJDBCEscapeFunction

Parameters
name:String

The function name

typeValue:Type

The function return type

Method Detail

renderback to summary
public String render(Type argumentType, List<E> args, SessionFactoryImplementor factory)

Overrides org.hibernate.dialect.function.StandardSQLFunction.render.

Implements org.hibernate.dialect.function.SQLFunction.render.

Doc from org.hibernate.dialect.function.SQLFunction.render.

Deprecated

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

Render the function call as SQL fragment.

Note, the 'firstArgumentType' parameter should match the one passed into getReturnType

Parameters
argumentType:Type

The type of the first argument

args:List<E>

The function arguments

factory:SessionFactoryImplementor

The SessionFactory

Returns:String

The rendered function call

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.hibernate.dialect.function.StandardSQLFunction.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override