Class TeacherModel

java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.gui.form.nmodel.TeacherModel
All Implemented Interfaces:
IModel<Teacher>

public class TeacherModel extends Object implements IModel<Teacher>
Represents a model object of a teacher entity.
  • Property Details

    • idTeachers

      public javafx.beans.property.IntegerProperty idTeachersProperty
      Gets teacher entity id.
    • firstName

      public javafx.beans.property.StringProperty firstNameProperty
      Gets teacher entity first name.
    • lastName

      public javafx.beans.property.StringProperty lastNameProperty
      Gets teacher entity last name.
    • birthDate

      public javafx.beans.property.ObjectProperty<LocalDate> birthDateProperty
      Gets teacher entity birthdate.
    • commencementDate

      public javafx.beans.property.ObjectProperty<LocalDate> commencementDateProperty
      Gets teacher entity commencement date.
    • residence

      public javafx.beans.property.StringProperty residenceProperty
      Gets teacher entity residence.
    • phone

      public javafx.beans.property.StringProperty phoneProperty
      Gets teacher entity phone.
    • email

      public javafx.beans.property.StringProperty emailProperty
      Gets teacher entity email.
    • allSubjectLists

      public javafx.beans.property.ListProperty<SubjectList> allSubjectListsProperty
    • selectedSubjectList

      public javafx.beans.property.ObjectProperty<SubjectList> selectedSubjectListProperty
    • allTeacherSubjectLists

      public javafx.beans.property.ListProperty<SubjectList> allTeacherSubjectListsProperty
  • Constructor Details

    • TeacherModel

      public TeacherModel()
  • Method Details

    • importEntity

      public void importEntity(Teacher entity)
      Description copied from interface: IModel
      Imports entity field to model.
      Specified by:
      importEntity in interface IModel<Teacher>
      Parameters:
      entity - reference entity
    • exportEntity

      public Teacher exportEntity()
      Description copied from interface: IModel
      Exports entity from model.
      Specified by:
      exportEntity in interface IModel<Teacher>
      Returns:
      entity from model
    • fillAdditionalEntities

      public void fillAdditionalEntities() throws FetchException
      Specified by:
      fillAdditionalEntities in interface IModel<Teacher>
      Throws:
      FetchException
    • idTeachersProperty

      public javafx.beans.property.IntegerProperty idTeachersProperty()
      Gets teacher entity id.
    • firstNameProperty

      public javafx.beans.property.StringProperty firstNameProperty()
      Gets teacher entity first name.
    • lastNameProperty

      public javafx.beans.property.StringProperty lastNameProperty()
      Gets teacher entity last name.
    • birthDateProperty

      public javafx.beans.property.ObjectProperty<LocalDate> birthDateProperty()
      Gets teacher entity birthdate.
    • commencementDateProperty

      public javafx.beans.property.ObjectProperty<LocalDate> commencementDateProperty()
      Gets teacher entity commencement date.
    • residenceProperty

      public javafx.beans.property.StringProperty residenceProperty()
      Gets teacher entity residence.
    • phoneProperty

      public javafx.beans.property.StringProperty phoneProperty()
      Gets teacher entity phone.
    • emailProperty

      public javafx.beans.property.StringProperty emailProperty()
      Gets teacher entity email.
    • allSubjectListsProperty

      public javafx.beans.property.ListProperty<SubjectList> allSubjectListsProperty()
    • selectedSubjectListProperty

      public javafx.beans.property.ObjectProperty<SubjectList> selectedSubjectListProperty()
    • allTeacherSubjectListsProperty

      public javafx.beans.property.ListProperty<SubjectList> allTeacherSubjectListsProperty()