public static class

StandardAnsiSqlAggregationFunctions.AvgFunction

extends StandardSQLFunction
java.lang.Object
   ↳ org.hibernate.dialect.function.StandardSQLFunction
     ↳ org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.AvgFunction
Known Direct Subclasses

Class Overview

Definition of a standard ANSI SQL compliant AVG function

Summary

Fields
public static final StandardAnsiSqlAggregationFunctions.AvgFunction INSTANCE
Public Constructors
StandardAnsiSqlAggregationFunctions.AvgFunction()
Public Methods
String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)
Render the function call as SQL fragment.
Protected Methods
final int determineJdbcTypeCode(Type firstArgumentType, SessionFactoryImplementor factory)
String render(int firstArgumentJdbcType, String argument, SessionFactoryImplementor factory)
String renderArgument(String argument, int firstArgumentJdbcType)
[Expand]
Inherited Methods
From class org.hibernate.dialect.function.StandardSQLFunction
From class java.lang.Object
From interface org.hibernate.dialect.function.SQLFunction

Fields

Public Constructors

public StandardAnsiSqlAggregationFunctions.AvgFunction ()

Public Methods

public String render (Type firstArgumentType, List arguments, SessionFactoryImplementor factory)

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 final int determineJdbcTypeCode (Type firstArgumentType, SessionFactoryImplementor factory)

protected String render (int firstArgumentJdbcType, String argument, SessionFactoryImplementor factory)

protected String renderArgument (String argument, int firstArgumentJdbcType)