public class TeamEJB extends Object
| Constructor and Description |
|---|
TeamEJB() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(es.uvigo.esei.dgss.team.TeamJPA team)
Creates a new team
|
void |
delete(es.uvigo.esei.dgss.team.TeamJPA team)
Deletes a team
|
List<es.uvigo.esei.dgss.team.TeamJPA> |
list()
Gets all teams
|
List<es.uvigo.esei.dgss.team.TeamJPA> |
listPlayers(es.uvigo.esei.dgss.team.TeamJPA team)
Gets all players of a team
|
List<es.uvigo.esei.dgss.team.TeamJPA> |
listTeams(es.uvigo.esei.dgss.user.UserJPA user)
Gets all teams of a user
|
es.uvigo.esei.dgss.team.TeamJPA |
read(String name)
Gets a team given its full name
|
es.uvigo.esei.dgss.team.TeamJPA |
update(es.uvigo.esei.dgss.team.TeamJPA team)
Updates a team
|
public void create(es.uvigo.esei.dgss.team.TeamJPA team)
team - A new team to be storedpublic es.uvigo.esei.dgss.team.TeamJPA read(String name)
name - Full name of the team to findpublic es.uvigo.esei.dgss.team.TeamJPA update(es.uvigo.esei.dgss.team.TeamJPA team)
team - The team to be updatedIllegalArgumentException - if the user is not foundpublic void delete(es.uvigo.esei.dgss.team.TeamJPA team)
team - The team to be removedIllegalArgumentException - if the team is not foundpublic List<es.uvigo.esei.dgss.team.TeamJPA> list()
public List<es.uvigo.esei.dgss.team.TeamJPA> listTeams(es.uvigo.esei.dgss.user.UserJPA user)
user - The user which belongs to teampublic List<es.uvigo.esei.dgss.team.TeamJPA> listPlayers(es.uvigo.esei.dgss.team.TeamJPA team)
team - The team that the players belongs to teamCopyright © 2017. All rights reserved.