@RolesAllowed(value="registered") public class RoundEJB extends Object
| Constructor and Description |
|---|
RoundEJB() |
| Modifier and Type | Method and Description |
|---|---|
ligaaas.teamc.domain.Round |
create(ligaaas.teamc.domain.Round round)
Creates a new
Round. |
void |
delete(long roundId)
Deletes a
Round. |
ligaaas.teamc.domain.Round |
find(long roundID)
Returns the
Round identified by id. |
List<ligaaas.teamc.domain.Round> |
findByCompetition(ligaaas.teamc.domain.Competition roundCompetition)
Returns a
List of Round with the specified round competition. |
List<ligaaas.teamc.domain.Round> |
findByDate(Date roundDate)
Returns a
List of Round with the specified short name. |
List<ligaaas.teamc.domain.Round> |
findByDescription(String roundDescription)
Returns a
List of Round with the specified description. |
List<ligaaas.teamc.domain.Round> |
findByHeadQuarter(ligaaas.teamc.domain.HeadQuarter roundHeadQuarter)
Returns a
List of Round with the specified HeadQuarter. |
List<ligaaas.teamc.domain.Round> |
findByNumber(int roundNumber)
Returns a
List of Round with the specified number. |
List<ligaaas.teamc.domain.Round> |
findByState(ligaaas.teamc.domain.EventState roundState)
Returns a
List of Round with the specified EventState. |
ligaaas.teamc.domain.Round |
update(ligaaas.teamc.domain.Round round)
Updates a Round.
|
public ligaaas.teamc.domain.Round create(ligaaas.teamc.domain.Round round)
Round. If the Round already has other entities
related to it, they will be created too.round. - A new Round to be stored.Round created.IllegalArgumentException - if Round is null or it already exist.public ligaaas.teamc.domain.Round update(ligaaas.teamc.domain.Round round)
Round is not stored, it will be persisted.round. - A modified Round to be persisted.Round modified.IllegalArgumentException - if the Round is null or does not exist.public void delete(long roundId)
Round.roundId. - The id of the Round to be deleted.IllegalArgumentException - if the Round does not exist.public ligaaas.teamc.domain.Round find(long roundID)
Round identified by id. If there is no Round with
the specified id, null will be returned.roundID. - The id of the Round to be returned.Round with the given id.public List<ligaaas.teamc.domain.Round> findByNumber(int roundNumber)
List of Round with the specified number.roundNumber. - The name of the Round to be searched.List of Round with the specified number.IllegalArgumentException - if the Round number is null or is lower than 1public List<ligaaas.teamc.domain.Round> findByDate(Date roundDate)
List of Round with the specified short name.roundDate. - The date of the Round to be searched.List of Round with the specified date.IllegalArgumentException - if the Round date is null.public List<ligaaas.teamc.domain.Round> findByState(ligaaas.teamc.domain.EventState roundState)
List of Round with the specified EventState.roundState. - The EventState of the Round to be searched.List of Round with the specified state.IllegalArgumentException - if the Round state is null.public List<ligaaas.teamc.domain.Round> findByDescription(String roundDescription)
List of Round with the specified description.roundDescription. - The description of the Round to be searched.List of Round with the specified description.IllegalArgumentException - if the Round description is null or its length is not between 0
and 240 characters.public List<ligaaas.teamc.domain.Round> findByHeadQuarter(ligaaas.teamc.domain.HeadQuarter roundHeadQuarter)
List of Round with the specified HeadQuarter.roundHeadQuarter. - The HeadQuarter of the Round to be searched.List of Round with the specified HeadQuarter.IllegalArgumentException - if the Round HeadQuarter is nullpublic List<ligaaas.teamc.domain.Round> findByCompetition(ligaaas.teamc.domain.Competition roundCompetition)
List of Round with the specified round competition.roundCompetition. - The round competition of the Round to be searched.List of Round with the specified round competition.IllegalArgumentException - if the Round competition is nullCopyright © 2017. All rights reserved.