Package io.tesler.core.service
Class DTOMapper
- java.lang.Object
-
- io.tesler.core.service.DTOMapper
-
@Component public class DTOMapper extends Object
-
-
Constructor Summary
Constructors Constructor Description DTOMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(E entity, Class<D> dtoClass)
Creates a dto with a complete set of fields<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(E entity, Class<D> dtoClass, DtoField<D,?> field)
<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(E entity, Class<D> dtoClass, Set<DtoField<D,?>> fields)
Creates a dto with a given set of fields<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(E entity, Class<D> dtoClass, Set<DtoField<D,?>> fields, boolean flushRequired)
Creates a dto with a given set of fields<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(BcIdentifier bc, E entity, Class<D> dtoClass)
Creates a dto with the required set of fields for the current screen<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(BcIdentifier bc, E entity, Class<D> dtoClass, boolean flushRequired)
Creates a dto with the required set of fields for the current screen<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(BcIdentifier bc, E entity, Class<D> dtoClass, boolean flushRequired, Map<String,Object> attributes)
Creates a dto with the required set of fields for the current screen<E extends BaseEntity,D extends DataResponseDTO>
DentityToDto(BcIdentifier bc, E entity, Class<D> dtoClass, Map<String,Object> attributes)
Creates a dto with the required set of fields for the current screen
-
-
-
Method Detail
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(BcIdentifier bc, E entity, Class<D> dtoClass, boolean flushRequired, Map<String,Object> attributes)
Creates a dto with the required set of fields for the current screen
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(BcIdentifier bc, E entity, Class<D> dtoClass, boolean flushRequired)
Creates a dto with the required set of fields for the current screen
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(BcIdentifier bc, E entity, Class<D> dtoClass)
Creates a dto with the required set of fields for the current screen
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(BcIdentifier bc, E entity, Class<D> dtoClass, Map<String,Object> attributes)
Creates a dto with the required set of fields for the current screen
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(E entity, Class<D> dtoClass)
Creates a dto with a complete set of fields
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(E entity, Class<D> dtoClass, Set<DtoField<D,?>> fields, boolean flushRequired)
Creates a dto with a given set of fields
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(E entity, Class<D> dtoClass, DtoField<D,?> field)
-
entityToDto
public <E extends BaseEntity,D extends DataResponseDTO> D entityToDto(E entity, Class<D> dtoClass, Set<DtoField<D,?>> fields)
Creates a dto with a given set of fields
-
-