Package org.hibernate.dialect.function
Class StandardAnsiSqlAggregationFunctions.CountFunction
- java.lang.Object
-
- org.hibernate.dialect.function.StandardSQLFunction
-
- org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.CountFunction
-
- All Implemented Interfaces:
SQLFunction
- Enclosing class:
- StandardAnsiSqlAggregationFunctions
public static class StandardAnsiSqlAggregationFunctions.CountFunction extends StandardSQLFunction
Definition of a standard ANSI SQL compliant COUNT function
-
-
Field Summary
Fields Modifier and Type Field Description static StandardAnsiSqlAggregationFunctions.CountFunctionINSTANCESingleton access
-
Constructor Summary
Constructors Modifier Constructor Description protectedCountFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringrender(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)Render the function call as SQL fragment.-
Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getName, getRenderedName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final StandardAnsiSqlAggregationFunctions.CountFunction INSTANCE
Singleton access
-
-
Method Detail
-
render
public String render(Type firstArgumentType, List arguments, SessionFactoryImplementor factory)
Description copied from interface:SQLFunctionRender the function call as SQL fragment. Note, the 'firstArgumentType' parameter should match the one passed intoSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)- Specified by:
renderin interfaceSQLFunction- Overrides:
renderin classStandardSQLFunction- Parameters:
firstArgumentType- The type of the first argumentarguments- The function argumentsfactory- The SessionFactory- Returns:
- The rendered function call
-
-