Top Description Constructors Methods
org.hibernate.dialect.function

public Class ClassicCountFunction

extends StandardSQLFunction
Class Inheritance
Imports
org.hibernate.engine.Mapping, org.hibernate.type.StandardBasicTypes, .Type

Classic COUNT sqlfunction that return types as it was done in Hibernate 3.1
Author
Max Rydahl Andersen

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Type
getReturnType(Type
The type of the first argument
columnType
,
Mapping
The mapping source.
mapping
)

Overrides org.hibernate.dialect.function.StandardSQLFunction.getReturnType.

Implements org.hibernate.dialect.function.SQLFunction.getReturnType.

The return type of the function.
Inherited from org.hibernate.dialect.function.StandardSQLFunction:
getNamegetTypehasArgumentshasParenthesesIfNoArgumentsrendertoString

Constructor Detail

ClassicCountFunctionback to summary
public ClassicCountFunction()

Method Detail

getReturnTypeback to summary
public Type getReturnType(Type columnType, Mapping mapping)

Overrides org.hibernate.dialect.function.StandardSQLFunction.getReturnType.

Implements org.hibernate.dialect.function.SQLFunction.getReturnType.

Doc from org.hibernate.dialect.function.StandardSQLFunction.getReturnType.

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

Parameters
columnType:Type

Doc from org.hibernate.dialect.function.SQLFunction.getReturnType.

The type of the first argument

mapping:Mapping

Doc from org.hibernate.dialect.function.SQLFunction.getReturnType.

The mapping source.

Returns:Type

Doc from org.hibernate.dialect.function.SQLFunction.getReturnType.

The type to be expected as a return.