Class AbstractCount
- java.lang.Object
-
- org.mybatis.dynamic.sql.select.aggregate.AbstractCount
-
- All Implemented Interfaces:
BasicColumn
,BindableColumn<Long>
- Direct Known Subclasses:
Count
,CountAll
,CountDistinct
public abstract class AbstractCount extends Object implements BindableColumn<Long>
Count functions are implemented differently than the other aggregates. This is primarily to preserve backwards compatibility. Count functions are configured as BindableColumns of type Long as it is assumed that the count functions always return a number.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCount()
protected
AbstractCount(String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
alias()
Returns the columns alias if one has been specified.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mybatis.dynamic.sql.BasicColumn
renderWithTableAlias, renderWithTableAndColumnAlias
-
Methods inherited from interface org.mybatis.dynamic.sql.BindableColumn
as, convertParameterType, javaType, jdbcType, renderingStrategy, typeHandler
-
-
-
-
Constructor Detail
-
AbstractCount
protected AbstractCount()
-
AbstractCount
protected AbstractCount(String alias)
-
-
Method Detail
-
alias
public Optional<String> alias()
Description copied from interface:BasicColumn
Returns the columns alias if one has been specified.- Specified by:
alias
in interfaceBasicColumn
- Returns:
- the column alias
-
-