diff options
Diffstat (limited to 'src/dk.biks.bachelorizer/dk/biks/bachelorizer/Database.java')
-rw-r--r-- | src/dk.biks.bachelorizer/dk/biks/bachelorizer/Database.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dk.biks.bachelorizer/dk/biks/bachelorizer/Database.java b/src/dk.biks.bachelorizer/dk/biks/bachelorizer/Database.java index f746649..f814b92 100644 --- a/src/dk.biks.bachelorizer/dk/biks/bachelorizer/Database.java +++ b/src/dk.biks.bachelorizer/dk/biks/bachelorizer/Database.java @@ -11,10 +11,10 @@ import java.util.List; import com.example.portfolio2.MyDB; -/// Bachelorizer - database model +/// Bachelorizer - database storage model /// /// This model handles all interaction with the database. -class Database { +class Database extends Storage { /// database singleton private MyDB db = new MyDB(); @@ -32,7 +32,7 @@ class Database { clearParticipation(); } - /// Add student + /// add student /// /// @param name Name of student // TODO: replace this dummy placeholder with database query @@ -40,7 +40,7 @@ class Database { student = new Person(name); } - /// Get student name + /// get student name /// /// @return name of student // TODO: replace this dummy placeholder with database query @@ -84,7 +84,7 @@ class Database { "name"); } - /// purge participation database + /// purge participation choices void clearParticipation() { db.cmd("DELETE FROM participation"); } |