Class KeyMapperImpl
java.lang.Object
com.eurodyn.qlack.fuse.lexicon.mapper.KeyMapperImpl
- All Implemented Interfaces:
KeyMapper
,LexiconMapper<Key,
KeyDTO>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMaps an entity to a DTO.Maps an entity Key to DTOMaps a list of entities to a list of DTO's.mapToEntity
(KeyDTO dto) Maps a DTO to an entity.mapToEntity
(List<KeyDTO> dto) Maps a list of DTO's to a list of entities.
-
Constructor Details
-
KeyMapperImpl
public KeyMapperImpl()
-
-
Method Details
-
mapToDTO
Description copied from interface:LexiconMapper
Maps an entity to a DTO.- Specified by:
mapToDTO
in interfaceLexiconMapper<Key,
KeyDTO> - Parameters:
entity
- the source entity- Returns:
- the mapped DTO
-
mapToDTO
Description copied from interface:LexiconMapper
Maps a list of entities to a list of DTO's.- Specified by:
mapToDTO
in interfaceLexiconMapper<Key,
KeyDTO> - Parameters:
entity
- the source entities list- Returns:
- the mapped list of DTO's
-
mapToEntity
Description copied from interface:LexiconMapper
Maps a DTO to an entity.- Specified by:
mapToEntity
in interfaceLexiconMapper<Key,
KeyDTO> - Parameters:
dto
- the source DTO- Returns:
- the mapped entity
-
mapToEntity
Description copied from interface:LexiconMapper
Maps a list of DTO's to a list of entities.- Specified by:
mapToEntity
in interfaceLexiconMapper<Key,
KeyDTO> - Parameters:
dto
- the source DTO's list- Returns:
- the mapped list of entities
-
mapToDTO
Description copied from interface:KeyMapper
Maps an entity Key to DTO
-