Class OperatorFunction<T>
java.lang.Object
org.mybatis.dynamic.sql.select.function.AbstractTypeConvertingFunction<T,T,OperatorFunction<T>>
org.mybatis.dynamic.sql.select.function.AbstractUniTypeFunction<T,OperatorFunction<T>>
org.mybatis.dynamic.sql.select.function.OperatorFunction<T>
- All Implemented Interfaces:
BasicColumn
,BindableColumn<T>
- Direct Known Subclasses:
Add
,Concatenate
,Divide
,Multiply
,Subtract
-
Field Summary
Fields inherited from class org.mybatis.dynamic.sql.select.function.AbstractTypeConvertingFunction
alias, column
-
Constructor Summary
ModifierConstructorDescriptionprotected
OperatorFunction
(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, List<BasicColumn> subsequentColumns) -
Method Summary
Modifier and TypeMethodDescriptionprotected OperatorFunction
<T> copy()
static <T> OperatorFunction
<T> of
(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, List<BasicColumn> subsequentColumns) static <T> OperatorFunction
<T> of
(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns) render
(RenderingContext renderingContext) Returns a rendering of the column.Methods inherited from class org.mybatis.dynamic.sql.select.function.AbstractUniTypeFunction
jdbcType, typeHandler
Methods inherited from class org.mybatis.dynamic.sql.select.function.AbstractTypeConvertingFunction
alias, as
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
renderWithTableAlias
Methods inherited from interface org.mybatis.dynamic.sql.BindableColumn
convertParameterType, javaType, renderingStrategy
-
Field Details
-
secondColumn
-
subsequentColumns
-
-
Constructor Details
-
OperatorFunction
protected OperatorFunction(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, List<BasicColumn> subsequentColumns)
-
-
Method Details
-
copy
- Specified by:
copy
in classAbstractTypeConvertingFunction<T,
T, OperatorFunction<T>>
-
render
Description copied from interface:BasicColumn
Returns a rendering of the column. The rendered fragment should include the table alias based on the TableAliasCalculator in the RenderingContext. The fragment could contain prepared statement parameter markers and associated parameter values if desired.- Parameters:
renderingContext
- the rendering context (strategy, sequence, etc.)- Returns:
- a rendered SQL fragment and, optionally, parameters associated with the fragment
-
of
public static <T> OperatorFunction<T> of(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns) -
of
public static <T> OperatorFunction<T> of(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, List<BasicColumn> subsequentColumns)
-