com.ibatis.sqlmap.engine.exchange
Interface DataExchange

All Known Implementing Classes:
BaseDataExchange, ComplexDataExchange, DomDataExchange, JavaBeanDataExchange, ListDataExchange, MapDataExchange, PrimitiveDataExchange

public interface DataExchange

Interface for exchanging data between a parameter map/result map and the related objects


方法摘要
 CacheKey getCacheKey(StatementScope statementScope, ParameterMap parameterMap, java.lang.Object parameterObject)
          Returns an object capable of being a unique cache key for a parameter object.
 java.lang.Object[] getData(StatementScope statementScope, ParameterMap parameterMap, java.lang.Object parameterObject)
          Gets a data array from a parameter object.
 void initialize(java.util.Map properties)
          Initializes the data exchange instance.
 java.lang.Object setData(StatementScope statementScope, ParameterMap parameterMap, java.lang.Object parameterObject, java.lang.Object[] values)
          Sets values from a data array into a parameter object
 java.lang.Object setData(StatementScope statementScope, ResultMap resultMap, java.lang.Object resultObject, java.lang.Object[] values)
          Sets values from a data array into a result object.
 

方法详细信息

initialize

void initialize(java.util.Map properties)
Initializes the data exchange instance.

参数:
properties -

getData

java.lang.Object[] getData(StatementScope statementScope,
                           ParameterMap parameterMap,
                           java.lang.Object parameterObject)
Gets a data array from a parameter object.

参数:
statementScope - - the scope of the request
parameterMap - - the parameter map
parameterObject - - the parameter object
返回:
- the objects

setData

java.lang.Object setData(StatementScope statementScope,
                         ResultMap resultMap,
                         java.lang.Object resultObject,
                         java.lang.Object[] values)
Sets values from a data array into a result object.

参数:
statementScope - - the request scope
resultMap - - the result map
resultObject - - the result object
values - - the values to be mapped
返回:
the resultObject

setData

java.lang.Object setData(StatementScope statementScope,
                         ParameterMap parameterMap,
                         java.lang.Object parameterObject,
                         java.lang.Object[] values)
Sets values from a data array into a parameter object

参数:
statementScope - - the request scope
parameterMap - - the parameter map
parameterObject - - the parameter object
values - - the values to set
返回:
parameterObject

getCacheKey

CacheKey getCacheKey(StatementScope statementScope,
                     ParameterMap parameterMap,
                     java.lang.Object parameterObject)
Returns an object capable of being a unique cache key for a parameter object.

参数:
statementScope - - the request scope
parameterMap - - the parameter map
parameterObject - - the parameter object
返回:
- a cache key