com.ibatis.sqlmap.engine.scope

Class StatementScope

public class StatementScope extends Object

Request based implementation of Scope interface
Constructor Summary
StatementScope(SessionScope sessionScope)
Method Summary
StringgetCurrentNestedKey()
ParameterMapgetDynamicParameterMap()
Get the dynamic parameter for the request
StringgetDynamicSql()
Get the dynamic SQL for the request
ErrorContextgetErrorContext()
Get the request's error context
ParameterMapgetParameterMap()
Get the parameter map for the request
ResultMapgetResultMap()
Get the result map for the request
ResultSetgetResultSet()
SessionScopegetSession()
Get the session of the request
SqlgetSql()
Get the SQL for the request
MappedStatementgetStatement()
Get the statement for the request
MapgetUniqueKeys(ResultMap map)
booleanisRowDataFound()
voidsetCurrentNestedKey(String currentNestedKey)
voidsetDynamicParameterMap(ParameterMap dynamicParameterMap)
Set the dynamic parameter for the request
voidsetDynamicSql(String dynamicSql)
Set the dynamic SQL for the request
voidsetParameterMap(ParameterMap parameterMap)
Set the parameter map for the request
voidsetResultMap(ResultMap resultMap)
Set the result map for the request
voidsetResultSet(ResultSet resultSet)
voidsetRowDataFound(boolean rowDataFound)
voidsetSql(Sql sql)
Set the SQL for the request
voidsetStatement(MappedStatement statement)
Set the statement for the request
voidsetUniqueKeys(ResultMap map, Map keys)

Constructor Detail

StatementScope

public StatementScope(SessionScope sessionScope)

Method Detail

getCurrentNestedKey

public String getCurrentNestedKey()

Returns: Returns the currentNestedKey.

getDynamicParameterMap

public ParameterMap getDynamicParameterMap()
Get the dynamic parameter for the request

Returns: - the dynamic parameter

getDynamicSql

public String getDynamicSql()
Get the dynamic SQL for the request

Returns: - the dynamic SQL

getErrorContext

public ErrorContext getErrorContext()
Get the request's error context

Returns: - the request's error context

getParameterMap

public ParameterMap getParameterMap()
Get the parameter map for the request

Returns: - the parameter map

getResultMap

public ResultMap getResultMap()
Get the result map for the request

Returns: - the result map

getResultSet

public ResultSet getResultSet()

getSession

public SessionScope getSession()
Get the session of the request

Returns: - the session

getSql

public Sql getSql()
Get the SQL for the request

Returns: - the sql

getStatement

public MappedStatement getStatement()
Get the statement for the request

Returns: - the statement

getUniqueKeys

public Map getUniqueKeys(ResultMap map)

isRowDataFound

public boolean isRowDataFound()

setCurrentNestedKey

public void setCurrentNestedKey(String currentNestedKey)

Parameters: currentNestedKey The currentNestedKey to set.

setDynamicParameterMap

public void setDynamicParameterMap(ParameterMap dynamicParameterMap)
Set the dynamic parameter for the request

Parameters: dynamicParameterMap - the dynamic parameter

setDynamicSql

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

Parameters: dynamicSql - the dynamic SQL

setParameterMap

public void setParameterMap(ParameterMap parameterMap)
Set the parameter map for the request

Parameters: parameterMap - the new parameter map

setResultMap

public void setResultMap(ResultMap resultMap)
Set the result map for the request

Parameters: resultMap - the result map

setResultSet

public void setResultSet(ResultSet resultSet)

setRowDataFound

public void setRowDataFound(boolean rowDataFound)

setSql

public void setSql(Sql sql)
Set the SQL for the request

Parameters: sql - the sql

setStatement

public void setStatement(MappedStatement statement)
Set the statement for the request

Parameters: statement - the statement

setUniqueKeys

public void setUniqueKeys(ResultMap map, Map keys)
Copyright © 2011. All Rights Reserved.