@RolesAllowed(value="registered") public class MatchEJB extends Object
| Constructor and Description |
|---|
MatchEJB() |
| Modifier and Type | Method and Description |
|---|---|
ligaaas.teamc.domain.Match |
create(ligaaas.teamc.domain.Match match)
Creates a new
Match. |
void |
delete(long matchId)
Deletes a
Match. |
ligaaas.teamc.domain.Match |
find(long matchID)
Returns the
Match identified by id. |
List<ligaaas.teamc.domain.Match> |
findByDate(Date matchDate)
Returns a
List of Match with the specified short name. |
List<ligaaas.teamc.domain.Match> |
findByDescription(String matchDescription)
Returns a
List of Match with the specified description. |
List<ligaaas.teamc.domain.Match> |
findByDuration(int matchDuration)
Returns a
List of Match with the specified duration. |
List<ligaaas.teamc.domain.Match> |
findByHeadQuarter(ligaaas.teamc.domain.HeadQuarter matchHeadQuarter)
Returns a
List of Match with the specified HeadQuarter. |
List<ligaaas.teamc.domain.Match> |
findByHomeTeam(ligaaas.teamc.domain.Team matchHomeTeam)
Returns a
List of Match with the specified home Team. |
List<ligaaas.teamc.domain.Match> |
findByLocalPoints(int matchLocalPoints)
Returns a
List of Match with the specified localPoints. |
List<ligaaas.teamc.domain.Match> |
findByRound(ligaaas.teamc.domain.Round matchRound)
Returns a
List of Match with the specified Round. |
List<ligaaas.teamc.domain.Match> |
findByState(ligaaas.teamc.domain.EventState matchState)
Returns a
List of Match with the specified EventState. |
List<ligaaas.teamc.domain.Match> |
findByVisitingPoints(int matchVisitingPoints)
Returns a
List of Match with the specified visitingPoints. |
List<ligaaas.teamc.domain.Match> |
findByVisitingTeam(ligaaas.teamc.domain.Team matchVisitingTeam)
Returns a
List of Match with the specified visiting Team. |
ligaaas.teamc.domain.Match |
update(ligaaas.teamc.domain.Match match)
Updates a
Match. |
public ligaaas.teamc.domain.Match create(ligaaas.teamc.domain.Match match)
Match. If the Match already has other entities
related to it, they will be created too.match. - A new Match to be stored.Match created.IllegalArgumentException - if Match is null or it already exist.public ligaaas.teamc.domain.Match update(ligaaas.teamc.domain.Match match)
Match. If the Match is not stored, it will be persisted.match. - A modified Match to be persisted.Match modified.IllegalArgumentException - if the Match is null or does not exist.public void delete(long matchId)
Match.matchId. - The id of the Match to be deleted.IllegalArgumentException - if the Match does not exist.public ligaaas.teamc.domain.Match find(long matchID)
Match identified by id. If there is no Match with
the specified id, null will be returned.matchID. - The id of the Match to be returned.Match with the given id.public List<ligaaas.teamc.domain.Match> findByDate(Date matchDate)
List of Match with the specified short name.matchDate. - The date of the Match to be searched.List of Match with the specified date.IllegalArgumentException - if the Match date is null.public List<ligaaas.teamc.domain.Match> findByState(ligaaas.teamc.domain.EventState matchState)
List of Match with the specified EventState.matchState. - The EventState of the Match to be searched.List of Match with the specified state.IllegalArgumentException - if the Match state is null.public List<ligaaas.teamc.domain.Match> findByDuration(int matchDuration)
List of Match with the specified duration.matchDuration. - The duration of the Match to be searched.List of Match with the specified duration.IllegalArgumentException - if the Match duration is null or is lower than 0public List<ligaaas.teamc.domain.Match> findByLocalPoints(int matchLocalPoints)
List of Match with the specified localPoints.matchLocalPoints. - The local points of the Match to be searched.List of Match with the specified localPoints.IllegalArgumentException - if the Match localPoints is lower than 0public List<ligaaas.teamc.domain.Match> findByVisitingPoints(int matchVisitingPoints)
List of Match with the specified visitingPoints.matchVisitingPoints. - The local points of the Match to be searched.List of Match with the specified visitingPoints.IllegalArgumentException - if the Match visitingPoints is lower than 0public List<ligaaas.teamc.domain.Match> findByDescription(String matchDescription)
List of Match with the specified description.matchDescription. - The description of the Match to be searched.List of Match with the specified description.IllegalArgumentException - if the Match description is null or its length is not between 0
and 240 characters.public List<ligaaas.teamc.domain.Match> findByHeadQuarter(ligaaas.teamc.domain.HeadQuarter matchHeadQuarter)
List of Match with the specified HeadQuarter.matchHeadQuarter. - The HeadQuarter of the Match to be searched.List of Match with the specified HeadQuarter.public List<ligaaas.teamc.domain.Match> findByRound(ligaaas.teamc.domain.Round matchRound)
List of Match with the specified Round.matchRound. - The Round of the Match to be searched.List of Match with the specified Round.IllegalArgumentException - if the Match Round is nullpublic List<ligaaas.teamc.domain.Match> findByHomeTeam(ligaaas.teamc.domain.Team matchHomeTeam)
List of Match with the specified home Team.matchHomeTeam. - The Team of the Match to be searched.List of Match with the specified Team.IllegalArgumentException - if the Match Team is nullpublic List<ligaaas.teamc.domain.Match> findByVisitingTeam(ligaaas.teamc.domain.Team matchVisitingTeam)
List of Match with the specified visiting Team.matchVisitingTeam. - The Team of the Match to be searched.List of Match with the specified Team.IllegalArgumentException - if the Match Team is nullCopyright © 2017. All rights reserved.