E - the element type of the entity objectDO - the generic type of the domain objectpublic interface EntityDOMapper<E extends de.alpharogroup.db.entity.BaseEntity<?>,DO extends DomainObject<?>>
EntityDOMapper provides the methods for mapping entities to domain objects
and back.| Modifier and Type | Method and Description |
|---|---|
Class<DO> |
getDomainObjectClass()
Gets the domain object class.
|
Class<E> |
getEntityClass()
Gets the entity class.
|
org.dozer.Mapper |
getMapper()
Gets the mapper.
|
default <T,S> List<T> |
map(Collection<S> sources,
Class<T> destinationClass)
Constructs new instances of destinationClass and performs mapping between from source.
|
default <T,S> T |
map(S source,
Class<T> destinationClass)
Constructs new instance of destinationClass and performs mapping between from source.
|
default DO |
toDomainObject(E entity)
Maps the given entity object to a domain object.
|
default List<DO> |
toDomainObjects(Collection<E> entities)
Maps the given list of entity objects to a list of domain objects.
|
default List<E> |
toEntities(Collection<DO> domainObjects)
Maps the given list of domain objects to a list of entity objects.
|
default E |
toEntity(DO domainObject)
Maps the given domain object to a entity object.
|
Class<DO> getDomainObjectClass()
org.dozer.Mapper getMapper()
default <T,S> List<T> map(Collection<S> sources, Class<T> destinationClass) throws org.dozer.MappingException
T - the generic type of the destinationClassS - the generic type of the sourcesources - the collection of source objectsdestinationClass - the destination classorg.dozer.MappingException - is thrown if something goes wrong with the mapping process.default <T,S> T map(S source,
Class<T> destinationClass)
throws org.dozer.MappingException
T - the generic type of the destinationClassS - the generic type of the sourcesource - the sourcedestinationClass - the destination classorg.dozer.MappingException - is thrown if something goes wrong with the mapping process.default DO toDomainObject(E entity)
entity - the entitydefault List<DO> toDomainObjects(Collection<E> entities)
entities - the entitiesdefault List<E> toEntities(Collection<DO> domainObjects)
domainObjects - the list of domain objectsCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.