public class ConditionalParenthesisFunction extends StandardSQLFunction
StandardSQLFunction,
except that here the parentheses are not included when no arguments are given.| Constructor and Description |
|---|
ConditionalParenthesisFunction(String name)
Constructs a ConditionalParenthesisFunction with the given name
|
ConditionalParenthesisFunction(String name,
Type type)
Constructs a ConditionalParenthesisFunction with the given name
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasParenthesesIfNoArguments()
If there are no arguments, are parentheses required?
|
String |
render(Type firstArgumentType,
List arguments,
SessionFactoryImplementor sessionFactory)
Render the function call as SQL fragment.
|
getName, getReturnType, getType, hasArguments, toStringpublic ConditionalParenthesisFunction(String name)
name - The function namepublic boolean hasParenthesesIfNoArguments()
SQLFunctionhasParenthesesIfNoArguments in interface SQLFunctionhasParenthesesIfNoArguments in class StandardSQLFunctionpublic String render(Type firstArgumentType, List arguments, SessionFactoryImplementor sessionFactory)
SQLFunctionSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)render in interface SQLFunctionrender in class StandardSQLFunctionfirstArgumentType - The type of the first argumentarguments - The function argumentssessionFactory - The SessionFactoryCopyright © 2017 JBoss by Red Hat. All rights reserved.