blob: ed6ddae1b3dcb60fbe20cf6e1cdafcd12d2e4fa1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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;
@Override
void importData(Object data) throws IOException;
@Override
Object exportData() throws IOException;
}
|