public class Constant extends Object implements BasicColumn
Modifier and Type | Method and Description |
---|---|
Optional<String> |
alias()
Returns the columns alias if one has been specified.
|
Constant |
as(String alias)
Returns a new instance of a BasicColumn with the alias set.
|
static Constant |
of(String value) |
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, wait
renderWithTableAndColumnAlias
public Optional<String> alias()
BasicColumn
alias
in interface BasicColumn
public String renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
BasicColumn
renderWithTableAlias
in interface BasicColumn
tableAliasCalculator
- the table alias calculator for the current rendererpublic Constant as(String alias)
BasicColumn
as
in interface BasicColumn
alias
- the column alias to setCopyright © 2016–2018 MyBatis.org. All rights reserved.