PK - the generic type of the primary keyDO - the generic type of the domain objectDS - the generic type of the domain service interfacepublic class AbstractRestfulResource<PK extends Serializable,DO extends de.alpharogroup.domain.DomainObject<PK>,DS extends de.alpharogroup.service.domain.DomainService<PK,DO>> extends Object implements RestfulResource<PK,DO>
AbstractRestfulResource.| Constructor and Description |
|---|
AbstractRestfulResource() |
| 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 create(DO domainObject)
create in interface RestfulResource<PK extends Serializable,DO extends de.alpharogroup.domain.DomainObject<PK>>domainObject - the domain objectpublic void delete(PK id)
delete in interface RestfulResource<PK extends Serializable,DO extends de.alpharogroup.domain.DomainObject<PK>>id - the idpublic DO read(PK id)
read in interface RestfulResource<PK extends Serializable,DO extends de.alpharogroup.domain.DomainObject<PK>>id - the idpublic void update(DO domainObject)
update in interface RestfulResource<PK extends Serializable,DO extends de.alpharogroup.domain.DomainObject<PK>>domainObject - the domain objectCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.