T
- The Java type that corresponds to this column - not used except for compiler type checking
for conditionspublic class DerivedColumn<T> extends Object implements BindableColumn<T>
SqlColumn
is
that this class does not have a related SqlTable
and therefore ignores any table
qualifier set in a query. If a table qualifier is required it can be set directly in the
builder for this class.Modifier and Type | Class and Description |
---|---|
static class |
DerivedColumn.Builder<T> |
Modifier | Constructor and Description |
---|---|
protected |
DerivedColumn(DerivedColumn.Builder<T> builder) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
alias()
Returns the columns alias if one has been specified.
|
DerivedColumn<T> |
as(String columnAlias)
Override the base method definition to make it more specific to this interface.
|
Optional<JDBCType> |
jdbcType() |
static <T> DerivedColumn<T> |
of(String name) |
static <T> DerivedColumn<T> |
of(String name,
String tableQualifier) |
String |
renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
Returns the name of the item aliased with a table name if appropriate.
|
Optional<String> |
typeHandler() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertParameterType, renderingStrategy
columnList, renderWithTableAndColumnAlias
protected DerivedColumn(DerivedColumn.Builder<T> builder)
public Optional<String> alias()
BasicColumn
alias
in interface BasicColumn
public Optional<JDBCType> jdbcType()
jdbcType
in interface BindableColumn<T>
public Optional<String> typeHandler()
typeHandler
in interface BindableColumn<T>
public String renderWithTableAlias(TableAliasCalculator tableAliasCalculator)
BasicColumn
renderWithTableAlias
in interface BasicColumn
tableAliasCalculator
- the table alias calculator for the current rendererpublic DerivedColumn<T> as(String columnAlias)
BindableColumn
as
in interface BasicColumn
as
in interface BindableColumn<T>
columnAlias
- the column alias to setpublic static <T> DerivedColumn<T> of(String name)
public static <T> DerivedColumn<T> of(String name, String tableQualifier)
Copyright © 2016–2021 MyBatis.org. All rights reserved.