@Entity(name="competition") public class Competition extends Object
| Constructor and Description |
|---|
Competition()
Empty constructor
|
Competition(Date date,
int i,
String place)
Lesser parametrized constructor for JPA
|
Competition(String competition,
String comp,
int i1,
String place)
Parametriced constructor for JPA
|
Competition(String competition,
String comp,
String description,
String sport,
int i,
int i1,
String place,
String province)
Parametriced constructor for JPA
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCity()
Gets the name of the city
|
User |
getContact()
Gets the user to show in the contact of the competition
|
Boolean |
getDeleted()
Sets true or false depending of the state of the competition
|
String |
getDescription()
Gets the description of the event
|
Date |
getEnd()
Gets the ending date of de competition
|
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 |
getName()
Gets the name of the competition
|
String |
getProvince()
Gets the name of the province
|
String |
getShortName()
Gets the short version of the name of the competition
|
String |
getSport()
Gets the name of the sport
|
Date |
getStart()
Gets the starting date of de competition
|
List<Team> |
getTeams()
Gets the list of teams in the competition
|
Boolean |
getVisibility()
Sets true or false depending of the visibility of the competition
|
void |
setCity(String n)
Sets the name of the city
|
void |
setContact(User u)
Sets the user to show in the contact of the competition
|
void |
setDeleted(Boolean v)
Sets true or false depending of the state of the competition
|
void |
setDescription(String d)
Sets the description of the game
|
void |
setEnd(Date v)
Sets the ending date of de competition
|
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 |
setName(String n)
Sets the name of the competition
|
void |
setProvince(String n)
Sets the name of the province
|
void |
setShortName(String s)
Sets the short name of the competition
|
void |
setSport(String n)
Sets the name of the sport
|
void |
setStart(Date v)
Sets the starting date of de competition
|
void |
setTeams(List<Team> u)
Sets the list of teams in the competition
|
void |
setVisibility(Boolean v)
Sets true or false depending of the visibility of the competition
|
public Competition(String competition, String comp, int i1, String place)
competition - Name of the competitioncomp - Short Name of the competitioni1 - Min teams in the competitionplace - Name of the ubicationpublic Competition(String competition, String comp, String description, String sport, int i, int i1, String place, String province)
competition - Name of the competitioncomp - Short Name of the competitiondescription - Simple description of the competitionsport - Name of the sport practiced in the competitioni - Min teams in the competitioni1 - Max teams in the competitionplace - Name of the cityprovince - Name of the provincepublic Competition(Date date, int i, String place)
date - Date of the eventi - Min teams in the competitionplace - Name of the ubicationpublic Competition()
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 String getDescription()
public void setDescription(String d)
d - String with the description of the competitionpublic String getSport()
public void setSport(String n)
n - String with the namepublic void setCity(String n)
n - String with the namepublic String getCity()
public void setProvince(String n)
n - String with the namepublic String getProvince()
public 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 Boolean getVisibility()
public void setVisibility(Boolean v)
v - Boolean with the visibility, true for visible, false for not visiblepublic Date getStart()
public void setStart(Date v)
v - Date with the start of the competitionpublic Date getEnd()
public void setEnd(Date v)
v - Date with the end of the competitionpublic Boolean getDeleted()
public void setDeleted(Boolean v)
v - Boolean with the deleted state, true for deleted, false for not deletedpublic User getContact()
Userpublic void setContact(User u)
u - UserJPA to show in the contactUserpublic List<Team> getTeams()
TeamCopyright © 2018. All rights reserved.