Interface AuditBaseMapper<E extends QlackBaseModel,D extends AuditBaseDTO>
- All Known Subinterfaces:
AuditLevelMapper
,AuditMapper
,AuditTraceMapper
- All Known Implementing Classes:
AuditLevelMapperImpl
,AuditMapperImpl
,AuditTraceMapperImpl
public interface AuditBaseMapper<E extends QlackBaseModel,D extends AuditBaseDTO>
Mapping interface for AuditBase entities and DTOs
- Author:
- European Dynamics SA.
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.springframework.data.domain.Page<D>
Maps a SpringPage
of entities to a SpringPage
of DTOs.Maps an entity to a DTO.Maps a list of entities to a list of DTO's.mapToEntity
(D dto) Maps a DTO to an entity.mapToEntity
(List<D> dto) Maps a list of DTO's to a list of entities.void
mapToExistingEntity
(D dto, E entity) Maps a DTO to an existing entity.
-
Method Details
-
mapToDTO
Maps an entity to a DTO.- Parameters:
entity
- the source entity- Returns:
- the mapped DTO
-
mapToDTO
Maps a list of entities to a list of DTO's.- Parameters:
entity
- the source entities list- Returns:
- the mapped list of DTO's
-
mapToEntity
Maps a DTO to an entity.- Parameters:
dto
- the source DTO- Returns:
- the mapped entity
-
mapToExistingEntity
Maps a DTO to an existing entity.- Parameters:
dto
- the source DTOentity
- the origin entity
-
mapToEntity
Maps a list of DTO's to a list of entities.- Parameters:
dto
- the source DTO's list- Returns:
- the mapped list of entities
-
map
Maps a SpringPage
of entities to a SpringPage
of DTOs.- Parameters:
all
- source object- Returns:
- the mapped object
-