|
Elektroniczny System oceniania 2.1
|
Public Member Functions | |
| Grade (int id, double value, String description, Date date) | |
| int | getId () |
| void | setId (int id) |
| double | getValue () |
| void | setValue (double value) |
| String | getDescription () |
| void | setDescription (String description) |
| Date | getDate () |
| void | setDate (Date date) |
| String | getStudentName () |
| void | setStudentName (String studentName) |
Klasa modelu reprezentująca pojedynczą ocenę ucznia. Przechowuje informacje o wartości oceny, opisie, dacie jej wystawienia oraz powiązaniu z konkretnym uczniem (pobierane zazwyczaj złączeniem tabel).
| com.example.elektroniczny_dziennik.Grade.Grade | ( | int | id, |
| double | value, | ||
| String | description, | ||
| Date | date ) |
Konstruktor tworzący obiekt oceny z danymi. Wykorzystywany głównie przy mapowaniu wyników zapytania SQL na obiekty Java.
| id | Unikalne ID oceny. |
| value | Wartość oceny. |
| description | Opis słowny oceny. |
| date | Data wystawienia. |
| Date com.example.elektroniczny_dziennik.Grade.getDate | ( | ) |
Pobiera datę wystawienia oceny.
| String com.example.elektroniczny_dziennik.Grade.getDescription | ( | ) |
Pobiera opis oceny.
| int com.example.elektroniczny_dziennik.Grade.getId | ( | ) |
Pobiera identyfikator oceny.
| String com.example.elektroniczny_dziennik.Grade.getStudentName | ( | ) |
Pobiera imię i nazwisko ucznia przypisanego do tej oceny.
| double com.example.elektroniczny_dziennik.Grade.getValue | ( | ) |
Pobiera wartość liczbową oceny.
| void com.example.elektroniczny_dziennik.Grade.setDate | ( | Date | date | ) |
Ustawia datę wystawienia oceny.
| date | Nowa data. |
| void com.example.elektroniczny_dziennik.Grade.setDescription | ( | String | description | ) |
Ustawia opis oceny.
| description | Nowy opis. |
| void com.example.elektroniczny_dziennik.Grade.setId | ( | int | id | ) |
Ustawia identyfikator oceny.
| id | Nowe ID oceny. |
| void com.example.elektroniczny_dziennik.Grade.setStudentName | ( | String | studentName | ) |
Przypisuje imię i nazwisko ucznia do obiektu oceny. Używane przez kontroler po pobraniu danych z bazy, aby wyświetlić czytelne dane w tabeli.
| studentName | Imię i nazwisko ucznia. |
| void com.example.elektroniczny_dziennik.Grade.setValue | ( | double | value | ) |
Ustawia nową wartość oceny. Wykorzystywane np. podczas edycji oceny w tabeli.
| value | Nowa wartość oceny. |