@Entity public class AppointmentSlot extends AbstractLockableEntity
AppointmentTemplate
.Modifier and Type | Field and Description |
---|---|
static String |
ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for the
getAppointmentTemplate() field. |
static String |
ATTR_DAY_OF_WEEK
JPA attribute name for the
getDayOfWeek() field. |
static String |
ATTR_TIME_FROM
JPA attribute name for the
getTimeFrom() field. |
static String |
ATTR_TIME_UNTIL
JPA attribute name for the
getTimeUntil() field. |
static String |
COL_APPOINTMENT_TEMPLATE
Database column name for the
getAppointmentTemplate() field. |
static String |
COL_DAY_OF_WEEK
Database column name for the
getDayOfWeek() field. |
static String |
COL_TIME_FROM
Database column name for the
getTimeFrom() field. |
static String |
COL_TIME_UNTIL
Database column name for the
getTimeUntil() field. |
COL_LOCKINGVERSION, lockingVersion
COL_ID, id
IMPORT_ID, INVALID_ID
Constructor and Description |
---|
AppointmentSlot() |
Modifier and Type | Method and Description |
---|---|
AppointmentTemplate |
getAppointmentTemplate() |
DayOfWeek |
getDayOfWeek() |
Long |
getId() |
String |
getKey() |
com.google.common.collect.Range<LocalTime> |
getTime() |
LocalTime |
getTimeFrom() |
LocalTime |
getTimeUntil() |
void |
setAppointmentTemplate(AppointmentTemplate appointmentTemplate) |
void |
setDayOfWeek(DayOfWeek dayOfWeek) |
void |
setTimeFrom(int hours,
int minutes)
Sets the start time of this appointment slot, on the
getDayOfWeek() . |
void |
setTimeFrom(LocalTime timeFrom) |
void |
setTimeUntil(int hours,
int minutes)
Sets the end time of this appointment slot, on the
getDayOfWeek() . |
void |
setTimeUntil(LocalTime timeUntil) |
entityHasChanged, getLockingVersion, setLockingVersion, toString
asIntValue, isPersisted, setId, setId
compareTo, equals, getDBTableName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public static final String ATTR_APPOINTMENT_TEMPLATE
getAppointmentTemplate()
field.public static final String ATTR_DAY_OF_WEEK
getDayOfWeek()
field.public static final String ATTR_TIME_FROM
getTimeFrom()
field.public static final String ATTR_TIME_UNTIL
getTimeUntil()
field.public static final String COL_APPOINTMENT_TEMPLATE
getAppointmentTemplate()
field.public static final String COL_DAY_OF_WEEK
getDayOfWeek()
field.public static final String COL_TIME_FROM
getTimeFrom()
field.public static final String COL_TIME_UNTIL
getTimeUntil()
field.public Long getId()
public AppointmentTemplate getAppointmentTemplate()
public DayOfWeek getDayOfWeek()
public String getKey()
public com.google.common.collect.Range<LocalTime> getTime()
getDayOfWeek()
. This is in the time zone
defined by corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public LocalTime getTimeFrom()
getDayOfWeek()
. This is in the time zone defined by
corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public LocalTime getTimeUntil()
getDayOfWeek()
. This is in the time zone defined by
corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public void setAppointmentTemplate(AppointmentTemplate appointmentTemplate)
appointmentTemplate
- The appointment template for which this slot was created.public void setDayOfWeek(DayOfWeek dayOfWeek)
dayOfWeek
- The week day of this slot, from Monday to Sunday. Each slot can be assigned to one day only.public void setTimeFrom(int hours, int minutes)
getDayOfWeek()
. This is in the time zone defined by
corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.hours
- The hours part of the start time of this slot.minutes
- The minutes part of the start time of this slot.spublic void setTimeFrom(LocalTime timeFrom)
timeFrom
- The start time of this appointment slot, on the getDayOfWeek()
. This is in the time zone
defined by corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public void setTimeUntil(int hours, int minutes)
getDayOfWeek()
. This is in the time zone defined by
corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.hours
- The hours part of the end time of this slot.minutes
- The minutes part of the end time of this slot.spublic void setTimeUntil(LocalTime timeUntil)
timeUntil
- The start of this appointment slot, on the getDayOfWeek()
. This is in the time zone
defined by corresponding AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.