@Entity public class Team extends Object
| Constructor and Description |
|---|
Team()
Creates a new empty instance of
Team. |
Team(long teamId,
String teamName,
String teamShortName,
String teamDescription,
SportType teamSportType,
Boolean teamOpen,
int teamMinPlayers,
int teamMaxPlayers,
Boolean teamPublic,
Boolean teamDeleted,
HeadQuarter teamHeadQuarter,
Contact teamContact)
Creates a new instance of
Team. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
Contact |
getTeamContact()
Returns the team
Contact. |
Boolean |
getTeamDeleted()
Returns if the team is logically deleted.
|
String |
getTeamDescription()
Returns the description of the team.
|
HeadQuarter |
getTeamHeadQuarter()
Returns the team
HeadQuarter. |
long |
getTeamId()
Returns the id of the team.
|
int |
getTeamMaxPlayers()
Returns the max number of players of the team.
|
int |
getTeamMinPlayers()
Returns the min number of players of the team.
|
String |
getTeamName()
Returns the name of the team.
|
Boolean |
getTeamOpen()
Returns if the team is open.
|
Boolean |
getTeamPublic()
Returns if the team is public.
|
String |
getTeamShortName()
Returns the short name of the team.
|
SportType |
getTeamSportType()
Returns the sport type of the team.
|
int |
hashCode()
Returns the hashCode of the team.
|
void |
setTeamContact(Contact teamContact)
Sets the team
Contact. |
void |
setTeamDeleted(Boolean teamDeleted)
Sets if team is deleted.
|
void |
setTeamDescription(String teamDescription)
Sets the description of the team.
|
void |
setTeamHeadQuarter(HeadQuarter teamHeadQuarter)
Sets the team
HeadQuarter. |
void |
setTeamId(long teamId)
Sets the id of the team.
|
void |
setTeamMaxPlayers(int teamMaxPlayers)
Sets the max number of players of the team.
|
void |
setTeamMinPlayers(int teamMinPlayers)
Sets the min number of players of the team.
|
void |
setTeamName(String teamName)
Sets the name of the team.
|
void |
setTeamOpen(Boolean teamOpen)
Sets if team is open.
|
void |
setTeamPublic(Boolean teamPublic)
Sets if team is public.
|
void |
setTeamShortName(String teamShortName)
Sets the short name of the team.
|
void |
setTeamSportType(SportType teamSportType)
Sets the description of the team.
|
public Team(long teamId,
String teamName,
String teamShortName,
String teamDescription,
SportType teamSportType,
Boolean teamOpen,
int teamMinPlayers,
int teamMaxPlayers,
Boolean teamPublic,
Boolean teamDeleted,
HeadQuarter teamHeadQuarter,
Contact teamContact)
Team.teamId - the id of the team. This parameter must be a non empty and non
null long .teamName - the name of the team. This parameter must be a non empty and non
null String.teamShortName - the short name of the team. This parameter must be a non empty and
non null String.teamDescription - the description of the teamteamSportType - the sport type of the team. This parameter must be a non empty and
non null SportType.teamOpen - if the team is open. This parameter must be a non null
Boolean.teamMinPlayers - the min number of players of the team. This parameter must be a
non empty and non null int.teamMaxPlayers - the max number of players of the team. This parameter must be a
non empty and non null int.teamPublic - if the team is public. This parameter must be a non empty and non
null boolean.teamDeleted - if the team is logicaly deleted. This parameter must be a non
null boolean.teamHeadQuarter - the Head Quarter of the team. This parameter must be a
HeadQuarterteamContact - the Contact of the team. This parameter must be a ContactNullPointerException - 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()
Team.public long getTeamId()
public void setTeamId(long teamId)
teamId - the id of the team. This parameter must be a non empty and non
null long.public String getTeamName()
public void setTeamName(String teamName)
teamName - the name of the team. This parameter must be a non empty and non
null string with a maximun length of 60 chars and a
minumun length of 10 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getTeamShortName()
public void setTeamShortName(String teamShortName)
teamShortName - the short name of the team. This parameter must be a non empty and
non null string with a maximun length of 10 chars and a
minumun length of 2 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getTeamDescription()
public void setTeamDescription(String teamDescription)
teamDescription - the description of the team. This parameter must be a non empty
string with a maximun length of 240 chars and a minumun length of
10 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public SportType getTeamSportType()
public void setTeamSportType(SportType teamSportType)
teamSportType - the description of the team. This parameter must be a non empty
and non null SportType.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public Boolean getTeamOpen()
public void setTeamOpen(Boolean teamOpen)
teamOpen - if team is open. This parameter must be a non empty and non
null boolean.NullPointerException - if a null value is passed.public int getTeamMinPlayers()
public void setTeamMinPlayers(int teamMinPlayers)
teamMinPlayers - min number of players of the team. This parameter must be a non
empty and non null int greater than 0.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public int getTeamMaxPlayers()
public void setTeamMaxPlayers(int teamMaxPlayers)
teamMaxPlayers - max number of players of the team. This parameter must be a non
empty and non null int greater than 0.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public Boolean getTeamPublic()
public void setTeamPublic(Boolean teamPublic)
teamPublic - if team is public. This parameter must be a non empty and non
null boolean.NullPointerException - if a null value is passed.public Boolean getTeamDeleted()
public void setTeamDeleted(Boolean teamDeleted)
teamDeleted - if team is deleted. This parameter must be a non empty and non
null boolean.NullPointerException - if a null value is passed.public HeadQuarter getTeamHeadQuarter()
HeadQuarter.HeadQuarter.public void setTeamHeadQuarter(HeadQuarter teamHeadQuarter)
HeadQuarter.teamHeadQuarter - the Head quarter of the team. This parameter must be a
HeadQuarter.public Contact getTeamContact()
Contact.Contact.public void setTeamContact(Contact teamContact)
Contact.teamContact - the contact of the team. This parameter must be a Contact.public int hashCode()
Copyright © 2017. All rights reserved.