T - the subclass typepublic abstract class AbstractAggregate<T extends AbstractAggregate<T>> extends Object implements BasicColumn
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected BasicColumn |
column |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAggregate(BasicColumn column) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
alias()
Returns the columns alias if one has been specified.
|
T |
as(String alias)
Returns a new instance of a BasicColumn with the alias set.
|
protected abstract T |
copy() |
protected abstract String |
render(String columnName)
Calculate the rendered string for the select list.
|
String |
renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
Returns the name of the item aliased with a table name if appropriate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcolumnList, renderWithTableAndColumnAliasprotected BasicColumn column
protected String alias
protected AbstractAggregate(BasicColumn column)
public Optional<String> alias()
BasicColumnalias in interface BasicColumnpublic String renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
BasicColumnrenderWithTableAlias in interface BasicColumntableAliasCalculator - the table alias calculator for the current rendererpublic T as(String alias)
BasicColumnas in interface BasicColumnalias - the column alias to setprotected abstract T copy()
Copyright © 2016–2019 MyBatis.org. All rights reserved.