Class TimeSlot
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.planning.TimeSlot
-
- All Implemented Interfaces:
java.io.Serializable
public final class TimeSlot extends java.lang.Object implements java.io.SerializableBusiness class of the time slot- Author:
- Laurent Payen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeSlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTimegetEndingDateTime()java.time.LocalTimegetEndingTime()Get the ending time of the time slotjava.sql.TimegetEndingTimeSqlTime()Get the ending time in sql timeintgetIdTimeSlot()Get the id of the time slotintgetIdWorkingDay()Get the working day id the time slot belongs tobooleangetIsOpen()Indicate whether the time slot is open or notintgetMaxCapacity()Get the maximum capacity of the slotjava.time.LocalDateTimegetStartingDateTime()java.time.LocalTimegetStartingTime()Get the starting time of the time slotjava.sql.TimegetStartingTimeSqlTime()Get the starting time of the time slot (in sql time)voidsetEndingDateTime(java.time.LocalDateTime endingDateTime)voidsetEndingTime(java.time.LocalTime endingTime)Set the ending time of the time slotvoidsetIdTimeSlot(int nIdTimeSlot)Set the id of the time slotvoidsetIdWorkingDay(int nIdWorkingDay)Set the working day id the time slot belongs tovoidsetIsOpen(boolean bIsOpen)Set the opening boolean value of the time slotvoidsetMaxCapacity(int nMaxCapacity)Set the maximum capacity of the slotvoidsetSqlEndingTime(java.sql.Time endingTime)Set the ending time of the time slotvoidsetSqlStartingTime(java.sql.Time startingTime)Set the starting time of the time slotvoidsetStartingDateTime(java.time.LocalDateTime startingDateTime)voidsetStartingTime(java.time.LocalTime startingTime)Set the starting time of the time slot
-
-
-
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 java.time.LocalTime getStartingTime()
Get the starting time of the time slot- Returns:
- the starting time of the time slot
-
getStartingTimeSqlTime
public java.sql.Time getStartingTimeSqlTime()
Get the starting time of the time slot (in sql time)- Returns:
- the starting time
-
setStartingTime
public void setStartingTime(java.time.LocalTime startingTime)
Set the starting time of the time slot- Parameters:
startingTime- the starting time to set
-
setSqlStartingTime
public void setSqlStartingTime(java.sql.Time startingTime)
Set the starting time of the time slot- Parameters:
startingTime- the starting time (in sql time)
-
getEndingTime
public java.time.LocalTime getEndingTime()
Get the ending time of the time slot- Returns:
- the ending time of the time slot
-
getEndingTimeSqlTime
public java.sql.Time getEndingTimeSqlTime()
Get the ending time in sql time- Returns:
- the ending time in sql time
-
setEndingTime
public void setEndingTime(java.time.LocalTime endingTime)
Set the ending time of the time slot- Parameters:
endingTime- the ending time to set
-
setSqlEndingTime
public void setSqlEndingTime(java.sql.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 java.time.LocalDateTime getStartingDateTime()
-
setStartingDateTime
public void setStartingDateTime(java.time.LocalDateTime startingDateTime)
-
getEndingDateTime
public java.time.LocalDateTime getEndingDateTime()
-
setEndingDateTime
public void setEndingDateTime(java.time.LocalDateTime endingDateTime)
-
-