blob: 9f835ff4b8e0f61182a599d788c0198cf0b1741e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package design.persistence;
import design.model.League;
import design.persistence.importexport.DataSource;
import java.io.IOException;
public interface LeagueDatabase extends DataSource {
static LeagueDatabase instance() {
return JSONLeagueDatabase.instance();
}
League getLeague(int id);
League[] getLeagues();
void addLeague(League league) throws IOException;
void removeLeague(League league) throws IOException;
void updateLeague(League league) throws IOException;
}
|