Package de.xima.fc.entities
Class AAppointmentClosingTime
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.AAppointmentClosingTime
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IAppointmentClosingTime
,ILockingVersionProviding
,INameProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
AppointmentClientClosingTime
,AppointmentClosingTime
@MappedSuperclass
@NotNullIf(field="timeFrom",dependants="allDay",test="isTimeRangeRequired") @NotNullIf(field="timeUntil",dependants="allDay",test="isTimeRangeRequired")
@SpanningRange(fieldStart="dateFrom",fieldEnd="dateUntil") @SpanningRange(fieldStart="timeFrom",fieldEnd="timeUntil")
public abstract class AAppointmentClosingTime
extends AbstractLockableEntity
implements IAppointmentClosingTime
Describes the closing hours of an
AppointmentTemplate
.- Since:
- 7.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
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.IAppointmentClosingTime
ATTR_ALL_DAY, ATTR_DATE_FROM, ATTR_DATE_UNTIL, ATTR_TIME_FROM, ATTR_TIME_UNTIL, COL_ALL_DAY, COL_DATE_FROM, COL_DATE_UNTIL, COL_TIME_FROM, COL_TIME_UNTIL
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
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
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
getId()
getName()
getUUID()
boolean
isAllDay()
protected static boolean
isTimeRangeRequired
(boolean allDay) void
setAllDay
(boolean allDay) void
setDateFrom
(LocalDate dateFrom) void
setDateUntil
(LocalDate dateUntil) void
void
setTimeFrom
(LocalTime timeFrom) void
setTimeUntil
(LocalTime timeUntil) void
void
setUUIDObject
(UUID uuid) 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
Methods inherited from interface de.xima.fc.entities.interfaces.IAppointmentClosingTime
getDate
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Constructor Details
-
AAppointmentClosingTime
public AAppointmentClosingTime()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
getDateFrom
- Specified by:
getDateFrom
in interfaceIAppointmentClosingTime
- Returns:
- The start date of this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId()
.
-
getDateUntil
- Specified by:
getDateUntil
in interfaceIAppointmentClosingTime
- Returns:
- The end dateof this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId()
.
-
getName
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this closing time, such as a holiday name (e.g.
Easter
orChristmas Eve
).
-
getTimeFrom
- Specified by:
getTimeFrom
in interfaceIAppointmentClosingTime
- Returns:
- The start time of this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId()
.
-
getTimeUntil
- Specified by:
getTimeUntil
in interfaceIAppointmentClosingTime
- Returns:
- The end time of this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId()
.
-
isAllDay
public boolean isAllDay()- Specified by:
isAllDay
in interfaceIAppointmentClosingTime
- Returns:
- Whether this closing time last the entire day. If so,
getTimeFrom()
andgetTimeUntil()
are ignored.
-
setAllDay
public void setAllDay(boolean allDay) - Specified by:
setAllDay
in interfaceIAppointmentClosingTime
- Parameters:
allDay
- Whether this closing time last the entire day. If so,getTimeFrom()
andgetTimeUntil()
are ignored.
-
setDateFrom
- Specified by:
setDateFrom
in interfaceIAppointmentClosingTime
- Parameters:
dateFrom
- The start date of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId()
.
-
setDateUntil
- Specified by:
setDateUntil
in interfaceIAppointmentClosingTime
- Parameters:
dateUntil
- The end date of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId()
.
-
setName
- Parameters:
name
- The name of this closing time, such as a holiday name (e.g.Easter
orChristmas Eve
).
-
setTimeFrom
- Specified by:
setTimeFrom
in interfaceIAppointmentClosingTime
- Parameters:
timeFrom
- The start time of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId()
.
-
setTimeUntil
- Specified by:
setTimeUntil
in interfaceIAppointmentClosingTime
- Parameters:
timeUntil
- The end time of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId()
.
-
getUUID
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of this closing time. Please note that this UUID is guaranteed to be unique only for a given
client
orAppointmentTemplate
. That is, two appointment templates belonging to two different clients may have the same UUID.
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
- Returns:
- The UUID of this closing time. Please note that this UUID is guaranteed to be unique only for a given
client
orAppointmentTemplate
. That is, two appointment templates belonging to two different clients may have the same UUID.
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- A new UUID for this closing time. Please note that this UUID is guaranteed to be unique only for a givenclient
orAppointmentTemplate
. That is, two appointment templates belonging to two different clients may have the same UUID.
-
setUUIDObject
- Parameters:
uuid
- A new UUID for this closing time. Please note that this UUID is guaranteed to be unique only for a givenclient
orAppointmentTemplate
. That is, two appointment templates belonging to two different clients may have the same UUID.
-
cloneBasics
-
isTimeRangeRequired
protected static boolean isTimeRangeRequired(boolean allDay)
-