Top Description Constructors Methods
org.hibernate.dialect.function

public Class ConditionalParenthesisFunction

extends StandardSQLFunction
Class Inheritance
Imports
java.util.List, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.type.Type

Essentially the same as org.hibernate.dialect.function.StandardSQLFunction, except that here the parentheses are not included when no arguments are given.
Author
Jonathan Levinson

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
Inherited from org.hibernate.dialect.function.StandardSQLFunction:
getNamegetReturnTypegetTypehasArgumentsrendertoString

Constructor Detail

ConditionalParenthesisFunctionback to summary
public ConditionalParenthesisFunction(String name)
ConditionalParenthesisFunctionback to summary
public ConditionalParenthesisFunction(String name, Type type)

Method Detail

hasParenthesesIfNoArgumentsback to summary
public boolean hasParenthesesIfNoArguments()

Overrides org.hibernate.dialect.function.StandardSQLFunction.hasParenthesesIfNoArguments.

Implements org.hibernate.dialect.function.SQLFunction.hasParenthesesIfNoArguments.

Doc from org.hibernate.dialect.function.StandardSQLFunction.hasParenthesesIfNoArguments.

If there are no arguments, are parentheses required?

Returns:boolean

Doc from org.hibernate.dialect.function.SQLFunction.hasParenthesesIfNoArguments.

True if a no-arg call of this function requires parentheses.

renderback to summary
public String render(List<E> args, SessionFactoryImplementor factory)