@Entity public class AppointmentClosingTime extends AbstractLockableEntity implements INameProviding
AppointmentTemplate
.Modifier and Type | Field and Description |
---|---|
static String |
ATTR_ALL_DAY
JPA attribute name for the
isAllDay() field. |
static String |
ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for the
getAppointmentTemplate() field. |
static String |
ATTR_DATE_FROM
JPA attribute name for the
getDateFrom() field. |
static String |
ATTR_DATE_UNTIL
JPA attribute name for the
getDateUntil() 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. |
COL_LOCKINGVERSION, lockingVersion
COL_ID, id
ATTR_NAME, COL_NAME
IMPORT_ID, INVALID_ID
Constructor and Description |
---|
AppointmentClosingTime() |
Modifier and Type | Method and Description |
---|---|
AppointmentTemplate |
getAppointmentTemplate() |
com.google.common.collect.Range<LocalDate> |
getDate() |
LocalDate |
getDateFrom() |
LocalDate |
getDateUntil() |
Long |
getId() |
String |
getName() |
LocalTime |
getTimeFrom() |
LocalTime |
getTimeUntil() |
boolean |
isAllDay() |
void |
setAllDay(boolean allDay) |
void |
setAppointmentTemplate(AppointmentTemplate appointmentTemplate) |
void |
setDateFrom(LocalDate dateFrom) |
void |
setDateUntil(LocalDate dateUntil) |
void |
setName(String name) |
void |
setTimeFrom(LocalTime timeFrom) |
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_ALL_DAY
isAllDay()
field.public static final String ATTR_APPOINTMENT_TEMPLATE
getAppointmentTemplate()
field.public static final String ATTR_DATE_FROM
getDateFrom()
field.public static final String ATTR_DATE_UNTIL
getDateUntil()
field.public static final String ATTR_TIME_FROM
getTimeFrom()
field.public static final String ATTR_TIME_UNTIL
getTimeUntil()
field.public AppointmentTemplate getAppointmentTemplate()
public com.google.common.collect.Range<LocalDate> getDate()
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public LocalDate getDateFrom()
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public LocalDate getDateUntil()
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public String getName()
getName
in interface INameProviding
Easter
or Christmas Eve
).public LocalTime getTimeFrom()
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public LocalTime getTimeUntil()
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public boolean isAllDay()
getTimeFrom()
and getTimeUntil()
are ignored.public void setAllDay(boolean allDay)
allDay
- Whether this closing time last the entire day. If so, getTimeFrom()
and
getTimeUntil()
are ignored.public void setAppointmentTemplate(AppointmentTemplate appointmentTemplate)
appointmentTemplate
- See appointment template for which this closing time was created.public void setDateFrom(LocalDate dateFrom)
dateFrom
- The start date of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public void setDateUntil(LocalDate dateUntil)
dateUntil
- The end date of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public void setName(String name)
name
- The name of this closing time, such as a holiday name (e.g. Easter
or Christmas Eve
).public void setTimeFrom(LocalTime timeFrom)
timeFrom
- The start time of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.public void setTimeUntil(LocalTime timeUntil)
timeUntil
- The end time of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(see getAppointmentTemplate()
.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.