net.sf.hibernate.dialect
Class NoArgSQLFunction

java.lang.Object
  extended bynet.sf.hibernate.dialect.NoArgSQLFunction
All Implemented Interfaces:
SQLFunction

public class NoArgSQLFunction
extends Object
implements SQLFunction

Author:
Michi

Constructor Summary
NoArgSQLFunction(Type returnType)
           
NoArgSQLFunction(Type returnType, boolean hasParenthesesIfNoArguments)
           
 
Method Summary
 Type getReturnType(Type columnType, Mapping mapping)
           
 boolean hasArguments()
           
 boolean hasParenthesesIfNoArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoArgSQLFunction

public NoArgSQLFunction(Type returnType)

NoArgSQLFunction

public NoArgSQLFunction(Type returnType,
                        boolean hasParenthesesIfNoArguments)
Method Detail

getReturnType

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

hasArguments

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

hasParenthesesIfNoArguments

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