Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.dialect.function
Class NvlFunction  view NvlFunction download NvlFunction.java

java.lang.Object
  extended byorg.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


Constructor Summary
NvlFunction()
           
 
Method Summary
 org.hibernate.type.Type getReturnType(org.hibernate.type.Type columnType, org.hibernate.engine.Mapping mapping)
          The function return type
 boolean hasArguments()
          Does this function have any arguments?
 boolean hasParenthesesIfNoArguments()
          If there are no arguments, are parens required?
 java.lang.String render(java.util.List args, org.hibernate.engine.SessionFactoryImplementor factory)
          Render the function call as SQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NvlFunction

public NvlFunction()
Method Detail

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