blob: 186474e70c4c234aaba91b5c658f30de63de9ed6 (
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
|
package design.persistence;
import design.model.Golfer;
import java.io.IOException;
import java.io.File;
public interface PersonalDatabase {
static PersonalDatabase instance() {
return JSONPersonalDatabase.instance();
}
Golfer[] getGolfers();
Golfer getGolfer(String name);
void addGolfer(Golfer golfer) throws IOException;
void removeGolfer(Golfer golfer) throws IOException;
void updateGolfer(Golfer golfer) throws IOException;
void importData(File newFile) throws IOException;
File exportData() throws IOException;
}
|