@Entity public class Team extends Object implements Serializable
| Constructor and Description |
|---|
Team() |
Team(String nameTeam,
String nick,
SportType sportType,
String nameHeadquarters,
String residenceHeadquarters,
String localityHeadquarters,
String provinceHeadquarters,
String contactPerson)
Creates a new instance
Team |
Team(String nameTeam,
String nickTeam,
String descriptionTeam,
SportType sportType,
String nameHeadquarters,
String descriptionHeadquarters,
String residenceHeadquarters,
String localityHeadquarters,
String provinceHeadquarters,
String contactPerson,
String email,
String web,
String phone,
String socialMedia,
boolean openToInscription,
int minPlayers,
int maxPlayers,
boolean isVisible)
Creates a new instance
Team |
| Modifier and Type | Method and Description |
|---|---|
String |
getContactPerson()
Returns the name of the contact person
|
String |
getDescriptionHeadquarters()
Returns the description of the team's headquarters
|
String |
getDescriptionTeam()
Returns the description of the team
|
String |
getEmail()
Returns the email of the contact person
|
String |
getLocalityHeadquarters()
Returns the locality of the team's headquarters
|
int |
getMaxPlayers()
Returns the maximum number of the team
|
int |
getMinPlayers()
Returns the minimum number of the team
|
String |
getNameHeadquarters()
Returns the name of the team headquarters
|
String |
getNameTeam()
Returns the name of the team
|
String |
getNickTeam()
Returns the abbreviation name of the team
|
String |
getPhone()
Returns the phone of the contact person
|
String |
getProvinceHeadquarters()
Returns the province of the team's headquarters
|
String |
getResidenceHeadquarters()
Returns the residence of the team's headquarters
|
String |
getSocialMedia()
Returns the team's social media
|
SportType |
getSportType()
Returns the type of the team
|
String |
getWeb()
Returns the team's website
|
boolean |
isOpenToInscription()
Returns if the team is open to registration or not
|
boolean |
isVisible()
Returns if the equipment is public or private.
|
void |
setContactPerson(String contactPerson)
Sets the name of the contact person
|
void |
setDescriptionHeadquarters(String descriptionHeadquarters)
Sets the description of the team's headquarters
|
void |
setDescriptionTeam(String descriptionTeam)
Sets the description of a team
|
void |
setEmail(String email)
Sets the email of the contact person
|
void |
setLocalityHeadquarters(String localityHeadquarters)
Sets the locality of the team's headquarters
|
void |
setMaxPlayers(int maxPlayers)
Sets the maximum number of team players
|
void |
setMinPlayers(int minPlayers)
Sets the minimum number of the players
|
void |
setNameHeadquarters(String nameHeadquarters)
Sets the name of the team headquarters
|
void |
setNameTeam(String nameTeam)
Sets the name of the team
|
void |
setNickTeam(String nickTeam)
Sets the abbreviation name of the team
|
void |
setOpenToInscription(boolean openToInscription)
Sets to close or open for a inscription
|
void |
setPhone(String phone)
Sets the phone of the contact person
|
void |
setProvinceHeadquarters(String provinceHeadquarters)
Sets the province of the team's headquarters
|
void |
setResidenceHeadquarters(String residenceHeadquarters)
Sets the residence of the team's headquarters
|
void |
setSocialMedia(String socialMedia)
Sets the social medio of the team
|
void |
setSportType(SportType sportType)
Sets the type of the team
|
void |
setVisible(boolean isVisible)
Sets the visibility of the team.
|
void |
setWeb(String web)
Sets the team's website
|
public Team()
public Team(String nameTeam, String nickTeam, String descriptionTeam, SportType sportType, String nameHeadquarters, String descriptionHeadquarters, String residenceHeadquarters, String localityHeadquarters, String provinceHeadquarters, String contactPerson, String email, String web, String phone, String socialMedia, boolean openToInscription, int minPlayers, int maxPlayers, boolean isVisible)
TeamnameTeam - the name of the team which identifies the team in our system. Must
be a non empty and non null string with a maximum length
of 100 chars.nickTeam - shortcut identifier for the identification. Must be a non empty
and non null string with a maximum length of 25 chars.descriptionTeam - the description of a team.sportType - is an enumerated data with all the possibles choices of our system
in terms of competition. Must be a non empty and non null
string.nameHeadquarters - the name of the headquarters of our team. Must be a non empty and
non null string.descriptionHeadquarters - the description of the headquarters of a team.residenceHeadquarters - the residence of the headquarters of the team. Must be a non empty
and non null string.localityHeadquarters - the locality of the headquarters of the team. Must be a non empty
and non null string.provinceHeadquarters - the province of the headquarters of the team. Must be a non empty
and non null string.contactPerson - the person who manages the team. Must be a non empty and non
null string.email - the email of the contact personweb - the team's websitephone - the phone of the contact personsocialMedia - the social media of the teamopenToInscription - indication of whether it is open to registration or if it is a
closed teamminPlayers - minimum number of team playersmaxPlayers - maximum number of team playersisVisible - team visibility. True visible, false privateNullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public Team(String nameTeam, String nick, SportType sportType, String nameHeadquarters, String residenceHeadquarters, String localityHeadquarters, String provinceHeadquarters, String contactPerson)
TeamnameTeam - the name of the team which identifies the team in our system. Must
be a non empty and non null string with a maximum length
of 100 chars.nick - shortcut identifier for the identification. Must be a non empty
and non null string with a maximum length of 25 chars.sportType - is an enumerated data with all the possibles choices of our system
in terms of competition. Must be a non empty and non null
string.nameHeadquarters - the name of the headquarters of our team. Must be a non empty and
non null string.residenceHeadquarters - the residence of the headquarters of the team. Must be a non empty
and non null string.localityHeadquarters - the locality of the headquarters of the team. Must be a non empty
and non null string.provinceHeadquarters - the province of the headquarters of the team. Must be a non empty
and non null string.contactPerson - the person who manages the team. Must be a non empty and non
null string.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public String getNameTeam()
public void setNameTeam(String nameTeam)
nameTeam - the name of the team which identifies the team in our system. Must
be a non empty and non null string with a maximum length
of 100 chars.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public String getNickTeam()
public void setNickTeam(String nickTeam)
nickTeam - shortcut identifier for the identification. Must be a non empty
and non null string with a maximum length of 25 chars.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public String getDescriptionTeam()
public void setDescriptionTeam(String descriptionTeam)
descriptionTeam - the description of a team.public SportType getSportType()
public void setSportType(SportType sportType)
sportType - is an enumerated data with all the possibles choices of our system
in terms of competition. Must be a non empty and non null
string.NullPointerException - if a null value is passed as the value for any parameter.public String getNameHeadquarters()
public void setNameHeadquarters(String nameHeadquarters)
nameHeadquarters - the name of the headquarters of our team. Must be a non empty and
non null string.NullPointerException - if a null value is passed as the value for any parameter.public String getDescriptionHeadquarters()
public void setDescriptionHeadquarters(String descriptionHeadquarters)
descriptionHeadquarters - the descriptionHeadquarters to setpublic String getResidenceHeadquarters()
public void setResidenceHeadquarters(String residenceHeadquarters)
residenceHeadquarters - the residence of the headquarters of the team. Must be a non empty
and non null string.NullPointerException - if a null value is passed as the value for any parameter.public String getLocalityHeadquarters()
public void setLocalityHeadquarters(String localityHeadquarters)
localityHeadquarters - the locality of the headquarters of the team. Must be a non empty
and non null string.NullPointerException - if a null value is passed as the value for any parameter.public String getProvinceHeadquarters()
public void setProvinceHeadquarters(String provinceHeadquarters)
provinceHeadquarters - the province of the headquarters of the team. Must be a non empty
and non null string.NullPointerException - if a null value is passed as the value for any parameter.public String getContactPerson()
public void setContactPerson(String contactPerson)
contactPerson - the person who manages the team. Must be a non empty and non
null string.NullPointerException - if a null value is passed as the value for any parameter.public String getEmail()
public void setEmail(String email)
email - the email of the contact personpublic String getWeb()
public void setWeb(String web)
web - the team's websitepublic String getPhone()
public void setPhone(String phone)
phone - the phone of the contact personpublic String getSocialMedia()
public void setSocialMedia(String socialMedia)
socialMedia - the social media of the teampublic boolean isOpenToInscription()
public void setOpenToInscription(boolean openToInscription)
openToInscription - indication of whether it is open to registration or if it is a
closed teampublic int getMinPlayers()
public void setMinPlayers(int minPlayers)
minPlayers - minimum number of team playerspublic int getMaxPlayers()
public void setMaxPlayers(int maxPlayers)
maxPlayers - maximum number of team playerspublic boolean isVisible()
public void setVisible(boolean isVisible)
isVisible - team visibility. True visible, false privateCopyright © 2017. All rights reserved.