Class Student
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.entity.ASimpleEntity
cz.zcu.fav.kiv.mjakubas.saf.entity.Student
Represents a Student entity implementation for frontend of school agenda.
-
Constructor Summary
ConstructorsConstructorDescriptionStudent()
Instantiates new empty Student entity.Student
(int idStudents, String firstName, String lastName, String birthDate, String residence, int phone, String email, Subject[] subjects, Absence[] absences, StudentsSubject[] studentsSubjectEntities) Instantiates new Student entity with all its fields. -
Method Summary
Modifier and TypeMethodDescriptionAbsence[]
Get students absences.Get students birthdate.Get students class.getEmail()
Gets students email.Get students first name.int
getID()
Gets simple identifier.int
Get students id.Get students last name.int
getPhone()
Gets students phone.Get students residence.Get students subjects.Subject[]
Get students subjects.void
setAbsences
(Absence[] absences) Set students absences.void
setBirthDate
(String birthDate) Set students birthdate.void
setClassesEntity
(SchoolClass classesEntity) Set students class.void
Set students email.void
setFirstName
(String firstName) Set students first name.void
setIdStudents
(int idStudents) Set students id.void
setLastName
(String lastName) Set students last name.void
setPhone
(int phone) Set students phone.void
setResidence
(String residence) Set students residence.void
setStudentssubjects
(StudentsSubject[] studentssubjects) Set students subjects.void
setSubjects
(Subject[] subjects) Set students subject.toString()
Methods inherited from class cz.zcu.fav.kiv.mjakubas.saf.entity.ASimpleEntity
equals, getIdentifier
-
Constructor Details
-
Student
public Student()Instantiates new empty Student entity. -
Student
public Student(int idStudents, String firstName, String lastName, String birthDate, String residence, int phone, String email, Subject[] subjects, Absence[] absences, StudentsSubject[] studentsSubjectEntities) Instantiates new Student entity with all its fields.- Parameters:
idStudents
- student idfirstName
- student first namelastName
- student last namebirthDate
- student birthdateresidence
- student residencephone
- student phoneemail
- student emailsubjects
- student subjectabsences
- student absencestudentsSubjectEntities
- student subjects
-
-
Method Details
-
getID
public int getID()Description copied from class:ASimpleEntity
Gets simple identifier.- Specified by:
getID
in classASimpleEntity
- Returns:
- simple identifier
-
getSimpleIdentifier
- Specified by:
getSimpleIdentifier
in classASimpleEntity
-
toString
-
getIdStudents
public int getIdStudents()Get students id.- Returns:
- students id
-
getFirstName
Get students first name.- Returns:
- students first name
-
getLastName
Get students last name.- Returns:
- students last name
-
getBirthDate
Get students birthdate.- Returns:
- students birthdate
-
getResidence
Get students residence.- Returns:
- students residence
-
getPhone
public int getPhone()Gets students phone.- Returns:
- students phone
-
getEmail
Gets students email.- Returns:
- students email
-
getSubjects
Get students subjects.- Returns:
- students subjects
-
getAbsences
Get students absences.- Returns:
- students absences
-
getStudentssubjects
Get students subjects.- Returns:
- students subjects
-
getClassesEntity
Get students class.- Returns:
- students class
-
setIdStudents
public void setIdStudents(int idStudents) Set students id.- Parameters:
idStudents
- students id
-
setFirstName
Set students first name.- Parameters:
firstName
- students first name
-
setLastName
Set students last name.- Parameters:
lastName
- students last name
-
setBirthDate
Set students birthdate.- Parameters:
birthDate
- students birthdate
-
setResidence
Set students residence.- Parameters:
residence
- students residence
-
setPhone
public void setPhone(int phone) Set students phone.- Parameters:
phone
- students phone
-
setEmail
Set students email.- Parameters:
email
- students email
-
setSubjects
Set students subject.- Parameters:
subjects
- students subject
-
setAbsences
Set students absences.- Parameters:
absences
- students absences
-
setStudentssubjects
Set students subjects.- Parameters:
studentssubjects
- students subjects
-
setClassesEntity
Set students class.- Parameters:
classesEntity
- students class
-