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