Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.sqlmap.engine.exchange
Interface DataExchange  view DataExchange download DataExchange.java

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


Method Summary
 com.ibatis.sqlmap.engine.cache.CacheKey getCacheKey(com.ibatis.sqlmap.engine.scope.RequestScope request, com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap parameterMap, java.lang.Object parameterObject)
          Returns an object capable of being a unique cache key for a parameter object.
 java.lang.Object[] getData(com.ibatis.sqlmap.engine.scope.RequestScope request, com.ibatis.sqlmap.engine.mapping.parameter.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(com.ibatis.sqlmap.engine.scope.RequestScope request, com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap parameterMap, java.lang.Object parameterObject, java.lang.Object[] values)
          Sets values from a data array into a parameter object
 java.lang.Object setData(com.ibatis.sqlmap.engine.scope.RequestScope request, com.ibatis.sqlmap.engine.mapping.result.ResultMap resultMap, java.lang.Object resultObject, java.lang.Object[] values)
          Sets values from a data array into a result object.
 

Method Detail

initialize

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


getData

public java.lang.Object[] getData(com.ibatis.sqlmap.engine.scope.RequestScope request,
                                  com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap parameterMap,
                                  java.lang.Object parameterObject)
Gets a data array from a parameter object.


setData

public java.lang.Object setData(com.ibatis.sqlmap.engine.scope.RequestScope request,
                                com.ibatis.sqlmap.engine.mapping.result.ResultMap resultMap,
                                java.lang.Object resultObject,
                                java.lang.Object[] values)
Sets values from a data array into a result object.


setData

public java.lang.Object setData(com.ibatis.sqlmap.engine.scope.RequestScope request,
                                com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap parameterMap,
                                java.lang.Object parameterObject,
                                java.lang.Object[] values)
Sets values from a data array into a parameter object


getCacheKey

public com.ibatis.sqlmap.engine.cache.CacheKey getCacheKey(com.ibatis.sqlmap.engine.scope.RequestScope request,
                                                           com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap parameterMap,
                                                           java.lang.Object parameterObject)
Returns an object capable of being a unique cache key for a parameter object.