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.SumFunctionINSTANCESingleton access
-
Constructor Summary
Constructors Modifier Constructor Description protectedSumFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdetermineJdbcTypeCode(Type type, Mapping mapping)TypegetReturnType(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:SQLFunctionThe 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:
getReturnTypein interfaceSQLFunction- Overrides:
getReturnTypein 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
-
-