PK - the generic type of the primary keyBO - the generic type of the business objectBMS - the generic type of the business mapper service interfacepublic class AbstractRestfulResource<PK extends Serializable,BO extends BusinessObject<PK>,BMS extends BusinessMapperService<PK,BO>> extends Object implements RestfulResource<PK,BO>
AbstractRestfulResource.| Constructor and Description |
|---|
AbstractRestfulResource() |
| 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.
|
public BO create(BO businessObject)
create in interface RestfulResource<PK extends Serializable,BO extends BusinessObject<PK>>businessObject - the business objectpublic void delete(PK id)
delete in interface RestfulResource<PK extends Serializable,BO extends BusinessObject<PK>>id - the idpublic BO read(PK id)
read in interface RestfulResource<PK extends Serializable,BO extends BusinessObject<PK>>id - the idpublic void update(BO businessObject)
update in interface RestfulResource<PK extends Serializable,BO extends BusinessObject<PK>>businessObject - the business objectCopyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.