@Entity public class Team extends Object
| Constructor and Description |
|---|
Team()
Default empty constructor (required by JPA).
|
Team(String teamName,
String abbreviatedTeamName,
String description,
String sportName,
String location,
String province,
String contactPersonName,
String contactPersonEmail,
int numMaxPlayers,
int numMinPlayers,
TeamVisibility teamVisibility,
User manager)
Constructor for a team
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviatedTeamName()
Get the abbreviated name of the team
|
String |
getContactPersonEmail()
Get the contact person email of the team
|
String |
getContactPersonName()
Get the contact person name of the team
|
Date |
getDeleted()
Get the deletion time of the team.
|
String |
getDescription()
Get the description of the team
|
Long |
getId()
Get the unique identifier of the team (autogenerated field by JPA engine)
|
String |
getLocation()
Get the location of the team
|
User |
getManager()
Get the manager of the team.
|
int |
getNumMaxPlayers()
Get the number maximum of players of the team
|
int |
getNumMinPlayers()
Get the number minimum of players of the team
|
List<Player> |
getPlayers()
Get the list of players of the team.
|
String |
getProvince()
Get the province of the team
|
String |
getSportName()
Get the sport name of the team
|
String |
getTeamName()
Get the name of the team
|
TeamVisibility |
getTeamVisibility()
Get the visibility of the team
|
void |
setAbbreviatedTeamName(String abbreviatedTeamName)
Set the abbreviated name of the team
|
void |
setContactPersonEmail(String contactPersonEmail)
Set the contact person email of the team
|
void |
setContactPersonName(String contactPersonName)
Set the contact person name of the team
|
void |
setDeleted(Date date)
Set the deletion date of the team
|
void |
setDescription(String description)
Set the description of the team
|
void |
setLocation(String location)
Set the location of the team
|
void |
setManager(User manager)
Set the manager of the team
|
void |
setNumMaxPlayers(int numMaxPlayers)
Set the number maximum of players of the team
|
void |
setNumMinPlayers(int numMinPlayers)
Set the minimum number of players of the team
|
void |
setPlayers(List<Player> players)
Set the list of players of the team
|
void |
setProvince(String province)
Set the province of the team
|
void |
setSportName(String sportName)
Set the sport name of the team
|
void |
setTeamName(String teamName)
Set the name of the team
|
void |
setTeamVisibility(TeamVisibility teamVisibility)
Set the visibility of the team
|
public Team()
public Team(String teamName, String abbreviatedTeamName, String description, String sportName, String location, String province, String contactPersonName, String contactPersonEmail, int numMaxPlayers, int numMinPlayers, TeamVisibility teamVisibility, User manager)
teamName - name of the teamabbreviatedTeamName - abbreviated name of the teamdescription - description of the teamsportName - sport name of the teamlocation - location where the team fromprovince - province of the teamcontactPersonName - name of the contact personcontactPersonEmail - email of the contact personnumMaxPlayers - number maximum of players in the teamnumMinPlayers - number minimum of players in the teamteamVisibility - visibility of the teammanager - manager of the teampublic Long getId()
public String getTeamName()
public void setTeamName(String teamName)
teamName - name of the team to be setpublic String getAbbreviatedTeamName()
public void setAbbreviatedTeamName(String abbreviatedTeamName)
abbreviatedTeamName - abbreviated name of the team to be setpublic String getDescription()
public void setDescription(String description)
description - description of the team to be setpublic String getSportName()
public void setSportName(String sportName)
sportName - sport name of the team to be setpublic String getLocation()
public void setLocation(String location)
location - location of the team to be setpublic String getProvince()
public void setProvince(String province)
province - province of the team to be setpublic String getContactPersonName()
public void setContactPersonName(String contactPersonName)
contactPersonName - contact person name of the team to be setpublic String getContactPersonEmail()
public void setContactPersonEmail(String contactPersonEmail)
contactPersonEmail - contact person email of the team to be setpublic int getNumMaxPlayers()
public void setNumMaxPlayers(int numMaxPlayers)
numMaxPlayers - number maximum of players of the team to be setpublic int getNumMinPlayers()
public void setNumMinPlayers(int numMinPlayers)
numMinPlayers - number mimimum of players of the team to be setpublic TeamVisibility getTeamVisibility()
public void setTeamVisibility(TeamVisibility teamVisibility)
teamVisibility - visibility of the team to be setpublic Date getDeleted()
public void setDeleted(Date date)
date - date when the team was deletedpublic User getManager()
public void setManager(User manager)
manager - manager of the teampublic List<Player> getPlayers()
Copyright © 2018. All rights reserved.