public class

ConditionalParenthesisFunction

extends StandardSQLFunction
java.lang.Object
   ↳ org.hibernate.dialect.function.StandardSQLFunction
     ↳ org.hibernate.dialect.function.ConditionalParenthesisFunction

Class Overview

Essentially the same as StandardSQLFunction, except that here the parentheses are not included when no arguments are given.

Summary

Public Constructors
ConditionalParenthesisFunction(String name)
ConditionalParenthesisFunction(String name, Type type)
Public Methods
boolean hasParenthesesIfNoArguments()
If there are no arguments, are parentheses required?
String render(List args, SessionFactoryImplementor factory)
[Expand]
Inherited Methods
From class org.hibernate.dialect.function.StandardSQLFunction
From class java.lang.Object
From interface org.hibernate.dialect.function.SQLFunction

Public Constructors

public ConditionalParenthesisFunction (String name)

public ConditionalParenthesisFunction (String name, Type type)

Public Methods

public boolean hasParenthesesIfNoArguments ()

If there are no arguments, are parentheses required?

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

public String render (List args, SessionFactoryImplementor factory)