blob: 953624dc46ff61425e7674022fc45246f3f51846 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package design.persistence;
import design.model.League;
import java.io.IOException;
public interface LeagueDatabase {
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;
}
|