Class RenderingContext

java.lang.Object
org.mybatis.dynamic.sql.render.RenderingContext

public class RenderingContext extends Object
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
  • Method Details

    • tableAliasCalculator

      public TableAliasCalculator tableAliasCalculator()
    • calculateParameterInfo

      public RenderedParameterInfo calculateParameterInfo()
    • calculateParameterInfo

      public <T> RenderedParameterInfo calculateParameterInfo(BindableColumn<T> column)
    • aliasedColumnName

      public <T> String aliasedColumnName(SqlColumn<T> column)
    • aliasedColumnName

      public <T> String aliasedColumnName(SqlColumn<T> column, String explicitAlias)
    • aliasedTableName

      public String aliasedTableName(SqlTable table)
    • isNonRenderingClauseAllowed

      public boolean isNonRenderingClauseAllowed()
    • isEmptyListConditionRenderingAllowed

      public boolean isEmptyListConditionRenderingAllowed()
    • 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

      public static RenderingContext.Builder withRenderingStrategy(RenderingStrategy renderingStrategy)