com.ibatis.sqlmap.engine.exchange
Class BaseDataExchange

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.exchange.BaseDataExchange
All Implemented Interfaces:
DataExchange
Direct Known Subclasses:
ComplexDataExchange, DomDataExchange, JavaBeanDataExchange, ListDataExchange, MapDataExchange, PrimitiveDataExchange

public abstract class BaseDataExchange
extends java.lang.Object
implements DataExchange

Base implementation for the DataExchange interface


Constructor Summary
protected BaseDataExchange(DataExchangeFactory dataExchangeFactory)
           
 
Method Summary
 CacheKey getCacheKey(RequestScope request, ParameterMap parameterMap, java.lang.Object parameterObject)
          Returns an object capable of being a unique cache key for a parameter object.
 DataExchangeFactory getDataExchangeFactory()
          Getter for the factory that created this object
 
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
getData, initialize, setData, setData
 

Constructor Detail

BaseDataExchange

protected BaseDataExchange(DataExchangeFactory dataExchangeFactory)
Method Detail

getCacheKey

public CacheKey getCacheKey(RequestScope request,
                            ParameterMap parameterMap,
                            java.lang.Object parameterObject)
Description copied from interface: DataExchange
Returns an object capable of being a unique cache key for a parameter object.

Specified by:
getCacheKey in interface DataExchange
Parameters:
request - - the request scope
parameterMap - - the parameter map
parameterObject - - the parameter object
Returns:
- a cache key

getDataExchangeFactory

public DataExchangeFactory getDataExchangeFactory()
Getter for the factory that created this object

Returns:
- the factory