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