类 StandardAnsiSqlAggregationFunctions.AvgFunction
- java.lang.Object
-
- org.hibernate.dialect.function.StandardSQLFunction
-
- org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.AvgFunction
-
- 所有已实现的接口:
SQLFunction
- 直接已知子类:
AvgWithArgumentCastFunction
public static class StandardAnsiSqlAggregationFunctions.AvgFunction extends StandardSQLFunction
Definition of a standard ANSI SQL compliant AVG function
-
-
字段概要
字段 修饰符和类型 字段 说明 static StandardAnsiSqlAggregationFunctions.AvgFunctionINSTANCESingleton access
-
构造器概要
构造器 限定符 构造器 说明 protectedAvgFunction()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected intdetermineJdbcTypeCode(Type firstArgumentType, SessionFactoryImplementor factory)protected Stringrender(int firstArgumentJdbcType, String argument, SessionFactoryImplementor factory)Stringrender(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)Render the function call as SQL fragment.protected StringrenderArgument(String argument, int firstArgumentJdbcType)-
从类继承的方法 org.hibernate.dialect.function.StandardSQLFunction
getName, getRenderedName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, toString
-
-
-
-
字段详细资料
-
INSTANCE
public static final StandardAnsiSqlAggregationFunctions.AvgFunction INSTANCE
Singleton access
-
-
方法详细资料
-
render
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory) throws QueryException
从接口复制的说明: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 argumentsfactory- The SessionFactory- 返回:
- The rendered function call
- 抛出:
QueryException- Indicates a problem rendering the function call.
-
determineJdbcTypeCode
protected final int determineJdbcTypeCode(Type firstArgumentType, SessionFactoryImplementor factory) throws QueryException
- 抛出:
QueryException
-
render
protected String render(int firstArgumentJdbcType, String argument, SessionFactoryImplementor factory)
-
-