@Entity public class MatchJPA extends Object
| Constructor and Description |
|---|
MatchJPA()
Constructor for JPA Match which is empty
|
MatchJPA(Time hour,
String status,
FixtureJPA fixture,
TeamJPA local,
TeamJPA visitor)
Constructor for JPA Match which gets some necessary parameters to create a
match
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComments()
Get the comments of the match
|
Date |
getDeleted()
Get the deleted date of the match if the match is deleted
|
String |
getDescription()
Get the description of the match
|
int |
getDuration()
Get the duration of the match
|
FixtureJPA |
getFixture()
Get the fixture which belongs to the match
|
Time |
getHour()
Get the hour of the match
|
int |
getId()
Get the id of the match
|
int |
getLocalScore()
Get the score of the local team in the match
|
TeamJPA |
getLocalTeam()
Get the local team of the match
|
String |
getStatus()
Get the status of the match
|
int |
getVisitorScore()
Get the score of the visitor team in the match
|
TeamJPA |
getVisitorTeam()
Get the visitor team of the match
|
void |
setComments(String comments)
Set the comments of the match
|
void |
setDeleted(Date deleted)
Set the deleted date of the match.
|
void |
setDescription(String description)
Set the description of the match
|
void |
setDuration(int duration)
Set the duration of the match
|
void |
setFixture(FixtureJPA fixture)
Set the fixture which belongs to match
|
void |
setHour(Time hour)
Set the hour of the match
|
void |
setLocalScore(int localScore)
Set the score of the local team in the match
|
void |
setLocalTeam(TeamJPA team)
Set the local team of the match
|
void |
setStatus(String status)
Set the status of the match
|
void |
setVisitorScore(int visitorScore)
Set the score of the visitor team in the match
|
void |
setVisitorTeam(TeamJPA team)
Set the visitor team of the match
|
public MatchJPA()
public MatchJPA(Time hour, String status, FixtureJPA fixture, TeamJPA local, TeamJPA visitor)
hour - The hour match startsstatus - The status of the match. It can be "planned", "played", "canceled"
or "postponed"fixture - The fixture which match belowslocal - The local teamvisitor - The visitor teampublic Time getHour()
public void setHour(Time hour)
hour - The new hour of the matchpublic String getStatus()
public void setStatus(String status)
status - The new status of the matchpublic int getDuration()
public void setDuration(int duration)
duration - The new duration of the matchpublic int getLocalScore()
public void setLocalScore(int localScore)
localScore - The new score of the local team in the matchpublic int getVisitorScore()
public void setVisitorScore(int visitorScore)
visitorScore - The new score of the visitor team in the matchpublic String getDescription()
public void setDescription(String description)
description - The new description of the matchpublic String getComments()
public void setComments(String comments)
comments - The new comments of the matchpublic Date getDeleted()
public void setDeleted(Date deleted)
deleted - The deleted day of the matchpublic int getId()
public FixtureJPA getFixture()
FixtureJPApublic void setFixture(FixtureJPA fixture)
fixture - The new fixtureFixtureJPApublic TeamJPA getLocalTeam()
public void setLocalTeam(TeamJPA team)
team - the local team of the matchpublic TeamJPA getVisitorTeam()
public void setVisitorTeam(TeamJPA team)
team - the visitor team of the matchCopyright © 2017. All rights reserved.