Package de.xima.fc.entities
Class Appointment
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.Appointment
- All Implemented Interfaces:
- de.xima.cmn.dao.interfaces.IEntity<Long>,- de.xima.cmn.dao.interfaces.ILockableEntity<Long>,- IEffectiveAppointmentStatusProviding,- ILockingVersionProviding,- IMandantDependent,- ITransferable,- ITransferableEntity,- ITransferableLockableEntity,- IUUIDEntity,- IVorgangDependent,- Serializable,- Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class Appointment
extends AbstractLockableEntity
implements IMandantDependent, IUUIDEntity, IVorgangDependent, IEffectiveAppointmentStatusProviding
Describes a booked appointment. The available times are defined by the 
AppointmentTemplate.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetAppointmentType()field.static final StringJPA attribute name for thegetStatus()field.static final StringJPA attribute name for thegetInstantFrom()field.static final StringJPA attribute name for thegetInstantUntil()field.protected @NotNull MandantFields inherited from class de.xima.fc.entities.AbstractLockableEntityCOL_LOCKINGVERSION, lockingVersionFields inherited from class de.xima.fc.entities.AbstractEntityCOL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntityATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntityATTR_LOCKINGVERSIONFields inherited from interface de.xima.fc.entities.interfaces.IMandantDependentATTR_MANDANT, COL_CLIENT_IDFields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntityIMPORT_ID, INVALID_IDFields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntityATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUIDFields inherited from interface de.xima.fc.entities.interfaces.IVorgangDependentATTR_VORGANG
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.google.common.collect.Range<LocalDateTime>getDateTime(ZoneId zoneId) getDateTimeFrom(ZoneId zoneId) getDateTimeUntil(ZoneId zoneId) getId()com.google.common.collect.Range<Instant>Deprecated.longlonggetUUID()Deprecated.UsegetFormRecord().com.google.common.collect.Range<ZonedDateTime>booleanvoidsetAppointmentType(AppointmentType appointmentType) voidvoidsetFormRecord(Vorgang formRecord) voidsetInstant(com.google.common.collect.Range<Instant> instant) voidsetInstantFrom(Instant instantFrom) voidsetInstantUntil(Instant instantUntil) voidsetMandant(Mandant client) Deprecated.UsesetClient(Mandant).voidsetStatus(EAppointmentStatus status) voidsetTimestampFrom(long timestampFrom) voidsetTimestampUntil(long timestampUntil) voidvoidsetUUIDObject(UUID uuid) voidsetVorgang(Vorgang formRecord) Deprecated.voidsetZonedDateTime(com.google.common.collect.Range<ZonedDateTime> dateTime) voidsetZonedDateTimeFrom(ZonedDateTime dateTimeFrom) voidsetZonedDateTimeUntil(ZonedDateTime dateTimeUntil) Methods inherited from class de.xima.fc.entities.AbstractLockableEntityentityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class de.xima.fc.entities.AbstractEntityasIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntitycompareTo, equals, getDBTableName, hashCodeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface de.xima.fc.entities.IEffectiveAppointmentStatusProvidinggetEffectiveStatusMethods inherited from interface de.xima.cmn.dao.interfaces.IEntityisPersisted, setId
- 
Field Details- 
ATTR_APPOINTMENT_TYPEJPA attribute name for thegetAppointmentType()field.- See Also:
 
- 
ATTR_STATUSJPA attribute name for thegetStatus()field.- See Also:
 
- 
ATTR_TIMESTAMP_FROMJPA attribute name for thegetInstantFrom()field.- See Also:
 
- 
ATTR_TIMESTAMP_UNTILJPA attribute name for thegetInstantUntil()field.- See Also:
 
- 
client
 
- 
- 
Constructor Details- 
Appointmentpublic Appointment()
 
- 
- 
Method Details- 
getAppointmentType- Returns:
- The appointment type for which this event was created.
 
- 
getClient- Returns:
- The client to which this event belongs.
 
- 
getDateTime- Parameters:
- zoneId- The time zone in which to return the result.
- Returns:
- The start and end date and time of this event, in the given time zone.
 
- 
getDateTimeFrom- Parameters:
- zoneId- The time zone in which to return the start time.
- Returns:
- The start date and time of this event, in the given time zone.
 
