Class AppointmentType

java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>

@Entity public class AppointmentType extends AbstractLockableEntity implements IUUIDEntity
Describes the type of an appointment and contains several metadata, such as the duration of the appointment.
Since:
6.5.0
Author:
XIMA MEDIA GmbH
See Also:
  • Field Details

  • Constructor Details

    • AppointmentType

      public AppointmentType()
  • Method Details

    • 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.