Package org.hibernate.dialect.function
Class ClassicAvgFunction
java.lang.Object
org.hibernate.dialect.function.StandardSQLFunction
org.hibernate.dialect.function.ClassicAvgFunction
- All Implemented Interfaces:
SQLFunction
Classic AVG sqlfunction that return types as it was done in Hibernate 3.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReturnType(Type columnType, Mapping mapping) The return type of the function.Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getName, getType, hasArguments, hasParenthesesIfNoArguments, render, toString
-
Constructor Details
-
ClassicAvgFunction
public ClassicAvgFunction()
-
-
Method Details
-
getReturnType
Description copied from class:StandardSQLFunctionThe 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. Note, the 'firstArgumentType' parameter should match the one passed intoSQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.SessionFactoryImplementor)- Specified by:
getReturnTypein interfaceSQLFunction- Overrides:
getReturnTypein classStandardSQLFunction- Parameters:
columnType- The type of the first argumentmapping- The mapping source.- Returns:
- The type to be expected as a return.
- Throws:
QueryException- Indicates an issue resolving the return type.
-