java.lang.Object
org.hibernate.dialect.function.NoArgSQLFunction
- All Implemented Interfaces:
- SQLFunction
- public class NoArgSQLFunction
- extends java.lang.Object
- implements SQLFunction
A function which takes no arguments
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
returnType
private org.hibernate.type.Type returnType
hasParenthesesIfNoArguments
private boolean hasParenthesesIfNoArguments
name
private java.lang.String name
NoArgSQLFunction
public NoArgSQLFunction(java.lang.String name,
org.hibernate.type.Type returnType)
NoArgSQLFunction
public NoArgSQLFunction(java.lang.String name,
org.hibernate.type.Type returnType,
boolean hasParenthesesIfNoArguments)
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