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 AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface 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 INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetId()getName()getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanisAllDay()protected static booleanisTimeRangeRequired(boolean allDay) voidsetAllDay(boolean allDay) voidsetDateFrom(LocalDate dateFrom) voidsetDateUntil(LocalDate dateUntil) voidvoidsetTimeFrom(LocalTime timeFrom) voidsetTimeUntil(LocalTime timeUntil) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface IAppointmentClosingTime
getDateMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Constructor Details
-
AAppointmentClosingTime
public AAppointmentClosingTime()
-
-
Method Details
-
getId
-
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
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- 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
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- 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
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- 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)
-