com.ibatis.sqlmap.engine.scope
Class RequestScope

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.scope.BaseScope
      extended bycom.ibatis.sqlmap.engine.scope.RequestScope
All Implemented Interfaces:
Scope

public class RequestScope
extends BaseScope

Request based implementation of Scope interface


Constructor Summary
RequestScope()
          Default constructor
 
Method Summary
 java.lang.String getCurrentNestedKey()
           
 ParameterMap getDynamicParameterMap()
          Get the dynamic parameter for the request
 java.lang.String getDynamicSql()
          Get the dynamic SQL for the request
 ErrorContext getErrorContext()
          Get the request's error context
 ParameterMap getParameterMap()
          Get the parameter map for the request
 ResultMap getResultMap()
          Get the result map for the request
 java.sql.ResultSet getResultSet()
           
 SessionScope getSession()
          Get the session of the request
 Sql getSql()
          Get the SQL for the request
 MappedStatement getStatement()
          Get the statement for the request
 java.util.Map getUniqueKeys(ResultMap map)
           
 boolean isRowDataFound()
           
 void reset()
          Clears all data out of the scope
 void setCurrentNestedKey(java.lang.String currentNestedKey)
           
 void setDynamicParameterMap(ParameterMap dynamicParameterMap)
          Set the dynamic parameter for the request
 void setDynamicSql(java.lang.String dynamicSql)
          Set the dynamic SQL for the request
 void setParameterMap(ParameterMap parameterMap)
          Set the parameter map for the request
 void setResultMap(ResultMap resultMap)
          Set the result map for the request
 void setResultSet(java.sql.ResultSet resultSet)
           
 void setRowDataFound(boolean rowDataFound)
           
 void setSession(SessionScope session)
          Set the session for the request
 void setSql(Sql sql)
          Set the SQL for the request
 void setStatement(MappedStatement statement)
          Set the statement for the request
 void setUniqueKeys(ResultMap map, java.util.Map keys)
           
 
Methods inherited from class com.ibatis.sqlmap.engine.scope.BaseScope
getAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestScope

public RequestScope()
Default constructor

Method Detail

getCurrentNestedKey

public java.lang.String getCurrentNestedKey()
Returns:
Returns the currentNestedKey.

setCurrentNestedKey

public void setCurrentNestedKey(java.lang.String currentNestedKey)
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

setSession

public void setSession(SessionScope session)
Set the session for the request

Parameters:
session - - the new 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 java.lang.String getDynamicSql()
Get the dynamic SQL for the request

Returns:
- the dynamic SQL

setDynamicSql

public void setDynamicSql(java.lang.String dynamicSql)
Set the dynamic SQL for the request

Parameters:
dynamicSql - - the dynamic SQL

getResultSet

public java.sql.ResultSet getResultSet()

setResultSet

public void setResultSet(java.sql.ResultSet resultSet)

getUniqueKeys

public java.util.Map getUniqueKeys(ResultMap map)

setUniqueKeys

public void setUniqueKeys(ResultMap map,
                          java.util.Map keys)

isRowDataFound

public boolean isRowDataFound()

setRowDataFound

public void setRowDataFound(boolean rowDataFound)

reset

public void reset()
Description copied from interface: Scope
Clears all data out of the scope

Specified by:
reset in interface Scope
Overrides:
reset in class BaseScope