@ApplicationScoped public class LeagueServiceBean extends EntityServiceBase<League> implements LeagueService
LeagueService implemented as an injectable bean.| Constructor and Description |
|---|
LeagueServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createLeague(View leagueView) |
void |
deleteLeague(Long id) |
View |
findAllLeagues() |
View |
findLeagueById(Long id) |
void |
init() |
View |
updateLeague(Long id,
View leagueView) |
create, delete, findById, getEntityManager, getViewContext, newEntity, onDelete, setEntityManager, setViewContext, update@PostConstruct public void init()
public View findAllLeagues()
findAllLeagues in interface LeagueServicepublic View findLeagueById(Long id) throws NoSuchEntityException
findLeagueById in interface LeagueServiceNoSuchEntityExceptionpublic Object createLeague(View leagueView)
createLeague in interface LeagueServicepublic View updateLeague(Long id, View leagueView) throws NoSuchEntityException, UpdateConflictException
updateLeague in interface LeagueServiceNoSuchEntityExceptionUpdateConflictExceptionpublic void deleteLeague(Long id)
deleteLeague in interface LeagueServiceCopyright © 2014–2016. All rights reserved.