Class SimpleDynamicSql

java.lang.Object
com.ibatis.sqlmap.engine.mapping.sql.simple.SimpleDynamicSql
All Implemented Interfaces:
Sql

public class SimpleDynamicSql extends Object implements Sql
The Class SimpleDynamicSql.
  • Constructor Details

    • SimpleDynamicSql

      public SimpleDynamicSql(SqlMapExecutorDelegate delegate, String sqlStatement)
      Instantiates a new simple dynamic sql.
      Parameters:
      delegate - the delegate
      sqlStatement - the sql statement
  • 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
    • isSimpleDynamicSql

      public static boolean isSimpleDynamicSql(String sql)
      Checks if is simple dynamic sql.
      Parameters:
      sql - the sql
      Returns:
      true, if is simple dynamic sql