Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.dialect.function.StandardSQLFunction
org.hibernate.dialect.function.ConditionalParenthesisFunction
public class ConditionalParenthesisFunction
extends StandardSQLFunction
StandardSQLFunction
,
except that here the parentheses are not included when no arguments are given.
Constructor Summary | |
| |
|
Method Summary | |
boolean |
|
String |
|
Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction | |
getName , getReturnType , getType , hasArguments , hasParenthesesIfNoArguments , render , toString |
public boolean hasParenthesesIfNoArguments()
If there are no arguments, are parens required?
- Specified by:
- hasParenthesesIfNoArguments in interface SQLFunction
- Overrides:
- hasParenthesesIfNoArguments in interface StandardSQLFunction
- Returns:
- True if a no-arg call of this function requires parentheses.
public String render(List args, SessionFactoryImplementor factory)
Render the function call as SQL fragment.
- Specified by:
- render in interface SQLFunction
- Overrides:
- render in interface StandardSQLFunction
- Parameters:
args
- The function argumentsfactory
- The SessionFactory
- Returns:
- The rendered function call