Package org.mybatis.dynamic.sql.render
Class RenderingContext
java.lang.Object
org.mybatis.dynamic.sql.render.RenderingContext
This class encapsulates all the supporting items related to rendering, and contains many utility methods
used during the rendering process.
- Since:
- 1.5.1
- Author:
- Jeff Butler
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<T> String
aliasedColumnName
(SqlColumn<T> column) <T> String
aliasedColumnName
(SqlColumn<T> column, String explicitAlias) aliasedTableName
(SqlTable table) calculateParameterInfo
(BindableColumn<T> column) boolean
withChildTableAliasCalculator
(TableAliasCalculator childTableAliasCalculator) Create a new rendering context based on this, with the table alias calculator modified to include the specified child table alias calculator.static RenderingContext.Builder
withRenderingStrategy
(RenderingStrategy renderingStrategy)
-
Method Details
-
tableAliasCalculator
-
calculateParameterInfo
-
calculateParameterInfo
-
aliasedColumnName
-
aliasedColumnName
-
aliasedTableName
-
isNonRenderingClauseAllowed
public boolean isNonRenderingClauseAllowed() -
withChildTableAliasCalculator
public RenderingContext withChildTableAliasCalculator(TableAliasCalculator childTableAliasCalculator) Create a new rendering context based on this, with the table alias calculator modified to include the specified child table alias calculator. This is used by the query expression renderer when the alias calculator may change during rendering.- Parameters:
childTableAliasCalculator
- the child table alias calculator- Returns:
- a new rendering context whose table alias calculator is composed of the former calculator as parent, and the new child calculator
-
withRenderingStrategy
-