|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenericService<T extends DomainObject>
Generic interface definnig all services User: Ľuboš Pecho Date: 11.8.2009 Time: 13:12:44
| Method Summary | |
|---|---|
T |
create(T entity)
persists the entity |
List<T> |
getAll()
returns all entities |
T |
getById(long id)
get the entity with given id |
T |
refresh(T entity)
refreshes the entity from database |
void |
remove(T entity)
removes a persisted entity |
void |
removeById(long id)
removes entity with given id |
T |
searchById(long id)
searches the entity with given id |
T |
update(T entity)
updates the entity |
| Method Detail |
|---|
T getById(long id)
id -
DomainObjectNotFoundException - if no object is foundT searchById(long id)
id -
List<T> getAll()
T create(T entity)
entity -
T update(T entity)
entity -
void remove(T entity)
entity - T refresh(T entity)
entity -
void removeById(long id)
id -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||