- 
getDateTimeUntil- Parameters:
- zoneId- The time zone in which to return the end time.
- Returns:
- The end date and time of this event, in the given time zone.
 
- 
getDuration- Returns:
- The duration of this appointment.
 
- 
getFormRecord- Returns:
- The form record where this appointment was booked. This may be nullwhen the form record was deleted.
 
- 
getId- Specified by:
- getIdin interface- de.xima.cmn.dao.interfaces.IEntity<Long>
 
- 
getInstant- Returns:
- The start and end point of this appointment.
 
- 
getInstantFrom- Returns:
- The start point of this appointment.
 
- 
getInstantUntil- Returns:
- The end point of this appointment.
 
- 
getMandantDeprecated.UsegetClient().- Specified by:
- getMandantin interface- IMandantDependent
- Returns:
- The client to which this event belongs.
 
- 
getStatus- Specified by:
- getStatusin interface- IEffectiveAppointmentStatusProviding
- Returns:
- The current status of this appointment, e.g. whether it is booked, canceled etc.
 
- 
getTimestampFrompublic long getTimestampFrom()- Returns:
- The start point of this appointment as an epoch (unix timestamp) in milliseconds.
 
- 
getTimestampUntilpublic long getTimestampUntil()- Returns:
- The end point of this appointment as an epoch (unix timestamp) in milliseconds.
 
- 
getUUID- Specified by:
- getUUIDin interface- IUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
     context, e.g. Mandant,Projekt, ...
 
- 
getUUIDObject- Specified by:
- getUUIDObjectin interface- IUUIDEntity
 
- 
getVorgangDeprecated.UsegetFormRecord().- Specified by:
- getVorgangin interface- IVorgangDependent
- Returns:
- The form record where this appointment was booked. This may be nullwhen the form record was deleted.
 
- 
getZonedDateTime- Returns:
- The date and time range of this event, with the time zone.
 
- 
getZonedDateTimeFrom- Returns:
- The start date and time of this event, with the time zone.
 
- 
getZonedDateTimeUntil- Returns:
- The end date and time of this event, with a time zone (UTC).
 
- 
hasFormRecordpublic boolean hasFormRecord()- Specified by:
- hasFormRecordin interface- IEffectiveAppointmentStatusProviding
- Returns:
- Whether this appointment is associated with an existing form record.
 
- 
setAppointmentType- Parameters:
- appointmentType- The appointment type for which this event was created.
 
- 
setClient- Parameters:
- client- The client to which this event belongs.
 
- 
setFormRecord- Parameters:
- formRecord- The form record where this appointment was booked. This may be- nullwhen the form record was deleted.
 
- 
setInstant- Parameters:
- instant- The new start and end point of this appointment.
 
- 
setInstantFrom- Parameters:
- instantFrom- The new start point of this appointment.
 
- 
setInstantUntil- Parameters:
- instantUntil- The new end point of this appointment.
 
- 
setMandantDeprecated.UsesetClient(Mandant).- Specified by:
- setMandantin interface- IMandantDependent
- Parameters:
- client- The client to which this event belongs.
 
- 
setStatus- Parameters:
- status- The current status of this appointment, e.g. whether it is booked, canceled etc.
 
- 
setTimestampFrompublic void setTimestampFrom(long timestampFrom) - Parameters:
- timestampFrom- The start point of this appointment as an epoch (unix timestamp) in milliseconds.
 
- 
setTimestampUntilpublic void setTimestampUntil(long timestampUntil) - Parameters:
- timestampUntil- The end point of this appointment as an epoch (unix timestamp) in milliseconds.
 
- 
setUUID- Specified by:
- setUUIDin interface- IUUIDEntity
 
- 
setUUIDObject- Parameters:
- uuid- The new UUID of this appointment.
 
- 
setVorgangDeprecated.- Parameters:
- formRecord- The form record where this appointment was booked. This may be- nullwhen the form record was deleted.
 
- 
setZonedDateTime- Parameters:
- dateTime- The start and end date time of this appointment.
 
- 
setZonedDateTimeFrom- Parameters:
- dateTimeFrom- The start date time of this appointment.
 
- 
setZonedDateTimeUntil- Parameters:
- dateTimeUntil- The end date time of this appointment.
 
 
- 
getClient().