类 ConditionalParenthesisFunction
- java.lang.Object
-
- org.hibernate.dialect.function.StandardSQLFunction
-
- org.hibernate.dialect.function.ConditionalParenthesisFunction
-
- 所有已实现的接口:
SQLFunction
public class ConditionalParenthesisFunction extends StandardSQLFunction
Essentially the same asStandardSQLFunction, except that here the parentheses are not included when no arguments are given.- 作者:
- Jonathan Levinson
-
-
构造器概要
构造器 构造器 说明 ConditionalParenthesisFunction(String name)Constructs a ConditionalParenthesisFunction with the given nameConditionalParenthesisFunction(String name, Type type)Constructs a ConditionalParenthesisFunction with the given name
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanhasParenthesesIfNoArguments()If there are no arguments, are parentheses required?Stringrender(Type firstArgumentType, List arguments, SessionFactoryImplementor sessionFactory)Render the function call as SQL fragment.-
从类继承的方法 org.hibernate.dialect.function.StandardSQLFunction
getName, getRenderedName, getReturnType, getType, hasArguments, toString
-
-
-
-
构造器详细资料
-
ConditionalParenthesisFunction
public ConditionalParenthesisFunction(String name)
Constructs a ConditionalParenthesisFunction with the given name- 参数:
name- The function name
-
-
方法详细资料
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
从接口复制的说明:SQLFunctionIf there are no arguments, are parentheses required?- 指定者:
hasParenthesesIfNoArguments在接口中SQLFunction- 覆盖:
hasParenthesesIfNoArguments在类中StandardSQLFunction- 返回:
- True if a no-arg call of this function requires parentheses.
-
render
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor sessionFactory)
从接口复制的说明:SQLFunctionRender the function call as SQL fragment. Note, the 'firstArgumentType' parameter should match the one passed intoSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)- 指定者:
render在接口中SQLFunction- 覆盖:
render在类中StandardSQLFunction- 参数:
firstArgumentType- The type of the first argumentarguments- The function argumentssessionFactory- The SessionFactory- 返回:
- The rendered function call
-
-