public static class StandardAnsiSqlAggregationFunctions.SumFunction extends StandardSQLFunction
Definition of a standard ANSI SQL compliant <tt>SUM</tt> function
Modifier and Type | Field and Description |
---|---|
static StandardAnsiSqlAggregationFunctions.SumFunction |
INSTANCE
Singleton access
|
Modifier | Constructor and Description |
---|---|
protected |
SumFunction() |
Modifier and Type | Method and Description |
---|---|
protected int |
determineJdbcTypeCode(Type type,
Mapping mapping) |
Type |
getReturnType(Type firstArgumentType,
Mapping mapping)
The return type of the function.
|
getName, getRenderedName, getType, hasArguments, hasParenthesesIfNoArguments, render, toString
public static final StandardAnsiSqlAggregationFunctions.SumFunction INSTANCE
Singleton access
public Type getReturnType(Type firstArgumentType, Mapping mapping)
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.
<p/>
Note, the 'firstArgumentType' parameter should match the one passed into SQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor)
getReturnType
in interface SQLFunction
getReturnType
in class StandardSQLFunction
firstArgumentType
- The type of the first argumentmapping
- The mapping source.protected final int determineJdbcTypeCode(Type type, Mapping mapping) throws QueryException
QueryException
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.