java.lang.Object
com.ibatis.sqlmap.engine.mapping.sql.raw.RawSql
All Implemented Interfaces:
Sql

public class RawSql extends Object implements Sql
A non-executable SQL container simply for communicating raw SQL around the framework.
  • Constructor Details

    • RawSql

      public RawSql(String sql)
      Instantiates a new raw sql.
      Parameters:
      sql - the sql
  • 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