public static class StandardAnsiSqlAggregationFunctions.AvgFunction extends StandardSQLFunction
| Modifier and Type | Field and Description |
|---|---|
static StandardAnsiSqlAggregationFunctions.AvgFunction |
INSTANCE
Singleton access
|
| Modifier | Constructor and Description |
|---|---|
protected |
AvgFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
determineJdbcTypeCode(Type firstArgumentType,
SessionFactoryImplementor factory) |
protected java.lang.String |
render(int firstArgumentJdbcType,
java.lang.String argument,
SessionFactoryImplementor factory) |
java.lang.String |
render(Type firstArgumentType,
java.util.List arguments,
SessionFactoryImplementor factory)
Render the function call as SQL fragment.
|
protected java.lang.String |
renderArgument(java.lang.String argument,
int firstArgumentJdbcType) |
getName, getRenderedName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, toStringpublic static final StandardAnsiSqlAggregationFunctions.AvgFunction INSTANCE
public java.lang.String render(Type firstArgumentType, java.util.List arguments, SessionFactoryImplementor factory) throws QueryException
SQLFunctionSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)render in interface SQLFunctionrender in class StandardSQLFunctionfirstArgumentType - 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
QueryExceptionprotected java.lang.String render(int firstArgumentJdbcType,
java.lang.String argument,
SessionFactoryImplementor factory)
protected java.lang.String renderArgument(java.lang.String argument,
int firstArgumentJdbcType)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.