Class AppointmentType

    • Constructor Detail

      • AppointmentType

        public AppointmentType()
    • Method Detail

      • getId

        public Long getId()
        Specified by:
        getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      • getAppointmentTemplate

        public AppointmentTemplate getAppointmentTemplate()
        Returns:
        The appointment template to which this appointment type belongs to. A type cannot belong to multiple appointment templates.
      • getDuration

        public Duration getDuration()
        Returns:
        The duration an appointment of this type takes.
      • getDurationMinutes

        public long getDurationMinutes()
        Returns:
        The value getDuration() in minutes.
      • getUUID

        public String getUUID()
        Specified by:
        getUUID in interface IUUIDEntity
        Returns:
        The UUID of this appointment type. Please note that this UUID is guaranteed to be unique only for a given getAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
      • getUUIDObject

        public UUID getUUIDObject()
        Specified by:
        getUUIDObject in interface IUUIDEntity
        Returns:
        The UUID of this appointment type. Please note that this UUID is guaranteed to be unique only for a given getAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
      • setAppointmentTemplate

        public void setAppointmentTemplate​(AppointmentTemplate appointmentTemplate)
        Parameters:
        appointmentTemplate - The appointment template to which this appointment type belongs to. A type cannot belong to multiple appointment templates.
      • setDuration

        public void setDuration​(Duration duration)
        Parameters:
        duration - The duration an appointment of this type takes.
      • setDurationMinutes

        public void setDurationMinutes​(long minutes)
        Parameters:
        minutes - The new value for the getDuration() is minutes.
      • setUUID

        public void setUUID​(String uuid)
        Specified by:
        setUUID in interface IUUIDEntity
        Parameters:
        uuid - A new unique UUID for this entity. Please note that this UUID is required to be unique only for a given getAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
      • setUUIDObject

        public void setUUIDObject​(UUID uuid)
        Parameters:
        uuid - A new unique UUID for this entity. Please note that this UUID is required to be unique only for a given getAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.