Interface CMBaseMapper<E,D>

All Known Subinterfaces:
BinChunkDTOMapper, NodeAttributeMapper, NodeMapper, VersionAttributeMapper, VersionMapper
All Known Implementing Classes:
BinChunkDTOMapperImpl, NodeAttributeMapperImpl, NodeMapperImpl, VersionAttributeMapperImpl, VersionMapperImpl

public interface CMBaseMapper<E,D>
  • Method Summary

    Modifier and Type
    Method
    Description
    mapToDTO(E entity)
    Maps an entity to a DTO.
    mapToDTO(List<E> entity)
    Maps a list of entities to a list of DTO's.
    Maps a DTO to an entity.
    Maps a list of DTO's to a list of entities.
  • Method Details

    • mapToDTO

      D mapToDTO(E entity)
      Maps an entity to a DTO.
      Parameters:
      entity - the source entity
      Returns:
      the mapped DTO
    • mapToDTO

      List<D> mapToDTO(List<E> entity)
      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

      E mapToEntity(D dto)
      Maps a DTO to an entity.
      Parameters:
      dto - the source DTO
      Returns:
      the mapped entity
    • mapToEntity

      List<E> mapToEntity(List<D> dto)
      Maps a list of DTO's to a list of entities.
      Parameters:
      dto - the source DTO's list
      Returns:
      the mapped list of entities