org.hibernate.dialect.function
Class ClassicAvgFunction
- SQLFunction
public class ClassicAvgFunction
Classic AVG sqlfunction that return types as it was done in Hibernate 3.1
ClassicAvgFunction
public ClassicAvgFunction()
getReturnType
public Type getReturnType(Type columnType,
Mapping mapping)
throws QueryException
The return type of the function. May be either a concrete type which
is preset, or variable depending upon the type of the first function
argument.
- getReturnType in interface SQLFunction
- getReturnType in interface StandardSQLFunction
columnType
- the type of the first argumentmapping
- The mapping source.
- The type to be expected as a return.