org.hibernate.dialect.function
Class ClassicAvgFunction
java.lang.Object
org.hibernate.dialect.function.StandardSQLFunction
org.hibernate.dialect.function.ClassicAvgFunction
- All Implemented Interfaces:
- SQLFunction
public class ClassicAvgFunction
- extends StandardSQLFunction
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
- Description copied from class:
StandardSQLFunction
- 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
SQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor)
- Specified by:
getReturnType
in interface SQLFunction
- Overrides:
getReturnType
in class StandardSQLFunction
- 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.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.