| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.dialect.function.NoArgSQLFunction
public class NoArgSQLFunction
A function which takes no arguments
| Constructor Summary | |
|---|---|
| NoArgSQLFunction(String name,
                 Type returnType) | |
| NoArgSQLFunction(String name,
                 Type returnType,
                 boolean hasParenthesesIfNoArguments) | |
| Method Summary | |
|---|---|
|  Type | getReturnType(Type argumentType,
              Mapping mapping)The return type of the function. | 
|  boolean | hasArguments()Does this function have any arguments? | 
|  boolean | hasParenthesesIfNoArguments()If there are no arguments, are parentheses required? | 
|  String | render(Type argumentType,
       List args,
       SessionFactoryImplementor factory)Render the function call as SQL fragment. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NoArgSQLFunction(String name,
                        Type returnType)
public NoArgSQLFunction(String name,
                        Type returnType,
                        boolean hasParenthesesIfNoArguments)
| Method Detail | 
|---|
public boolean hasArguments()
SQLFunction
hasArguments in interface SQLFunctionpublic boolean hasParenthesesIfNoArguments()
SQLFunction
hasParenthesesIfNoArguments in interface SQLFunction
public Type getReturnType(Type argumentType,
                          Mapping mapping)
                   throws QueryException
SQLFunctionSQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.SessionFactoryImplementor)
getReturnType in interface SQLFunctionargumentType - The type of the first argumentmapping - The mapping source.
QueryException - Indicates an issue resolving the return type.
public String render(Type argumentType,
                     List args,
                     SessionFactoryImplementor factory)
              throws QueryException
SQLFunctionSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.Mapping)
render in interface SQLFunctionargumentType - The type of the first argumentargs - The function argumentsfactory - The SessionFactory
QueryException - Indicates a problem rendering the
 function call.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||