com.ibatis.sqlmap.engine.exchange
Class JavaBeanDataExchange

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.exchange.BaseDataExchange
      extended bycom.ibatis.sqlmap.engine.exchange.JavaBeanDataExchange
All Implemented Interfaces:
DataExchange

public class JavaBeanDataExchange
extends BaseDataExchange
implements DataExchange

DataExchange implementation for beans


Constructor Summary
protected JavaBeanDataExchange(DataExchangeFactory dataExchangeFactory)
           
 
Method Summary
 java.lang.Object[] getData(RequestScope request, 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(RequestScope request, ParameterMap parameterMap, java.lang.Object parameterObject, java.lang.Object[] values)
          Sets values from a data array into a parameter object
 java.lang.Object setData(RequestScope request, ResultMap resultMap, java.lang.Object resultObject, java.lang.Object[] values)
          Sets values from a data array into a result object.
 
Methods inherited from class com.ibatis.sqlmap.engine.exchange.BaseDataExchange
getCacheKey, getDataExchangeFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibatis.sqlmap.engine.exchange.DataExchange
getCacheKey
 

Constructor Detail

JavaBeanDataExchange

protected JavaBeanDataExchange(DataExchangeFactory dataExchangeFactory)
Method Detail

initialize

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

Specified by:
initialize in interface DataExchange
Parameters:
properties -

getData

public java.lang.Object[] getData(RequestScope request,
                                  ParameterMap parameterMap,
                                  java.lang.Object parameterObject)
Description copied from interface: DataExchange
Gets a data array from a parameter object.

Specified by:
getData in interface DataExchange
Parameters:
request - - the scope of the request
parameterMap - - the parameter map
parameterObject - - the parameter object
Returns:
- the objects

setData

public java.lang.Object setData(RequestScope request,
                                ResultMap resultMap,
                                java.lang.Object resultObject,
                                java.lang.Object[] values)
Description copied from interface: DataExchange
Sets values from a data array into a result object.

Specified by:
setData in interface DataExchange
Parameters:
request - - the request scope
resultMap - - the result map
resultObject - - the result object
values - - the values to be mapped
Returns:
the resultObject

setData

public java.lang.Object setData(RequestScope request,
                                ParameterMap parameterMap,
                                java.lang.Object parameterObject,
                                java.lang.Object[] values)
Description copied from interface: DataExchange
Sets values from a data array into a parameter object

Specified by:
setData in interface DataExchange
Parameters:
request - - the request scope
parameterMap - - the parameter map
parameterObject - - the parameter object
values - - the values to set
Returns:
parameterObject