C# Class Habanero.Base.DataMappers.DataMapperFactory

Factory for returning the appropriate Datamapper depending on the target type (typically a IBOProp type.)
Inheritance: IDataMapperFactory
Show file Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
DataMapperFactory ( ) : System

Constructs the Factory and sets up the default datamappers for each type

GetDataMapper ( Type targetType ) : IDataMapper

Returns the DataMapper for the targetType.

SetDataMapper ( Type targetType, IDataMapper dataMapper ) : void

sets the dataMapper for the targetType

Private Methods

Method Description
InitialiseDataMappers ( ) : void

Method Details

DataMapperFactory() public method

Constructs the Factory and sets up the default datamappers for each type
public DataMapperFactory ( ) : System
return System

GetDataMapper() public method

Returns the DataMapper for the targetType.
public GetDataMapper ( Type targetType ) : IDataMapper
targetType System.Type
return IDataMapper

SetDataMapper() public method

sets the dataMapper for the targetType
public SetDataMapper ( Type targetType, IDataMapper dataMapper ) : void
targetType System.Type
dataMapper IDataMapper
return void