Interface DataMapper<S,D>
-
public interface DataMapper<S,D>The main runtime interface between a Java application and a Data Mapper. This is the central interface abstracting the service of a Java bean mapping. The operation of mapping may include :
- Creation of new objects :
newObject() - Conversion object to another type:
convert()
Example of code to map an instance ofEntity(entity) toDTOclass:
... DTO newDTO = mapperFacade.map(entity, DTO.class); ...
- Since:
- 1.0.0
- Author:
- Neha
- Creation of new objects :
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Dmap(S source)voidmap(S source, D destination)voidmap(S source, D destination, DataConverter<S,D> dataConverter)
-