java.lang.Object
com.ibatis.sqlmap.engine.mapping.sql.dynamic.DynamicSql
All Implemented Interfaces:
DynamicParent, Sql

public class DynamicSql extends Object implements Sql, DynamicParent
The Class DynamicSql.
  • Constructor Details

    • DynamicSql

      public DynamicSql(SqlMapExecutorDelegate delegate)
      Instantiates a new dynamic sql.
      Parameters:
      delegate - the delegate
  • Method Details

    • getSql

      public String getSql(StatementScope statementScope, Object parameterObject)
      Description copied from interface: Sql
      Gets the sql.
      Specified by:
      getSql in interface Sql
      Parameters:
      statementScope - the statement scope
      parameterObject - the parameter object
      Returns:
      the sql
    • getParameterMap

      public ParameterMap getParameterMap(StatementScope statementScope, Object parameterObject)
      Description copied from interface: Sql
      Gets the parameter map.
      Specified by:
      getParameterMap in interface Sql
      Parameters:
      statementScope - the statement scope
      parameterObject - the parameter object
      Returns:
      the parameter map
    • getResultMap

      public ResultMap getResultMap(StatementScope statementScope, Object parameterObject)
      Description copied from interface: Sql
      Gets the result map.
      Specified by:
      getResultMap in interface Sql
      Parameters:
      statementScope - the statement scope
      parameterObject - the parameter object
      Returns:
      the result map
    • cleanup

      public void cleanup(StatementScope statementScope)
      Description copied from interface: Sql
      Cleanup.
      Specified by:
      cleanup in interface Sql
      Parameters:
      statementScope - the statement scope
    • iteratePropertyReplace

      protected void iteratePropertyReplace(StringBuilder bodyContent, IterateContext iterate)
      Iterate property replace.
      Parameters:
      bodyContent - the body content
      iterate - the iterate
    • replace

      protected static void replace(StringBuilder builder, String find, String replace)
      Replace.
      Parameters:
      builder - the builder
      find - the find
      replace - the replace
    • addChild

      public void addChild(SqlChild child)
      Description copied from interface: DynamicParent
      Adds the child.
      Specified by:
      addChild in interface DynamicParent
      Parameters:
      child - the child