PK - the generic type of the primary keyBO - the generic type of the business objectE - the element type of the entityDAO - the generic type of the data transfer objectM - the generic type of the entity mapperpublic abstract class AbstractBusinessMapperService<PK extends Serializable,BO extends BusinessObject<PK>,E extends de.alpharogroup.db.entity.BaseEntity<PK>,DAO extends de.alpharogroup.db.dao.jpa.EntityManagerDao<E,PK>,M extends EntityBOMapper<E,BO>> extends Object implements BusinessMapperService<PK,BO>
AbstractBusinessMapperService.| Constructor and Description |
|---|
AbstractBusinessMapperService() |
| Modifier and Type | Method and Description |
|---|---|
BO |
create(BO businessObject)
Creates an entity from the given business object and persist it to the underlying database.
|
void |
delete(PK id)
Deletes an entity with the given id.
|
BO |
read(PK id)
Read an entity with the given id and maps it to a business object that will be returned.
|
void |
update(BO businessObject)
Updates the given business object to the underlying database.
|
public BO read(PK id)
read in interface BusinessMapperService<PK extends Serializable,BO extends BusinessObject<PK>>id - the idpublic BO create(BO businessObject)
create in interface BusinessMapperService<PK extends Serializable,BO extends BusinessObject<PK>>businessObject - the business objectpublic void update(BO businessObject)
update in interface BusinessMapperService<PK extends Serializable,BO extends BusinessObject<PK>>businessObject - the business objectpublic void delete(PK id)
delete in interface BusinessMapperService<PK extends Serializable,BO extends BusinessObject<PK>>id - the idCopyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.