PK - the generic type of the primary keyDO - the generic type of the domain objectpublic interface DomainService<PK extends Serializable,DO extends DomainObject<PK>>
DomainService provide methods for crud processes.| 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.
|
DO create(DO domainObject)
domainObject - the domain objectvoid delete(PK id)
id - the idDO read(PK id)
id - the idvoid update(DO domainObject)
domainObject - the domain objectCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.