Class TimeSlot

    • Constructor Detail

      • TimeSlot

        public TimeSlot()
    • Method Detail

      • getIdTimeSlot

        public int getIdTimeSlot()
        Get the id of the time slot
        Returns:
      • setIdTimeSlot

        public void setIdTimeSlot​(int nIdTimeSlot)
        Set the id of the time slot
        Parameters:
        nIdTimeSlot - the id to set
      • getStartingTime

        public LocalTime getStartingTime()
        Get the starting time of the time slot
        Returns:
        the starting time of the time slot
      • getStartingTimeSqlTime

        public Time getStartingTimeSqlTime()
        Get the starting time of the time slot (in sql time)
        Returns:
        the starting time
      • setStartingTime

        public void setStartingTime​(LocalTime startingTime)
        Set the starting time of the time slot
        Parameters:
        startingTime - the starting time to set
      • setSqlStartingTime

        public void setSqlStartingTime​(Time startingTime)
        Set the starting time of the time slot
        Parameters:
        startingTime - the starting time (in sql time)
      • getEndingTime

        public LocalTime getEndingTime()
        Get the ending time of the time slot
        Returns:
        the ending time of the time slot
      • getEndingTimeSqlTime

        public Time getEndingTimeSqlTime()
        Get the ending time in sql time
        Returns:
        the ending time in sql time
      • setEndingTime

        public void setEndingTime​(LocalTime endingTime)
        Set the ending time of the time slot
        Parameters:
        endingTime - the ending time to set
      • setSqlEndingTime

        public void setSqlEndingTime​(Time endingTime)
        Set the ending time of the time slot
        Parameters:
        endingTime - the ending time (in sql time format)
      • getIsOpen

        public boolean getIsOpen()
        Indicate whether the time slot is open or not
        Returns:
        true if the time slot is open
      • setIsOpen

        public void setIsOpen​(boolean bIsOpen)
        Set the opening boolean value of the time slot
        Parameters:
        bIsOpen - the opening boolean value
      • getMaxCapacity

        public int getMaxCapacity()
        Get the maximum capacity of the slot
        Returns:
        the maximum capacity
      • setMaxCapacity

        public void setMaxCapacity​(int nMaxCapacity)
        Set the maximum capacity of the slot
        Parameters:
        nMaxCapacity - the maximum capacity
      • getIdWorkingDay

        public int getIdWorkingDay()
        Get the working day id the time slot belongs to
        Returns:
        the working day id the time slot belongs to
      • setIdWorkingDay

        public void setIdWorkingDay​(int nIdWorkingDay)
        Set the working day id the time slot belongs to
        Parameters:
        nIdWorkingDay - the working day id to set
      • getStartingDateTime

        public LocalDateTime getStartingDateTime()
      • setStartingDateTime

        public void setStartingDateTime​(LocalDateTime startingDateTime)
      • setEndingDateTime

        public void setEndingDateTime​(LocalDateTime endingDateTime)