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.CountFunction
INSTANCE
Singleton access
-
Constructor Summary
Constructors Modifier Constructor Description protected
CountFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
render(Type firstArgumentType, java.util.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 java.lang.String render(Type firstArgumentType, java.util.List arguments, SessionFactoryImplementor factory)
Description copied from interface:SQLFunction
Render 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:
render
in interfaceSQLFunction
- Overrides:
render
in classStandardSQLFunction
- Parameters:
firstArgumentType
- The type of the first argumentarguments
- The function argumentsfactory
- The SessionFactory- Returns:
- The rendered function call
-
-