Class Reports


  • public class Reports
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static javafx.collections.ObservableList<java.lang.String> months  
      private static javafx.collections.ObservableList<java.lang.String> reportTypes  
    • Constructor Summary

      Constructors 
      Constructor Description
      Reports()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javafx.collections.ObservableList<Appointment> appointmentByContact​(int ContactID)
      Returns a list of appointments associated with a specific Contact.
      static javafx.collections.ObservableList<java.lang.String> returnListOfReportTypes()  
      static javafx.collections.ObservableList<java.lang.String> returnMonths()
      Returns a list of the 12 months of the year.
      static int returnNumberOfAppointmentsThisWeekDAO()
      Returns the sum of appointments that's start time falls in the next 7 calendar days.
      static int returnNumberOfAppointmentsToday()
      Returns the sum of appointments that have start times that fall between the current time, and the end of the current business day.
      static int returnNumberOfAppointmentsTomorrow()
      Returns the number of appointments that are scheduled for the next business day.
      static javafx.collections.ObservableList<Type> returnTypeAggregates​(java.lang.String month)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • reportTypes

        private static javafx.collections.ObservableList<java.lang.String> reportTypes
      • months

        private static javafx.collections.ObservableList<java.lang.String> months
    • Constructor Detail

      • Reports

        public Reports()
    • Method Detail

      • returnListOfReportTypes

        public static javafx.collections.ObservableList<java.lang.String> returnListOfReportTypes()
      • returnTypeAggregates

        public static javafx.collections.ObservableList<Type> returnTypeAggregates​(java.lang.String month)
      • appointmentByContact

        public static javafx.collections.ObservableList<Appointment> appointmentByContact​(int ContactID)
        Returns a list of appointments associated with a specific Contact.
        Parameters:
        ContactID - Integer, ID of the desired contact.
        Returns:
        An Observable list of appointments associated with the contact. List will be empty if there are no associated appointments.
      • returnNumberOfAppointmentsToday

        public static int returnNumberOfAppointmentsToday()
        Returns the sum of appointments that have start times that fall between the current time, and the end of the current business day.
        Returns:
        Integer, number of appointments left in the business day.
      • returnNumberOfAppointmentsTomorrow

        public static int returnNumberOfAppointmentsTomorrow()
        Returns the number of appointments that are scheduled for the next business day.
        Returns:
        Integer, sum of appointments.
      • returnNumberOfAppointmentsThisWeekDAO

        public static int returnNumberOfAppointmentsThisWeekDAO()
        Returns the sum of appointments that's start time falls in the next 7 calendar days.
        Returns:
        Integer, number of appointments.
      • returnMonths

        public static javafx.collections.ObservableList<java.lang.String> returnMonths()
        Returns a list of the 12 months of the year.
        Returns:
        Observable list of months.