public static class StandardAnsiSqlAggregationFunctions.AvgFunction extends StandardSQLFunction
Modifier and Type | Field and Description |
---|---|
static StandardAnsiSqlAggregationFunctions.AvgFunction |
INSTANCE |
Constructor and Description |
---|
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
public StandardAnsiSqlAggregationFunctions.AvgFunction()
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory) throws QueryException
StandardSQLFunction
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 © 2018 JBoss by Red Hat. All rights reserved.