summaryrefslogtreecommitdiff
path: root/src/main/java/design/persistence/PersonalDatabase.java
blob: a045d59a8ff7493df981151498cbe4ac3330ada7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package design.persistence;

import design.model.Golfer;

import java.io.IOException;

public interface PersonalDatabase {
    PersonalDatabase INSTANCE = new JSONPersonalDatabase("data/personaldb.json");

    Golfer[] getGolfers();
    Golfer getGolfer(String name);
    void addGolfer(Golfer golfer) throws IOException;
    void removeGolfer(Golfer golfer) throws IOException;
    void updateGolfer(Golfer golfer) throws IOException;
}