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, 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 voidcloneBasics(AAppointmentClosingTime copy)LocalDategetDateFrom()LocalDategetDateUntil()LonggetId()StringgetName()LocalTimegetTimeFrom()LocalTimegetTimeUntil()StringgetUUID()UUIDgetUUIDObject()booleanisAllDay()protected static booleanisTimeRangeRequired(boolean allDay)voidsetAllDay(boolean allDay)voidsetDateFrom(LocalDate dateFrom)voidsetDateUntil(LocalDate dateUntil)voidsetName(String name)voidsetTimeFrom(LocalTime timeFrom)voidsetTimeUntil(LocalTime timeUntil)voidsetUUID(String uuid)voidsetUUIDObject(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:
 getDateFromin 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:
 getDateUntilin 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:
 getNamein interfaceINameProviding- Returns:
 - The name of this closing time, such as a holiday name (e.g. 
EasterorChristmas Eve). 
 
- 
getTimeFrom
public LocalTime 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
public LocalTime 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
public void setDateFrom(LocalDate dateFrom)
- 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
public void setDateUntil(LocalDate dateUntil)
- 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
public void setName(String name)
- Parameters:
 name- The name of this closing time, such as a holiday name (e.g.EasterorChristmas Eve).
 
- 
setTimeFrom
public void setTimeFrom(LocalTime timeFrom)
- 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
public void setTimeUntil(LocalTime timeUntil)
- 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
public String 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
public 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
public void setUUID(String uuid)
- 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
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 givenclientorAppointmentTemplate. 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)
 
 - 
 
 -