java.lang.Object
org.hibernate.dialect.function.NvlFunction
- All Implemented Interfaces:
- SQLFunction
- public class NvlFunction
- extends java.lang.Object
- implements SQLFunction
Emulation of coalesce() on Oracle, using multiple
nvl() calls
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NvlFunction
public NvlFunction()
getReturnType
public org.hibernate.type.Type getReturnType(org.hibernate.type.Type columnType,
org.hibernate.engine.Mapping mapping)
throws org.hibernate.QueryException
- Description copied from interface:
SQLFunction
- The function return type
- Specified by:
getReturnType in interface SQLFunction
hasArguments
public boolean hasArguments()
- Description copied from interface:
SQLFunction
- Does this function have any arguments?
- Specified by:
hasArguments in interface SQLFunction
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
- Description copied from interface:
SQLFunction
- If there are no arguments, are parens required?
- Specified by:
hasParenthesesIfNoArguments in interface SQLFunction
render
public java.lang.String render(java.util.List args,
org.hibernate.engine.SessionFactoryImplementor factory)
throws org.hibernate.QueryException
- Description copied from interface:
SQLFunction
- Render the function call as SQL
- Specified by:
render in interface SQLFunction