类 AvgWithArgumentCastFunction
- java.lang.Object
-
- org.hibernate.dialect.function.StandardSQLFunction
-
- org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.AvgFunction
-
- org.hibernate.dialect.function.AvgWithArgumentCastFunction
-
- 所有已实现的接口:
SQLFunction
public class AvgWithArgumentCastFunction extends StandardAnsiSqlAggregationFunctions.AvgFunction
Some databases strictly return the type of the aggregation value for AVG which is problematic in the case of averaging integers because the decimals will be dropped. The usual workaround is to cast the integer argument as some form of double/decimal.- 作者:
- Steve Ebersole
-
-
字段概要
-
从类继承的字段 org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.AvgFunction
INSTANCE
-
-
构造器概要
构造器 构造器 说明 AvgWithArgumentCastFunction(String castType)Constructs a AvgWithArgumentCastFunction
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected StringrenderArgument(String argument, int firstArgumentJdbcType)-
从类继承的方法 org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.AvgFunction
determineJdbcTypeCode, render, render
-
从类继承的方法 org.hibernate.dialect.function.StandardSQLFunction
getName, getRenderedName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, toString
-
-