Package org.hibernate.dialect.function
Class StandardAnsiSqlAggregationFunctions.SumFunction
- java.lang.Object
-
- org.hibernate.dialect.function.StandardSQLFunction
-
- org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.SumFunction
-
- All Implemented Interfaces:
SQLFunction
- Enclosing class:
- StandardAnsiSqlAggregationFunctions
public static class StandardAnsiSqlAggregationFunctions.SumFunction extends StandardSQLFunction
Definition of a standard ANSI SQL compliant SUM function
-
-
Field Summary
Fields Modifier and Type Field Description static StandardAnsiSqlAggregationFunctions.SumFunction
INSTANCE
Singleton access
-
Constructor Summary
Constructors Modifier Constructor Description protected
SumFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
determineJdbcTypeCode(Type type, Mapping mapping)
Type
getReturnType(Type firstArgumentType, Mapping mapping)
The return type of the function.-
Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getName, getRenderedName, getType, hasArguments, hasParenthesesIfNoArguments, render, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final StandardAnsiSqlAggregationFunctions.SumFunction INSTANCE
Singleton access
-
-
Method Detail
-
getReturnType
public Type getReturnType(Type firstArgumentType, Mapping mapping)
Description copied from interface:SQLFunction
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 intoSQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor)
- Specified by:
getReturnType
in interfaceSQLFunction
- Overrides:
getReturnType
in classStandardSQLFunction
- Parameters:
firstArgumentType
- The type of the first argumentmapping
- The mapping source.- Returns:
- The type to be expected as a return.
-
determineJdbcTypeCode
protected final int determineJdbcTypeCode(Type type, Mapping mapping) throws QueryException
- Throws:
QueryException
-
-