Package de.xima.fc.entities
Class AppointmentClosingTime
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.AppointmentClosingTime
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,INameProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class AppointmentClosingTime extends AbstractLockableEntity implements INameProviding
Describes the closing hours of anAppointmentTemplate
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_ALL_DAY
JPA attribute name for theisAllDay()
field.static String
ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for thegetAppointmentTemplate()
field.static String
ATTR_DATE_FROM
JPA attribute name for thegetDateFrom()
field.static String
ATTR_DATE_UNTIL
JPA attribute name for thegetDateUntil()
field.static String
ATTR_TIME_FROM
JPA attribute name for thegetTimeFrom()
field.static String
ATTR_TIME_UNTIL
JPA attribute name for thegetTimeUntil()
field.-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AppointmentClosingTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
ATTR_ALL_DAY
public static final String ATTR_ALL_DAY
JPA attribute name for theisAllDay()
field.- See Also:
- Constant Field Values
-
ATTR_APPOINTMENT_TEMPLATE
public static final String ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for thegetAppointmentTemplate()
field.- See Also:
- Constant Field Values
-
ATTR_DATE_FROM
public static final String ATTR_DATE_FROM
JPA attribute name for thegetDateFrom()
field.- See Also:
- Constant Field Values
-
ATTR_DATE_UNTIL
public static final String ATTR_DATE_UNTIL
JPA attribute name for thegetDateUntil()
field.- See Also:
- Constant Field Values
-
ATTR_TIME_FROM
public static final String ATTR_TIME_FROM
JPA attribute name for thegetTimeFrom()
field.- See Also:
- Constant Field Values
-
ATTR_TIME_UNTIL
public static final String ATTR_TIME_UNTIL
JPA attribute name for thegetTimeUntil()
field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAppointmentTemplate
public AppointmentTemplate getAppointmentTemplate()
- Returns:
- See appointment template for which this closing time was created.
-
getDate
public com.google.common.collect.Range<LocalDate> getDate()
- Returns:
- The start and end date of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
getDateFrom
public LocalDate getDateFrom()
- Returns:
- The start date of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
getDateUntil
public LocalDate getDateUntil()
- Returns:
- The end dateof this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
getName
public String getName()
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this closing time, such as a holiday name (e.g.
Easter
orChristmas Eve
).
-
getTimeFrom
public LocalTime getTimeFrom()
- Returns:
- The start time of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
getTimeUntil
public LocalTime getTimeUntil()
- Returns:
- The end time of this closing time. This is in the time zone defined by corresponding
AppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
isAllDay
public boolean isAllDay()
- Returns:
- Whether this closing time last the entire day. If so,
getTimeFrom()
andgetTimeUntil()
are ignored.
-
setAllDay
public void setAllDay(boolean allDay)
- Parameters:
allDay
- Whether this closing time last the entire day. If so,getTimeFrom()
andgetTimeUntil()
are ignored.
-
setAppointmentTemplate
public void setAppointmentTemplate(AppointmentTemplate appointmentTemplate)
- Parameters:
appointmentTemplate
- See appointment template for which this closing time was created.
-
setDateFrom
public void setDateFrom(LocalDate dateFrom)
- Parameters:
dateFrom
- The start date of this closing time. This is in the time zone defined by correspondingAppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
setDateUntil
public void setDateUntil(LocalDate dateUntil)
- Parameters:
dateUntil
- The end date of this closing time. This is in the time zone defined by correspondingAppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
setName
public void setName(String name)
- Parameters:
name
- The name of this closing time, such as a holiday name (e.g.Easter
orChristmas Eve
).
-
setTimeFrom
public void setTimeFrom(LocalTime timeFrom)
- Parameters:
timeFrom
- The start time of this closing time. This is in the time zone defined by correspondingAppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
setTimeUntil
public void setTimeUntil(LocalTime timeUntil)
- Parameters:
timeUntil
- The end time of this closing time. This is in the time zone defined by correspondingAppointmentTemplate.getZoneId()
(seegetAppointmentTemplate()
.
-
-