public class

ClassicCountFunction

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

Class Overview

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

Summary

Public Constructors
ClassicCountFunction()
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 ClassicCountFunction ()

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.