|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.dialect.function.StandardSQLFunction
Provides a standard implementation that supports the majority of the HQL functions that are translated to SQL. The Dialect and its sub-classes use this class to provide details required for processing of the associated function.
Constructor Summary | |
StandardSQLFunction(String name)
|
|
StandardSQLFunction(String name,
Type typeValue)
|
Method Summary | |
Type |
getReturnType(Type columnType,
Mapping mapping)
The function return type |
boolean |
hasArguments()
Does this function have any arguments? |
boolean |
hasParenthesesIfNoArguments()
If there are no arguments, are parens required? |
String |
render(List args,
SessionFactoryImplementor factory)
Render the function call as SQL |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StandardSQLFunction(String name)
public StandardSQLFunction(String name, Type typeValue)
Method Detail |
public Type getReturnType(Type columnType, Mapping mapping)
SQLFunction
getReturnType
in interface SQLFunction
columnType
- the type of the first argumentpublic boolean hasArguments()
SQLFunction
hasArguments
in interface SQLFunction
public boolean hasParenthesesIfNoArguments()
SQLFunction
hasParenthesesIfNoArguments
in interface SQLFunction
public String render(List args, SessionFactoryImplementor factory)
SQLFunction
render
in interface SQLFunction
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |