Class PrimitiveDataExchange
java.lang.Object
com.ibatis.sqlmap.engine.exchange.BaseDataExchange
com.ibatis.sqlmap.engine.exchange.PrimitiveDataExchange
- All Implemented Interfaces:
DataExchange
DataExchange implementation for primitive objects.
-
Constructor Summary
ModifierConstructorDescriptionprotected
PrimitiveDataExchange
(DataExchangeFactory dataExchangeFactory) Instantiates a new primitive data exchange. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
getData
(StatementScope statementScope, ParameterMap parameterMap, Object parameterObject) Gets a data array from a parameter object.void
initialize
(Map properties) Initializes the data exchange instance.setData
(StatementScope statementScope, ParameterMap parameterMap, Object parameterObject, Object[] values) Sets values from a data array into a parameter object.setData
(StatementScope statementScope, ResultMap resultMap, Object resultObject, 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 Details
-
PrimitiveDataExchange
Instantiates a new primitive data exchange.- Parameters:
dataExchangeFactory
- the data exchange factory
-
-
Method Details
-
initialize
Description copied from interface:DataExchange
Initializes the data exchange instance.- Specified by:
initialize
in interfaceDataExchange
- Parameters:
properties
- the properties
-
getData
public Object[] getData(StatementScope statementScope, ParameterMap parameterMap, Object parameterObject) Description copied from interface:DataExchange
Gets a data array from a parameter object.- Specified by:
getData
in interfaceDataExchange
- Parameters:
statementScope
- - the scope of the requestparameterMap
- - the parameter mapparameterObject
- - the parameter object- Returns:
- - the objects
-
setData
public Object setData(StatementScope statementScope, ResultMap resultMap, Object resultObject, Object[] values) Description copied from interface:DataExchange
Sets values from a data array into a result object.- Specified by:
setData
in interfaceDataExchange
- Parameters:
statementScope
- - the request scoperesultMap
- - the result mapresultObject
- - the result objectvalues
- - the values to be mapped- Returns:
- the resultObject
-
setData
public Object setData(StatementScope statementScope, ParameterMap parameterMap, Object parameterObject, Object[] values) Description copied from interface:DataExchange
Sets values from a data array into a parameter object.- Specified by:
setData
in interfaceDataExchange
- Parameters:
statementScope
- - the request scopeparameterMap
- - the parameter mapparameterObject
- - the parameter objectvalues
- - the values to set- Returns:
- parameterObject
-