public class Constant<T> extends Object implements BindableColumn<T>
Modifier and Type | Method and Description |
---|---|
Optional<String> |
alias()
Returns the columns alias if one has been specified.
|
Constant<T> |
as(String alias)
Override the base method definition to make it more specific to this interface.
|
static <T> Constant<T> |
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
convertParameterType, jdbcType, renderingStrategy, typeHandler
columnList, 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<T> as(String alias)
BindableColumn
as
in interface BasicColumn
as
in interface BindableColumn<T>
alias
- the column alias to setCopyright © 2016–2021 MyBatis.org. All rights reserved.