@Entity public class Competition extends Object
| Constructor and Description |
|---|
Competition()
Creates a new empty instance of
Competition. |
Competition(long competitionId,
String competitionName,
String competitionShortName,
String competitionDescription,
SportType competitionSportType,
CompetitionType competitionType,
Boolean competitionOpen,
int competitionMinTeams,
int competitionMaxTeams,
Boolean competitionPublic,
Boolean competitionDeleted,
HeadQuarter competitionHeadQuarter,
User competitionUser,
Contact competitionContact)
Creates a new instance of
Competition. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
Contact |
getCompetitionContact()
Returns the competition
Contact. |
Boolean |
getCompetitionDeleted()
Returns if the competition is logically deleted.
|
String |
getCompetitionDescription()
Returns the description of the competition.
|
HeadQuarter |
getCompetitionHeadQuarter()
Returns the competition
HeadQuarter. |
long |
getCompetitionId()
Returns the id of the competition.
|
int |
getCompetitionMaxTeams()
Returns the max number of teams of the competition.
|
int |
getCompetitionMinTeams()
Returns the min number of teams of the competition.
|
String |
getCompetitionName()
Returns the name of the competition.
|
Boolean |
getCompetitionOpen()
Returns if the competition is open.
|
Boolean |
getCompetitionPublic()
Returns if the competition is public.
|
String |
getCompetitionShortName()
Returns the short name of the competition.
|
SportType |
getCompetitionSportType()
Returns the sport type of the competition.
|
List<Team> |
getCompetitionTeams()
Returns the competition
Teams. |
CompetitionType |
getCompetitionType()
Returns the competition type.
|
User |
getCompetitionUser()
Returns the competition
User. |
int |
hashCode()
Returns the hascCode of the competition.
|
void |
setCompetitionContact(Contact competitionContact)
Sets the competition
Contact. |
void |
setCompetitionDeleted(Boolean competitionDeleted)
Sets if competition is deleted.
|
void |
setCompetitionDescription(String competitionDescription)
Sets the description of the competition.
|
void |
setCompetitionHeadQuarter(HeadQuarter competitionHeadQuarter)
Sets the competition
HeadQuarter. |
void |
setCompetitionId(long competitionId)
Sets the id of the competition.
|
void |
setCompetitionMaxTeams(int competitionMaxTeams)
Sets the max number of teams of the competition.
|
void |
setCompetitionMinTeams(int competitionMinTeams)
Sets the min number of teams of the competition.
|
void |
setCompetitionName(String competitionName)
Sets the name of the competition.
|
void |
setCompetitionOpen(Boolean competitionOpen)
Sets if competition is open.
|
void |
setCompetitionPublic(Boolean competitionPublic)
Sets if competition is public.
|
void |
setCompetitionShortName(String competitionShortName)
Sets the short name of the competition.
|
void |
setCompetitionSportType(SportType competitionSportType)
Sets the description of the competition.
|
void |
setCompetitionTeams(List<Team> competitionTeams)
Sets the teams of the competition.
|
void |
setCompetitionType(CompetitionType competitionType)
Sets the type of the competition.
|
void |
setCompetitionUser(User competitionUser)
Sets the competition
User. |
public Competition(long competitionId,
String competitionName,
String competitionShortName,
String competitionDescription,
SportType competitionSportType,
CompetitionType competitionType,
Boolean competitionOpen,
int competitionMinTeams,
int competitionMaxTeams,
Boolean competitionPublic,
Boolean competitionDeleted,
HeadQuarter competitionHeadQuarter,
User competitionUser,
Contact competitionContact)
Competition.competitionId - the id of the competition. This parameter must be a non empty and
non null long .competitionName - the name of the competition. This parameter must be a non empty
and non null String.competitionShortName - the short name of the competition. This parameter must be a non
empty and non null String.competitionDescription - the description of the competitioncompetitionSportType - the sport type of the competition. This parameter must be a non
empty and non null SportType.competitionType - the type of the competition. This parameter must be a non
empty and non null CompetitonType.competitionOpen - if the competition is open. This parameter must be a non
null Boolean.competitionMinTeams - the min number of teams of the competition. This parameter must be
a non empty and non null int.competitionMaxTeams - the max number of teams of the competition. This parameter must be
a non empty and non null int.competitionPublic - if the competition is public. This parameter must be a non empty
and non null boolean.competitionDeleted - if the competition is logicaly deleted. This parameter must be a
non null boolean.competitionHeadQuarter - the Head Quarter of the competition. This parameter must be a
HeadQuartercompetitionUser - the User of the competition. This parameter must be a
UsercompetitionContact - the Contact of the competition. 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 Competition()
Competition.public long getCompetitionId()
public void setCompetitionId(long competitionId)
competitionId - the id of the competition. This parameter must be a non empty and
non null long.public String getCompetitionName()
public void setCompetitionName(String competitionName)
competitionName - the name of the competition. 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 getCompetitionShortName()
public void setCompetitionShortName(String competitionShortName)
competitionShortName - the short name of the competition. 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 getCompetitionDescription()
public void setCompetitionDescription(String competitionDescription)
competitionDescription - the description of the competition. This parameter must be a non
empty string with a maximun length of 240 chars and a minimun
length of 10 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public SportType getCompetitionSportType()
public void setCompetitionSportType(SportType competitionSportType)
competitionSportType - the description of the competition. 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 getCompetitionOpen()
public void setCompetitionOpen(Boolean competitionOpen)
competitionOpen - if competition is open. This parameter must be a non empty and non
null boolean.NullPointerException - if a null value is passed.public int getCompetitionMinTeams()
public void setCompetitionMinTeams(int competitionMinTeams)
competitionMinTeams - min number of teams of the competition. This parameter must be a
non empty and non null int greater than 0.NullPointerException - if a null value is passed.IllegalArgumentException - if the value is zero or less.public int getCompetitionMaxTeams()
public void setCompetitionMaxTeams(int competitionMaxTeams)
competitionMaxTeams - max number of teams of the competition. This parameter must be a
non empty and non null int greater than 0.NullPointerException - if a null value is passed.IllegalArgumentException - if the value is zero or less.public Boolean getCompetitionPublic()
public void setCompetitionPublic(Boolean competitionPublic)
competitionPublic - if competition is public. This parameter must be a non empty and
non null boolean.NullPointerException - if a null value is passed.public Boolean getCompetitionDeleted()
public void setCompetitionDeleted(Boolean competitionDeleted)
competitionDeleted - if competition is deleted. This parameter must be a non empty and
non null boolean.NullPointerException - if a null value is passed.public HeadQuarter getCompetitionHeadQuarter()
HeadQuarter.HeadQuarter.public void setCompetitionHeadQuarter(HeadQuarter competitionHeadQuarter)
HeadQuarter.competitionHeadQuarter - the Head quarter of the competition. This parameter must be a
HeadQuarter.public User getCompetitionUser()
User.User.public void setCompetitionUser(User competitionUser)
User.competitionUser - the User of the competition. This parameter must be a
User.public Contact getCompetitionContact()
Contact.Contact.public void setCompetitionContact(Contact competitionContact)
Contact.competitionContact - the contact of the competition. This parameter must be a
Contact.public CompetitionType getCompetitionType()
public void setCompetitionType(CompetitionType competitionType)
competitionType - the sport type of the competition. This parameter must be a non
empty and non null CompetitionType .NullPointerException - if a null value is passed.public List<Team> getCompetitionTeams()
Teams.Teams.public void setCompetitionTeams(List<Team> competitionTeams)
competitionTeams - List of Teams that participates in a competition.
This parameter must be a non null List of
TeamNullPointerException - if a null value is passed.public int hashCode()
Copyright © 2017. All rights reserved.