E - the element typeBO - the generic typepublic abstract class AbstractEntityBOMapper<E extends de.alpharogroup.db.entity.BaseEntity<?>,BO extends BusinessObject<?>> extends Object implements EntityBOMapper<E,BO>
AbstractEntityBOMapper provides an base
implementation for mapping entities to business objects and back.| Constructor and Description |
|---|
AbstractEntityBOMapper()
Instantiates a new
AbstractEntityBOMapper. |
AbstractEntityBOMapper(List<String> mappingFiles)
Instantiates a new
AbstractEntityBOMapper. |
| Modifier and Type | Method and Description |
|---|---|
org.dozer.Mapper |
newMapper(List<String> mappingFiles)
Factory method for creating the new
Mapper for the mapping
process with the given mapping files list. |
BO |
toBusinessObject(E entity)
Maps the given entity object to a business object.
|
List<BO> |
toBusinessObjects(List<E> entities)
Maps the given list of entity objects to a list of business objects.
|
List<E> |
toEntities(List<BO> businessObjects)
Maps the given list of business objects to a list of entity objects.
|
E |
toEntity(BO businessObject)
Maps the given business object to a entity object.
|
public AbstractEntityBOMapper()
AbstractEntityBOMapper.public AbstractEntityBOMapper(List<String> mappingFiles)
AbstractEntityBOMapper.mappingFiles - the mapping filespublic org.dozer.Mapper newMapper(List<String> mappingFiles)
Mapper for the mapping
process with the given mapping files list. This method is invoked in the
constructor and can be overridden so users can provide their own mapping
process.mappingFiles - the mapping filesMapper for the mapping process.public BO toBusinessObject(E entity)
toBusinessObject in interface EntityBOMapper<E extends de.alpharogroup.db.entity.BaseEntity<?>,BO extends BusinessObject<?>>entity - the entitypublic List<BO> toBusinessObjects(List<E> entities)
toBusinessObjects in interface EntityBOMapper<E extends de.alpharogroup.db.entity.BaseEntity<?>,BO extends BusinessObject<?>>entities - the entitiespublic List<E> toEntities(List<BO> businessObjects)
toEntities in interface EntityBOMapper<E extends de.alpharogroup.db.entity.BaseEntity<?>,BO extends BusinessObject<?>>businessObjects - the list of business objectspublic E toEntity(BO businessObject)
toEntity in interface EntityBOMapper<E extends de.alpharogroup.db.entity.BaseEntity<?>,BO extends BusinessObject<?>>businessObject - the business objectCopyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.