Class AbstractTypeConvertingFunction<T,R,U extends AbstractTypeConvertingFunction<T,R,U>>
java.lang.Object
org.mybatis.dynamic.sql.select.function.AbstractTypeConvertingFunction<T,R,U>
- Type Parameters:
T
- The type of the underlying column. For example, if a function converts a VARCHAR to an INT, then the underlying type will be a StringR
- The type of the column after the conversion. For example, if a function converts a VARCHAR to an INT, then the converted type will be IntegerU
- the specific subtype that implements the function
- All Implemented Interfaces:
BasicColumn
,BindableColumn<R>
- Direct Known Subclasses:
AbstractUniTypeFunction
public abstract class AbstractTypeConvertingFunction<T,R,U extends AbstractTypeConvertingFunction<T,R,U>>
extends Object
implements BindableColumn<R>
Represents a function that can change the underlying type. For example, converting a binary field for a base64
string, or an integer to a string, etc.
Thanks to @endink for the idea.
- Author:
- Jeff Butler
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mybatis.dynamic.sql.BasicColumn
render, renderWithTableAlias
Methods inherited from interface org.mybatis.dynamic.sql.BindableColumn
convertParameterType, javaType, jdbcType, renderingStrategy, typeHandler
-
Field Details
-
column
-
alias
-
-
Constructor Details
-
AbstractTypeConvertingFunction
-
-
Method Details
-
alias
Description copied from interface:BasicColumn
Returns the columns alias if one has been specified.- Specified by:
alias
in interfaceBasicColumn
- Returns:
- the column alias
-
as
Description copied from interface:BindableColumn
Override the base method definition to make it more specific to this interface.- Specified by:
as
in interfaceBasicColumn
- Specified by:
as
in interfaceBindableColumn<T>
- Parameters:
alias
- the column alias to set- Returns:
- new instance with alias set
-
copy
-