public class DatabaseActivity
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseActivity() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteStudent(java.lang.String studentID,
java.lang.String hostName)
Delete student.
|
static java.lang.String |
getStudentColour(java.lang.String studentID,
java.lang.String hostName)
Gets the student colour.
|
static java.util.ArrayList<GalleryItemDatabaseFormat> |
getStudentGallery(java.lang.String studentID,
java.lang.String hostName)
Gets the student gallery.
|
static StudentRepresentation |
getStudentRepresentationFromDatabase(java.lang.String studentID,
java.lang.String hostName,
IStage stage)
Gets the student representation from database.
|
static java.util.ArrayList<Student> |
getStudentsFromDatabase(java.lang.String hostName)
Gets the students from database.
|
static void |
modifyStudent(Student student,
java.lang.String hostName)
Modify student.
|
static void |
moveStudent(java.lang.String studentID,
java.lang.String newClass,
java.lang.String hostName)
Move student.
|
static void |
removeStudentsOfClass(java.lang.String className,
java.lang.String hostName)
Removes the students of class.
|
static void |
storeStudent(Student student,
java.lang.String hostName)
Store student.
|
static void |
updateStudentRep(StudentRepresentation student,
java.lang.String hostName)
Update student rep.
|
public static void deleteStudent(java.lang.String studentID,
java.lang.String hostName)
studentID - the student idhostName - the host namepublic static java.lang.String getStudentColour(java.lang.String studentID,
java.lang.String hostName)
studentID - the student idhostName - the host namepublic static java.util.ArrayList<GalleryItemDatabaseFormat> getStudentGallery(java.lang.String studentID, java.lang.String hostName)
studentID - the student idhostName - the host namepublic static StudentRepresentation getStudentRepresentationFromDatabase(java.lang.String studentID, java.lang.String hostName, IStage stage)
studentID - the student idhostName - the host namestage - the stagepublic static java.util.ArrayList<Student> getStudentsFromDatabase(java.lang.String hostName)
hostName - the host namepublic static void modifyStudent(Student student, java.lang.String hostName)
student - the studenthostName - the host namepublic static void moveStudent(java.lang.String studentID,
java.lang.String newClass,
java.lang.String hostName)
studentID - the student idnewClass - the new classhostName - the host namepublic static void removeStudentsOfClass(java.lang.String className,
java.lang.String hostName)
className - the class namehostName - the host namepublic static void storeStudent(Student student, java.lang.String hostName)
student - the studenthostName - the host namepublic static void updateStudentRep(StudentRepresentation student, java.lang.String hostName)
student - the studenthostName - the host name