Class SearchedCaseModel
java.lang.Object
org.mybatis.dynamic.sql.select.caseexpression.SearchedCaseModel
- All Implemented Interfaces:
BasicColumn
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionalias()
Returns the columns alias if one has been specified.Returns a new instance of a BasicColumn with the alias set.render
(RenderingContext renderingContext) Returns a rendering of the column.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
-
Method Details
-
whenConditions
-
elseValue
-
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:BasicColumn
Returns a new instance of a BasicColumn with the alias set.- Specified by:
as
in interfaceBasicColumn
- Parameters:
alias
- the column alias to set- Returns:
- new instance with alias set
-
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.- Specified by:
render
in interfaceBasicColumn
- Parameters:
renderingContext
- the rendering context (strategy, sequence, etc.)- Returns:
- a rendered SQL fragment and, optionally, parameters associated with the fragment
-