public class MatchEJB extends Object
| Constructor and Description |
|---|
MatchEJB() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(es.uvigo.esei.dgss.match.MatchJPA match)
Creates a new match
|
es.uvigo.esei.dgss.match.MatchJPA |
get(int id)
Gets a match given its id
|
List<es.uvigo.esei.dgss.match.MatchJPA> |
list()
Gets all matches
|
List<es.uvigo.esei.dgss.match.MatchJPA> |
list(es.uvigo.esei.dgss.fixture.FixtureJPA fixture)
Gets all matches of a fixture
|
void |
remove(es.uvigo.esei.dgss.match.MatchJPA match)
Deletes a pet
|
es.uvigo.esei.dgss.match.MatchJPA |
update(es.uvigo.esei.dgss.match.MatchJPA match)
Updates a match
|
public void create(es.uvigo.esei.dgss.match.MatchJPA match)
match - A new match to be storedpublic es.uvigo.esei.dgss.match.MatchJPA get(int id)
id - Id of the matchpublic es.uvigo.esei.dgss.match.MatchJPA update(es.uvigo.esei.dgss.match.MatchJPA match)
match - The match to be updatedpublic void remove(es.uvigo.esei.dgss.match.MatchJPA match)
match - The match to be removedpublic List<es.uvigo.esei.dgss.match.MatchJPA> list()
public List<es.uvigo.esei.dgss.match.MatchJPA> list(es.uvigo.esei.dgss.fixture.FixtureJPA fixture)
fixture - The fixture which belongs to matchCopyright © 2017. All rights reserved.