@Entity(name="COMPETITION") public class CompetitionJPA extends Object
| Constructor and Description |
|---|
CompetitionJPA() |
CompetitionJPA(Date date,
int i,
String place)
Lesser parametrized constructor for JPA
|
CompetitionJPA(Date date,
String place) |
CompetitionJPA(String competition,
String comp,
int i,
int i1,
String place)
Empty constructor for JPA
|
CompetitionJPA(String competition,
String comp,
int i1,
String place)
Parametriced constructor for JPA
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDays(DayJPA d)
Adds a day to a linkedlist
|
UserJPA |
getContact()
Gets the user to show in the contact of the competition
|
List<DayJPA> |
getDays()
Gets de day
|
String |
getDescription()
Gets the description of the event
|
String |
getHq()
Gets the Headquarters of the event
|
int |
getMaxTeams()
Gets the maximum number of teams participating in the competition
|
int |
getMinTeams()
Gets the minimum number of teams participating in the competition
|
String |
getMode()
Gets the competition mode
|
String |
getName()
Gets the name of the competition
|
Boolean |
getOpen()
Gets the state of the competition, true for open, false for closed
|
String |
getShortName()
Gets the short version of the name of the competition
|
String |
getSocial()
Gets all the information relating social networks
|
SportJPA |
getSport()
Gets the sport of the competition
|
Boolean |
getVisibility()
Sets true or false depending of the visibility of the game
|
void |
setContact(UserJPA u)
Sets the user to show in the contact of the competition
|
void |
setDescription(String d)
Sets the description of the game
|
void |
setHq(String h)
Sets the Headquarters of the event
|
void |
setMaxTeams(int m)
Sets the maximum number of teams participating in the competition
|
void |
setMinTeams(int n)
Sets the minimim number of teams participating in the competition
|
void |
setMode(String m)
Sets the mode of the Competition
|
void |
setName(String n)
Sets the name of the competition
|
void |
setOpen(Boolean o)
Sets the state of the competition, true for open, false for closed
|
void |
setShortName(String s)
Sets the short name of the competition
|
void |
setSocial(String s)
Sets all the information relating social networks
|
void |
setSport(SportJPA s)
Sets the sport of the competition
|
void |
setVisibility(Boolean v)
Sets true or false depending of the visibility of the game
|
public CompetitionJPA(String competition, String comp, int i, int i1, String place)
competition - comp - i - i1 - place - public CompetitionJPA(String competition, String comp, int i1, String place)
competition - comp - i1 - place - public CompetitionJPA(Date date, int i, String place)
date - place - public CompetitionJPA()
public String getName()
public void setName(String n)
n - String with the namepublic String getShortName()
public void setShortName(String s)
s - String with the short name of the competitionpublic int getMaxTeams()
public void setMaxTeams(int m)
m - Integer with the number of maximum participants in the competitionpublic int getMinTeams()
public void setMinTeams(int n)
n - Integer with the number of minimim participants in the competitionpublic String getDescription()
public void setDescription(String d)
d - String with the description of the competitionpublic String getSocial()
public void setSocial(String s)
s - String with all the information relating social networkspublic Boolean getOpen()
public void setOpen(Boolean o)
o - Boolean with the competition, true for open, false for closedpublic Boolean getVisibility()
public void setVisibility(Boolean v)
v - Boolean with the visibility, true for visible, false for not visiblepublic String getMode()
public void setMode(String m)
m - String with the modepublic String getHq()
public void setHq(String h)
h - String with the name of the Headquarterspublic UserJPA getContact()
UserJPApublic void setContact(UserJPA u)
u - UserJPA to show in the contactUserJPApublic SportJPA getSport()
public void setSport(SportJPA s)
s - SportJPA object of the competitionSportJPApublic void addDays(DayJPA d)
d - Day objectDayJPACopyright © 2017. All rights reserved.