Class StatementScope

java.lang.Object
com.ibatis.sqlmap.engine.scope.StatementScope

public class StatementScope extends Object
Request based implementation of Scope interface.
  • Constructor Details

    • StatementScope

      public StatementScope(SessionScope sessionScope)
      Instantiates a new statement scope.
      Parameters:
      sessionScope - the session scope
  • Method Details

    • getCurrentNestedKey

      public String getCurrentNestedKey()
      Gets the current nested key.
      Returns:
      Returns the currentNestedKey.
    • setCurrentNestedKey

      public void setCurrentNestedKey(String currentNestedKey)
      Sets the current nested key.
      Parameters:
      currentNestedKey - The currentNestedKey to set.
    • getErrorContext

      public ErrorContext getErrorContext()
      Get the request's error context.
      Returns:
      - the request's error context
    • getSession

      public SessionScope getSession()
      Get the session of the request.
      Returns:
      - the session
    • getStatement

      public MappedStatement getStatement()
      Get the statement for the request.
      Returns:
      - the statement
    • setStatement

      public void setStatement(MappedStatement statement)
      Set the statement for the request.
      Parameters:
      statement - - the statement
    • getParameterMap

      public ParameterMap getParameterMap()
      Get the parameter map for the request.
      Returns:
      - the parameter map
    • setParameterMap

      public void setParameterMap(ParameterMap parameterMap)
      Set the parameter map for the request.
      Parameters:
      parameterMap - - the new parameter map
    • getResultMap

      public ResultMap getResultMap()
      Get the result map for the request.
      Returns:
      - the result map
    • setResultMap

      public void setResultMap(ResultMap resultMap)
      Set the result map for the request.
      Parameters:
      resultMap - - the result map
    • getSql

      public Sql getSql()
      Get the SQL for the request.
      Returns:
      - the sql
    • setSql

      public void setSql(Sql sql)
      Set the SQL for the request.
      Parameters:
      sql - - the sql
    • getDynamicParameterMap

      public ParameterMap getDynamicParameterMap()
      Get the dynamic parameter for the request.
      Returns:
      - the dynamic parameter
    • setDynamicParameterMap

      public void setDynamicParameterMap(ParameterMap dynamicParameterMap)
      Set the dynamic parameter for the request.
      Parameters:
      dynamicParameterMap - - the dynamic parameter
    • getDynamicSql

      public String getDynamicSql()
      Get the dynamic SQL for the request.
      Returns:
      - the dynamic SQL
    • setDynamicSql

      public void setDynamicSql(String dynamicSql)
      Set the dynamic SQL for the request.
      Parameters:
      dynamicSql - - the dynamic SQL
    • getResultSet

      public ResultSet getResultSet()
      Gets the result set.
      Returns:
      the result set
    • setResultSet

      public void setResultSet(ResultSet resultSet)
      Sets the result set.
      Parameters:
      resultSet - the new result set
    • getUniqueKeys

      public Map getUniqueKeys(ResultMap map)
      Gets the unique keys.
      Parameters:
      map - the map
      Returns:
      the unique keys
    • setUniqueKeys

      public void setUniqueKeys(ResultMap map, Map keys)
      Sets the unique keys.
      Parameters:
      map - the map
      keys - the keys
    • isRowDataFound

      public boolean isRowDataFound()
      Checks if is row data found.
      Returns:
      true, if is row data found
    • setRowDataFound

      public void setRowDataFound(boolean rowDataFound)
      Sets the row data found.
      Parameters:
      rowDataFound - the new row data found