@ApplicationScoped public class DivisionServiceBean extends EntityServiceBase<Division> implements DivisionService
DivisionService implemented as an injectable bean.| Constructor and Description |
|---|
DivisionServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createDivision(View divisionView) |
void |
deleteDivision(Long id) |
View |
findDivisionById(Long id) |
void |
init() |
protected void |
onDelete(Division division) |
View |
updateDivision(Long id,
View divisionView) |
create, delete, findById, getEntityManager, getViewContext, newEntity, setEntityManager, setViewContext, update@PostConstruct public void init()
public View findDivisionById(Long id) throws NoSuchEntityException
findDivisionById in interface DivisionServiceNoSuchEntityExceptionpublic Object createDivision(View divisionView)
createDivision in interface DivisionServicepublic View updateDivision(Long id, View divisionView) throws NoSuchEntityException, UpdateConflictException
updateDivision in interface DivisionServiceNoSuchEntityExceptionUpdateConflictExceptionpublic void deleteDivision(Long id)
deleteDivision in interface DivisionServiceprotected void onDelete(Division division)
onDelete in class EntityServiceBase<Division>Copyright © 2014–2016. All rights reserved.