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, lockingVersionFields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, idFields 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_UNTILFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_IDFields 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 voidgetId()getName()getUUID()booleanisAllDay()protected static booleanisTimeRangeRequired(boolean allDay) voidsetAllDay(boolean allDay) voidsetDateFrom(LocalDate dateFrom) voidsetDateUntil(LocalDate dateUntil) voidvoidsetTimeFrom(LocalTime timeFrom) voidsetTimeUntil(LocalTime timeUntil) voidvoidsetUUIDObject(UUID uuid) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.xima.fc.entities.interfaces.IAppointmentClosingTime
getDateMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Constructor Details
-
AAppointmentClosingTime
public AAppointmentClosingTime()
-
-
Method Details
-
getId
- Specified by:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
getDateFrom
- Specified by:
getDateFromin interfaceIAppointmentClosingTime- Returns:
- The start date of this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId().
-
getDateUntil
- Specified by:
getDateUntilin interfaceIAppointmentClosingTime- Returns:
- The end dateof this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId().
-
getName
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this closing time, such as a holiday name (e.g.
EasterorChristmas Eve).
-
getTimeFrom
- Specified by:
getTimeFromin interfaceIAppointmentClosingTime- Returns:
- The start time of this closing time. This is in the time zone defined by the corresponding
AppointmentTemplate.getZoneId().
-
getTimeUntil
- Specified by:
getTimeUntilin 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:
isAllDayin interfaceIAppointmentClosingTime- Returns:
- Whether this closing time last the entire day. If so,
getTimeFrom()andgetTimeUntil()are ignored.
-
setAllDay
public void setAllDay(boolean allDay) - Specified by:
setAllDayin interfaceIAppointmentClosingTime- Parameters:
allDay- Whether this closing time last the entire day. If so,getTimeFrom()andgetTimeUntil()are ignored.
-
setDateFrom
- Specified by:
setDateFromin interfaceIAppointmentClosingTime- Parameters:
dateFrom- The start date of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId().
-
setDateUntil
- Specified by:
setDateUntilin 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.EasterorChristmas Eve).
-
setTimeFrom
- Specified by:
setTimeFromin interfaceIAppointmentClosingTime- Parameters:
timeFrom- The start time of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId().
-
setTimeUntil
- Specified by:
setTimeUntilin interfaceIAppointmentClosingTime- Parameters:
timeUntil- The end time of this closing time. This is in the time zone defined by the correspondingAppointmentTemplate.getZoneId().
-
getUUID
- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of this closing time. Please note that this UUID is guaranteed to be unique only for a given
clientorAppointmentTemplate. That is, two appointment templates belonging to two different clients may have the same UUID.
-
getUUIDObject
- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of this closing time. Please note that this UUID is guaranteed to be unique only for a given
clientorAppointmentTemplate. That is, two appointment templates belonging to two different clients may have the same UUID.
-
setUUID
- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- A new UUID for this closing time. Please note that this UUID is guaranteed to be unique only for a givenclientorAppointmentTemplate. 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 givenclientorAppointmentTemplate. That is, two appointment templates belonging to two different clients may have the same UUID.
-
cloneBasics
-
isTimeRangeRequired
protected static boolean isTimeRangeRequired(boolean allDay)
-