Class Slot

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class Slot
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    The business class of the slot
    Author:
    Laurent Payen
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Slot()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Slot clone()  
      java.time.LocalDate getDate()
      Get the date of the slot
      java.time.LocalDateTime getEndingDateTime()
      Get the ending date of the slot
      java.time.LocalTime getEndingTime()
      Get the ending time of the slot
      java.sql.Timestamp getEndingTimestampDate()
      Get the ending date of the slot
      int getIdForm()
      Get the Form Id the slot belongs to
      int getIdSlot()
      Get the id of the slot
      boolean getIsFull()
      Returns the IsFull
      boolean getIsOpen()
      Indicate if the slot is open or not
      boolean getIsPassed()
      Indicate if the slot is passed or not
      boolean getIsSpecific()
      Indicate if the slot is specific or not
      int getMaxCapacity()
      Get the maximum capacity of the slot
      int getNbPlacesTaken()
      Get the nb places taken on the slot
      int getNbPotentialRemainingPlaces()
      Get the potential remaining places on the slot
      int getNbRemainingPlaces()
      Get number of remaining places of the slot
      java.time.LocalDateTime getStartingDateTime()
      Get the starting date of the slot
      java.time.LocalTime getStartingTime()
      Get the starting time of the slot
      java.sql.Timestamp getStartingTimestampDate()
      Get the starting date of the slot
      void setDate​(java.time.LocalDate date)
      Set the date of the slot
      void setEndingDateTime​(java.time.LocalDateTime endingDateTime)
      Set the ending date of the slot
      void setEndingTime​(java.time.LocalTime endingTime)
      Set the ending time of the slot
      void setEndingTimeStampDate​(java.sql.Timestamp endingTimeStampDate)
      Set the ending date of the slot
      void setIdForm​(int nIdForm)
      Set the Form Id the Slot belongs to
      void setIdSlot​(int nIdSlot)
      Set the id of the slot
      void setIsFull​(int bIsFull)
      Sets the IsFull
      void setIsOpen​(boolean bIsOpen)
      Set the boolean open value of the slot
      void setIsPassed​(boolean bIsPassed)
      Set the boolean passed value of the slot
      void setIsSpecific​(boolean bIsSpecific)
      Set the boolean specific value of the slot
      void setMaxCapacity​(int nMaxCapacity)
      Set the maximum capacity of the slot
      void setNbPlacestaken​(int nNbPlacestaken)
      Set the number of places taken on the slot
      void setNbPotentialRemainingPlaces​(int nNbPotentialRemainingPlaces)
      Set the potential number of remaining places on the slot
      void setNbRemainingPlaces​(int nNbRemainingPlaces)
      Set the number of remaining places of the slot
      void setStartingDateTime​(java.time.LocalDateTime startingDateTime)
      Set the starting date of the slot
      void setStartingTime​(java.time.LocalTime startingTime)
      Set the starting time of the slot
      void setStartingTimeStampDate​(java.sql.Timestamp startingTimeStampDate)
      Set the starting date of the slot
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Slot

        public Slot()
    • Method Detail

      • getIdSlot

        public int getIdSlot()
        Get the id of the slot
        Returns:
        the id of the slot
      • getDate

        public java.time.LocalDate getDate()
        Get the date of the slot
        Returns:
        the date of the slot
      • setDate

        public void setDate​(java.time.LocalDate date)
        Set the date of the slot
        Parameters:
        date - the date to set
      • getStartingTime

        public java.time.LocalTime getStartingTime()
        Get the starting time of the slot
        Returns:
        the starting time of the slot
      • setStartingTime

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

        public java.time.LocalTime getEndingTime()
        Get the ending time of the slot
        Returns:
        the ending time of the slot
      • setEndingTime

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

        public void setIdSlot​(int nIdSlot)
        Set the id of the slot
        Parameters:
        nIdSlot - the id to set
      • getStartingDateTime

        public java.time.LocalDateTime getStartingDateTime()
        Get the starting date of the slot
        Returns:
        the starting date of the slot
      • getStartingTimestampDate

        public java.sql.Timestamp getStartingTimestampDate()
        Get the starting date of the slot
        Returns:
        the starting date of the slot (in Sql Timestamp format)
      • setStartingDateTime

        public void setStartingDateTime​(java.time.LocalDateTime startingDateTime)
        Set the starting date of the slot
        Parameters:
        startingDateTime - the starting date to set
      • setStartingTimeStampDate

        public void setStartingTimeStampDate​(java.sql.Timestamp startingTimeStampDate)
        Set the starting date of the slot
        Parameters:
        startingTimeStampDate - the starting date to set (in Timestamp format)
      • getEndingDateTime

        public java.time.LocalDateTime getEndingDateTime()
        Get the ending date of the slot
        Returns:
        the ending date of the slot
      • getEndingTimestampDate

        public java.sql.Timestamp getEndingTimestampDate()
        Get the ending date of the slot
        Returns:
        the ending date of the slot (in Sql Timestamp format)
      • setEndingDateTime

        public void setEndingDateTime​(java.time.LocalDateTime endingDateTime)
        Set the ending date of the slot
        Parameters:
        endingDateTime - the ending date of the slot (in LocalDateTime format)
      • setEndingTimeStampDate

        public void setEndingTimeStampDate​(java.sql.Timestamp endingTimeStampDate)
        Set the ending date of the slot
        Parameters:
        endingTimeStampDate - the ending date of the slot (in Timestamp format)
      • getIsOpen

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

        public void setIsOpen​(boolean bIsOpen)
        Set the boolean open value of the slot
        Parameters:
        bIsOpen - the boolean open value to set
      • getIsSpecific

        public boolean getIsSpecific()
        Indicate if the slot is specific or not
        Returns:
        true if the slot is specific
      • setIsSpecific

        public void setIsSpecific​(boolean bIsSpecific)
        Set the boolean specific value of the slot
        Parameters:
        bIsSpecific - the boolean open value to set
      • getIsPassed

        public boolean getIsPassed()
        Indicate if the slot is passed or not
        Returns:
        true if the slot is specific
      • setIsPassed

        public void setIsPassed​(boolean bIsPassed)
        Set the boolean passed value of the slot
        Parameters:
        bIsSpecific - the boolean open value to set
      • getNbRemainingPlaces

        public int getNbRemainingPlaces()
        Get number of remaining places of the slot
        Returns:
        the number of remaining places of the slot
      • setNbRemainingPlaces

        public void setNbRemainingPlaces​(int nNbRemainingPlaces)
        Set the number of remaining places of the slot
        Parameters:
        nNbRemainingPlaces - the number of remaining places
      • getNbPotentialRemainingPlaces

        public int getNbPotentialRemainingPlaces()
        Get the potential remaining places on the slot
        Returns:
        the number of potential ramaining places
      • setNbPotentialRemainingPlaces

        public void setNbPotentialRemainingPlaces​(int nNbPotentialRemainingPlaces)
        Set the potential number of remaining places on the slot
        Parameters:
        nNbPotentialRemainingPlaces - the number to set
      • getNbPlacesTaken

        public int getNbPlacesTaken()
        Get the nb places taken on the slot
        Returns:
        the number of places taken
      • setNbPlacestaken

        public void setNbPlacestaken​(int nNbPlacestaken)
        Set the number of places taken on the slot
        Parameters:
        nNbPlacesTaken - the number to set
      • 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 to set
      • getIdForm

        public int getIdForm()
        Get the Form Id the slot belongs to
        Returns:
        the FOrm Id
      • setIdForm

        public void setIdForm​(int nIdForm)
        Set the Form Id the Slot belongs to
        Parameters:
        nIdForm - the Form Id to set
      • getIsFull

        public boolean getIsFull()
        Returns the IsFull
        Returns:
        The IsFull
      • setIsFull

        public void setIsFull​(int bIsFull)
        Sets the IsFull
        Parameters:
        bIsFull - The IsFull ( _bIsFull == 1: if is full)
      • clone

        public Slot clone()
                   throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException