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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final intdetermineJdbcTypeCode(Type type, Mapping mapping) getReturnType(Type firstArgumentType, Mapping mapping) The return type of the function.Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getName, getType, hasArguments, hasParenthesesIfNoArguments, render, toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SumFunction
public SumFunction()
-
-
Method Details
-
determineJdbcTypeCode
- Throws:
QueryException
-
getReturnType
Description copied from class:StandardSQLFunctionThe 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.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.
-