public class ConditionalParenthesisFunction extends StandardSQLFunction
StandardSQLFunction,
except that here the parentheses are not included when no arguments are given.| Constructor and Description |
|---|
ConditionalParenthesisFunction(java.lang.String name)
Constructs a ConditionalParenthesisFunction with the given name
|
ConditionalParenthesisFunction(java.lang.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?
|
java.lang.String |
render(Type firstArgumentType,
java.util.List arguments,
SessionFactoryImplementor sessionFactory)
Render the function call as SQL fragment.
|
getName, getRenderedName, getReturnType, getType, hasArguments, toStringpublic ConditionalParenthesisFunction(java.lang.String name)
name - The function namepublic ConditionalParenthesisFunction(java.lang.String name,
Type type)
name - The function nametype - The function return typepublic boolean hasParenthesesIfNoArguments()
SQLFunctionhasParenthesesIfNoArguments in interface SQLFunctionhasParenthesesIfNoArguments in class StandardSQLFunctionpublic java.lang.String render(Type firstArgumentType, java.util.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.