站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

ConditionalParenthesisFunction (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.dialect.function
Class ConditionalParenthesisFunction

java.lang.Object
  extended byorg.hibernate.dialect.function.StandardSQLFunction
      extended byorg.hibernate.dialect.function.ConditionalParenthesisFunction
All Implemented Interfaces:
SQLFunction

public class ConditionalParenthesisFunction
extends StandardSQLFunction

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

Author:
Jonathan Levinson

Constructor Summary
ConditionalParenthesisFunction(String name)
           
ConditionalParenthesisFunction(String name, Type type)
           
 
Method Summary
 boolean hasParenthesesIfNoArguments()
          If there are no arguments, are parens required?
 String render(List args, SessionFactoryImplementor factory)
          Render the function call as SQL fragment.
 
Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getName, getReturnType, getType, hasArguments, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionalParenthesisFunction

public ConditionalParenthesisFunction(String name)

ConditionalParenthesisFunction

public ConditionalParenthesisFunction(String name,
                                      Type type)
Method Detail

hasParenthesesIfNoArguments

public boolean hasParenthesesIfNoArguments()
Description copied from class: StandardSQLFunction
If there are no arguments, are parens required?

Specified by:
hasParenthesesIfNoArguments in interface SQLFunction
Overrides:
hasParenthesesIfNoArguments in class StandardSQLFunction

render

public String render(List args,
                     SessionFactoryImplementor factory)
Description copied from class: StandardSQLFunction
Render the function call as SQL fragment.

Specified by:
render in interface SQLFunction
Overrides:
render in class StandardSQLFunction