public interface BasicColumn
Modifier and Type | Method and Description |
---|---|
Optional<String> |
alias()
Returns the columns alias if one has been specified.
|
BasicColumn |
as(String alias)
Returns a new instance of a BasicColumn with the alias set.
|
static BasicColumn[] |
columnList(BasicColumn... columns)
Utility method to make it easier to build column lists for methods that require an
array rather than the varargs method.
|
String |
renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
Returns the name of the item aliased with a table name if appropriate.
|
default String |
renderWithTableAndColumnAlias(TableAliasCalculator tableAliasCalculator)
Returns the name of the item aliased with a table name and column alias if appropriate.
|
Optional<String> alias()
BasicColumn as(String alias)
alias
- the column alias to setString renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
tableAliasCalculator
- the table alias calculator for the current rendererdefault String renderWithTableAndColumnAlias(TableAliasCalculator tableAliasCalculator)
tableAliasCalculator
- the table alias calculator for the current rendererstatic BasicColumn[] columnList(BasicColumn... columns)
columns
- list of BasicColumnCopyright © 2016–2021 MyBatis.org. All rights reserved.