public static class StandardAnsiSqlAggregationFunctions.AvgFunction extends StandardSQLFunction
Modifier and Type | Field and Description |
---|---|
static StandardAnsiSqlAggregationFunctions.AvgFunction |
INSTANCE
Singleton access
|
Modifier | Constructor and Description |
---|---|
protected |
StandardAnsiSqlAggregationFunctions.AvgFunction() |
Modifier and Type | Method and Description |
---|---|
protected int |
determineJdbcTypeCode(Type firstArgumentType,
SessionFactoryImplementor factory) |
protected String |
render(int firstArgumentJdbcType,
String argument,
SessionFactoryImplementor factory) |
String |
render(Type firstArgumentType,
List arguments,
SessionFactoryImplementor factory)
Render the function call as SQL fragment.
|
protected String |
renderArgument(String argument,
int firstArgumentJdbcType) |
getName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, toString
public static final StandardAnsiSqlAggregationFunctions.AvgFunction INSTANCE
protected StandardAnsiSqlAggregationFunctions.AvgFunction()
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory) throws QueryException
SQLFunction
SQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)
render
in interface SQLFunction
render
in class StandardSQLFunction
firstArgumentType
- The type of the first argumentarguments
- The function argumentsfactory
- The SessionFactoryQueryException
- Indicates a problem rendering the
function call.protected final int determineJdbcTypeCode(Type firstArgumentType, SessionFactoryImplementor factory) throws QueryException
QueryException
protected String render(int firstArgumentJdbcType, String argument, SessionFactoryImplementor factory)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.