@Entity public class Maatch extends Object
| Constructor and Description |
|---|
Maatch()
Constructor for JPA Match which is empty
|
Maatch(Time hour,
String status,
Fixture fixture,
Team local,
Team 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
|
Fixture |
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
|
Team |
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
|
Team |
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(Fixture 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(Team 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(Team team)
Set the visitor team of the match
|
public Maatch()
public Maatch(Time hour, String status, Fixture fixture, Team local, Team 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 Fixture getFixture()
Fixturepublic void setFixture(Fixture fixture)
fixture - The new fixtureFixturepublic Team getLocalTeam()
public void setLocalTeam(Team team)
team - the local team of the matchpublic Team getVisitorTeam()
public void setVisitorTeam(Team team)
team - the visitor team of the matchCopyright © 2017. All rights reserved.