PK - the generic type of the primary keyBO - the generic type of the business objectpublic interface RestfulResource<PK extends Serializable,BO extends BusinessObject<PK>>
RestfulResource.| 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.
|
@POST @Path(value="/") BO create(BO businessObject)
businessObject - the business object@DELETE
@Path(value="/{id}/")
void delete(PK id)
id - the id@GET
@Path(value="/{id}/")
BO read(@PathParam(value="id")
PK id)
id - the id@PUT @Path(value="/") void update(BO businessObject)
businessObject - the business objectCopyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.