public abstract class AbstractFunction<T,U extends AbstractFunction<T,U>> extends Object implements BindableColumn<T>
Modifier and Type | Field and Description |
---|---|
protected String |
alias |
protected BindableColumn<T> |
column |
Modifier | Constructor and Description |
---|---|
protected |
AbstractFunction(BindableColumn<T> column) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
alias()
Returns the columns alias if one has been specified.
|
U |
as(String alias)
Override the base method definition to make it more specific to this interface.
|
protected abstract U |
copy() |
Optional<JDBCType> |
jdbcType() |
Optional<String> |
typeHandler() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderWithTableAlias, renderWithTableAndColumnAlias
protected BindableColumn<T> column
protected String alias
protected AbstractFunction(BindableColumn<T> column)
public Optional<String> alias()
BasicColumn
alias
in interface BasicColumn
public U as(String alias)
BindableColumn
as
in interface BasicColumn
as
in interface BindableColumn<T>
alias
- the column alias to setpublic Optional<JDBCType> jdbcType()
jdbcType
in interface BindableColumn<T>
public Optional<String> typeHandler()
typeHandler
in interface BindableColumn<T>
protected abstract U copy()
Copyright © 2016–2018 MyBatis.org. All rights reserved.