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, getRenderedName, getReturnType, getType, hasArguments, toString
public ConditionalParenthesisFunction(String name)
name
- The function namepublic boolean hasParenthesesIfNoArguments()
SQLFunction
hasParenthesesIfNoArguments
in interface SQLFunction
hasParenthesesIfNoArguments
in class StandardSQLFunction
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor sessionFactory)
SQLFunction
SQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)
render
in interface SQLFunction
render
in class StandardSQLFunction
firstArgumentType
- The type of the first argumentarguments
- The function argumentssessionFactory
- The SessionFactoryCopyright © 2019 JBoss by Red Hat. All rights reserved.