org.hibernate.dialect.function
Class ConditionalParenthesisFunction
java.lang.Object
org.hibernate.dialect.function.StandardSQLFunction
org.hibernate.dialect.function.ConditionalParenthesisFunction
- All Implemented Interfaces:
- SQLFunction
public class ConditionalParenthesisFunction
- extends StandardSQLFunction
Essentially the same as StandardSQLFunction
,
except that here the parentheses are not included when no arguments are given.
- Author:
- Jonathan Levinson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConditionalParenthesisFunction
public ConditionalParenthesisFunction(java.lang.String name)
ConditionalParenthesisFunction
public ConditionalParenthesisFunction(java.lang.String name,
Type type)
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
- Description copied from class:
StandardSQLFunction
- If there are no arguments, are parens required?
- Specified by:
hasParenthesesIfNoArguments
in interface SQLFunction
- Overrides:
hasParenthesesIfNoArguments
in class StandardSQLFunction
- Returns:
- True if a no-arg call of this function requires parentheses.
render
public java.lang.String render(java.util.List args,
SessionFactoryImplementor factory)
- Description copied from class:
StandardSQLFunction
- Render the function call as SQL fragment.
- Specified by:
render
in interface SQLFunction
- Overrides:
render
in class StandardSQLFunction
- Parameters:
args
- The function argumentsfactory
- The SessionFactory
- Returns:
- The rendered function call
Copyright © 2008 Hibernate.org. All Rights Reserved.