Package Models

Class Appointment

java.lang.Object
Models.Appointment

public class Appointment extends Object
A class representing the Appointment object
  • Constructor Details

    • Appointment

      public Appointment(int appointmentId, String title, String description, String location, String type, LocalDateTime start, LocalDateTime end, LocalDateTime createDate, String createdBy, LocalDateTime lastUpdate, String lastUpdatedBy, int customerId, int userId, int contactId)
      Constructor method for the Appointment object
      Parameters:
      appointmentId - the appointmentId integer value to be set on the Appointment object
      title - the title string value to be set on the Appointment object
      description - the description string value to be set on the Appointment object
      location - the location string value to be set on the Appointment object
      type - the type string value to be set on the Appointment object
      start - the start LocalDateTime value to be set on the Appointment object
      end - the end LocalDateTime value to be set on the Appointment object
      createDate - the createDate LocalDateTime value to be set on the Appointment object
      createdBy - the createdBy string value to be set on the Appointment object
      lastUpdate - the lastUpdate LocalDateTime value to be set on the Appointment object
      lastUpdatedBy - the lastUpdatedBy string value to be set on the Appointment object
      customerId - the customerId integer value to be set on the Appointment object
      userId - the userId integer value to be set on the Appointment object
      contactId - the contactId integer value to be set on the Appointment object
  • Method Details

    • getAppointmentId

      public int getAppointmentId()
      Returns:
      the appointmentId integer value on the Appointment object
    • getTitle

      public String getTitle()
      Returns:
      the title string value on the Appointment object
    • getDescription

      public String getDescription()
      Returns:
      the description string value on the Appointment object
    • getLocation

      public String getLocation()
      Returns:
      the location string value on the Appointment object
    • getType

      public String getType()
      Returns:
      the type string value on the Appointment object
    • getStart

      public LocalDateTime getStart()
      Returns:
      the start LocalDateTime value on the Appointment object
    • getEnd

      public LocalDateTime getEnd()
      Returns:
      the end LocalDateTime value on the Appointment object
    • getCreateDate

      public LocalDateTime getCreateDate()
      Returns:
      the createDate LocalDateTime value on the Appointment object
    • getCreatedBy

      public String getCreatedBy()
      Returns:
      the createdBy string value on the Appointment object
    • getLastUpdate

      public LocalDateTime getLastUpdate()
      Returns:
      the lastUpdate LocalDateTime value on the Appointment object
    • getLastUpdatedBy

      public String getLastUpdatedBy()
      Returns:
      the lastUpdatedBy string value on the Appointment object
    • getCustomerId

      public int getCustomerId()
      Returns:
      the customerId integer value on the Appointment object
    • getUserId

      public int getUserId()
      Returns:
      the userId integer value on the Appointment object
    • getContactId

      public int getContactId()
      Returns:
      the contactId integer value on the Appointment object
    • setAppointmentId

      public void setAppointmentId(int appointmentId)
      Parameters:
      appointmentId - the appointmentId integer value to be set on the Appointment object
    • setTitle

      public void setTitle(String title)
      Parameters:
      title - the title string value to be set on the Appointment object
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description string value to be set on the Appointment object
    • setLocation

      public void setLocation(String location)
      Parameters:
      location - the location string value to be set on the Appointment object
    • setType

      public void setType(String type)
      Parameters:
      type - the type string value to be set on the Appointment object
    • setStart

      public void setStart(LocalDateTime start)
      Parameters:
      start - the start LocalDateTime value to be set on the Appointment object
    • setEnd

      public void setEnd(LocalDateTime end)
      Parameters:
      end - the end LocalDateTime value to be set on the Appointment object
    • setCreateDate

      public void setCreateDate(LocalDateTime createDate)
      Parameters:
      createDate - the createDate LocalDateTime value to be set on the Appointment object
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Parameters:
      createdBy - the createdBy string value to be set on the Appointment object
    • setLastUpdate

      public void setLastUpdate(LocalDateTime lastUpdate)
      Parameters:
      lastUpdate - the lastUpdate LocalDateTime value to be set on the Appointment object
    • setLastUpdatedBy

      public void setLastUpdatedBy(String lastUpdatedBy)
      Parameters:
      lastUpdatedBy - the lastUpdatedBy string value to be set on the Appointment object
    • setCustomerId

      public void setCustomerId(int customerId)
      Parameters:
      customerId - the customerId integer value to be set on the Appointment object
    • setUserId

      public void setUserId(int userId)
      Parameters:
      userId - the userId integer value to be set on the Appointment object
    • setContactId

      public void setContactId(int contactId)
      Parameters:
      contactId - the contactId integer value to be set on the Appointment object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Stringified appointment details