org.hibernate.dialect.function

Class PositionSubstringFunction

Implemented Interfaces:
SQLFunction

public class PositionSubstringFunction
extends java.lang.Object
implements SQLFunction

Emulation of locate() on PostgreSQL
Author:
Gavin King

Method Summary

Type
getReturnType(Type columnType, Mapping mapping)
boolean
hasArguments()
boolean
hasParenthesesIfNoArguments()
String
render(List args, SessionFactoryImplementor factory)

Method Details

getReturnType

public Type getReturnType(Type columnType,
                          Mapping mapping)
            throws QueryException
Specified by:
getReturnType in interface SQLFunction

hasArguments

public boolean hasArguments()
Specified by:
hasArguments in interface SQLFunction

hasParenthesesIfNoArguments

public boolean hasParenthesesIfNoArguments()
Specified by:
hasParenthesesIfNoArguments in interface SQLFunction

render

public String render(List args,
                     SessionFactoryImplementor factory)
            throws QueryException
Specified by:
render in interface SQLFunction