blob: 4de1614f880b23f43d388be201b8137f1c80b320 (
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
|
package design.controller.userinput;
import design.model.Golfer;
import design.persistence.MasterDatabase;
import design.persistence.PersonalDatabase;
public final class Session {
private Session() {
}
public static final PersonalDatabase PDB = PersonalDatabase.INSTANCE;
public static final MasterDatabase MDB = MasterDatabase.INSTANCE;
private static Golfer currentGolfer;
public static Golfer getCurrentGolfer() {
return currentGolfer;
}
public static void setCurrentGolfer(Golfer currentGolfer) {
Session.currentGolfer = currentGolfer;
}
}
|