ENTITY - The type of entity.DTO - The type of DTO.public interface DtoMapper<ENTITY extends Entity,DTO>
| 修飾子とタイプ | メソッドと説明 |
|---|---|
DTO |
mappingToDto(ENTITY entity)
Do mapping from an entity to a DTO with relation data.
|
List<DTO> |
mappingToDtoList(List<ENTITY> entityList)
Do mapping from an entity list to a DTO list with relation data.
|
ENTITY |
mappingToEntity(DTO dto)
Do mapping from a DTO to an entity with relation data.
|
List<ENTITY> |
mappingToEntityList(List<DTO> dtoList)
Do mapping from a DTO list to an entity list with relation data.
|
void |
setBaseOnlyMapping(boolean baseOnlyMapping)
Set the option whether base-only mapping or not.
|
void |
setExceptCommonColumn(boolean exceptCommonColumn)
Set the option whether common column is except or not.
|
void |
setReverseReference(boolean reverseReference)
Set the option whether reverse reference or not.
|
DTO mappingToDto(ENTITY entity)
entity - The entity as mapping resource. (NullAllowed: if null, returns null)List<DTO> mappingToDtoList(List<ENTITY> entityList)
entityList - The list of entity as mapping resource. (NotNull: null elements are inherited)ENTITY mappingToEntity(DTO dto)
dto - The DTO as mapping resource. (NullAllowed: if null, returns null)List<ENTITY> mappingToEntityList(List<DTO> dtoList)
dtoList - The list of DTO as mapping resource. (NotNull: null elements are inherited)void setBaseOnlyMapping(boolean baseOnlyMapping)
baseOnlyMapping - Does the mapping ignore all references? (true: base-only mapping, false: all relations are valid)void setExceptCommonColumn(boolean exceptCommonColumn)
exceptCommonColumn - Does the mapping except common column? (true: no mapping of common column)void setReverseReference(boolean reverseReference)
reverseReference - Does the mapping contain reverse references? (true: reverse reference, false: one-way reference)Copyright © 2014–2015 The DBFlute Project. All rights reserved.