public class

ClassicAvgFunction

extends StandardSQLFunction
java.lang.Object
   ↳ org.hibernate.dialect.function.StandardSQLFunction
     ↳ org.hibernate.dialect.function.ClassicAvgFunction

Class Overview

Classic AVG sqlfunction that return types as it was done in Hibernate 3.1

Summary

Public Constructors
ClassicAvgFunction()
Public Methods
Type getReturnType(Type columnType, Mapping mapping)
The return type of the function.
[Expand]
Inherited Methods
From class org.hibernate.dialect.function.StandardSQLFunction
From class java.lang.Object
From interface org.hibernate.dialect.function.SQLFunction

Public Constructors

public ClassicAvgFunction ()

Public Methods

public Type getReturnType (Type columnType, Mapping mapping)

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.

Note, the 'firstArgumentType' parameter should match the one passed into render(Type, List, SessionFactoryImplementor)

Parameters
columnType The type of the first argument
mapping The mapping source.
Returns
  • The type to be expected as a return.