@ApplicationScoped public class PlayerServiceBean extends EntityServiceBase<Player> implements PlayerService
PlayerService implemented as an injectable bean| Constructor and Description |
|---|
PlayerServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createPlayer(Long divisionId,
View playerView) |
View |
findPlayerById(Long id) |
void |
init() |
View |
updatePlayer(Long id,
View playerView) |
create, delete, findById, getEntityManager, getViewContext, newEntity, onDelete, setEntityManager, setViewContext, update@PostConstruct public void init()
public View findPlayerById(Long id) throws NoSuchEntityException
findPlayerById in interface PlayerServiceNoSuchEntityExceptionpublic Object createPlayer(Long divisionId, View playerView)
createPlayer in interface PlayerServicepublic View updatePlayer(Long id, View playerView) throws NoSuchEntityException, UpdateConflictException
updatePlayer in interface PlayerServiceNoSuchEntityExceptionUpdateConflictExceptionCopyright © 2014–2016. All rights reserved.