summaryrefslogtreecommitdiff
path: root/src/main/java/design/persistence/PersonalDatabase.java
blob: 77e43ccfd5745d6dc5957876eae694ab3875140f (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
package design.persistence;

import design.model.Golfer;
import design.persistence.importexport.DataSource;

import java.io.IOException;

public interface PersonalDatabase extends DataSource {

    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;
}