Package org.mybatis.dynamic.sql
Class Constant<T>
java.lang.Object
org.mybatis.dynamic.sql.Constant<T>
- All Implemented Interfaces:
BasicColumn,BindableColumn<T>
-
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the columns alias if one has been specified.Override the base method definition to make it more specific to this interface.static <T> Constant<T>renderWithTableAlias(TableAliasCalculator tableAliasCalculator) Returns the name of the item aliased with a table name if appropriate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mybatis.dynamic.sql.BasicColumn
renderWithTableAndColumnAliasMethods inherited from interface org.mybatis.dynamic.sql.BindableColumn
convertParameterType, javaType, jdbcType, renderingStrategy, typeHandler
-
Method Details
-
alias
Description copied from interface:BasicColumnReturns the columns alias if one has been specified.- Specified by:
aliasin interfaceBasicColumn- Returns:
- the column alias
-
renderWithTableAlias
Description copied from interface:BasicColumnReturns the name of the item aliased with a table name if appropriate. For example, "a.foo". This is appropriate for where clauses and order by clauses.- Specified by:
renderWithTableAliasin interfaceBasicColumn- Parameters:
tableAliasCalculator- the table alias calculator for the current renderer- Returns:
- the item name with the table alias applied
-
as
Description copied from interface:BindableColumnOverride the base method definition to make it more specific to this interface.- Specified by:
asin interfaceBasicColumn- Specified by:
asin interfaceBindableColumn<T>- Parameters:
alias- the column alias to set- Returns:
- new instance with alias set
-
of
-