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 anAppointmentTemplate
.- Since:
- 7.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
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.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, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description AAppointmentClosingTime()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cloneBasics(AAppointmentClosingTime copy)
LocalDate
getDateFrom()
LocalDate
getDateUntil()
Long
getId()
String
getName()
LocalTime
getTimeFrom()
LocalTime
getTimeUntil()
String
getUUID()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUID
getUUIDObject()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.boolean
isAllDay()
protected static boolean
isTimeRangeRequired(boolean allDay)
void
setAllDay(boolean allDay)
void
setDateFrom(LocalDate dateFrom)
void
setDateUntil(LocalDate dateUntil)
void
setName(String name)
void
setTimeFrom(LocalTime timeFrom)
void
setTimeUntil(LocalTime timeUntil)
void
setUUID(String uuid)
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.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
-
-
-
-
Method Detail
-
getDateFrom
public LocalDate 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
public LocalDate 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
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()
- 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
public LocalTime 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
public void setDateFrom(LocalDate dateFrom)
- 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
public void setDateUntil(LocalDate dateUntil)
- 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
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)
- 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
public void setTimeUntil(LocalTime timeUntil)
- 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
public String getUUID()
Description copied from interface:IUUIDEntity
Gets 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 scopes
orproject scope
.- 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
public UUID getUUIDObject()
Description copied from interface:IUUIDEntity
Gets 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 scopes
orproject scope
.- 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
public void setUUID(String uuid)
Description copied from interface:IUUIDEntity
Sets 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 scopes
orproject scope
.- 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
public void setUUIDObject(UUID uuid)
- 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
protected void cloneBasics(AAppointmentClosingTime copy)
-
isTimeRangeRequired
protected static boolean isTimeRangeRequired(boolean allDay)
-
-