PK - the generic type of the primary keyDO - the generic type of the domain objectpublic interface RestfulResource<PK,DO extends de.alpharogroup.domain.DomainObject<PK>>
RestfulResource.| 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.
|
@POST @Path(value="/") DO create(DO domainObject)
domainObject - the domain object@DELETE @Path(value="/{id}/") void delete(@PathParam(value="id") PK id)
id - the id@GET @Path(value="/{id}/") DO read(@PathParam(value="id") PK id)
id - the idCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.