Known Direct Subclasses
AvgWithArgumentCastFunction |
Some databases strictly return the type of the of the aggregation value for AVG which is
problematic in the case of averaging integers because the decimals will be dropped. |
|
Class Overview
Definition of a standard ANSI SQL compliant AVG function
Fields
Public Constructors
public
StandardAnsiSqlAggregationFunctions.AvgFunction
()
Public Methods
Render the function call as SQL fragment.
Note, the 'firstArgumentType' parameter should match the one passed into
getReturnType(Type, Mapping)
Parameters
firstArgumentType
| The type of the first argument |
arguments
| The function arguments |
factory
| The SessionFactory |
Returns
- The rendered function call
Protected Methods
protected
String
renderArgument
(String argument, int firstArgumentJdbcType)