Package de.xima.fc.entities
Class AppointmentType
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.AppointmentType
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ILockingVersionProviding,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
Describes the type of an appointment and contains several metadata, such as the duration of the appointment.
- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetAppointmentTemplate()field.static final StringJPA attribute name for thegetDuration()field.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.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.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 TypeMethodDescriptionlonggetId()getUUID()voidsetAppointmentTemplate(AppointmentTemplate appointmentTemplate) voidsetDuration(Duration duration) voidsetDurationMinutes(long minutes) 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.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for thegetAppointmentTemplate()field.- See Also:
-
ATTR_DURATION
JPA attribute name for thegetDuration()field.- See Also:
-
-
Constructor Details
-
AppointmentType
public AppointmentType()
-
-
Method Details
-
getId
- Specified by:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
getAppointmentTemplate
- Returns:
- The appointment template to which this appointment type belongs to. A type cannot belong to multiple appointment templates.
-
getDuration
- Returns:
- The duration an appointment of this type takes.
-
getDurationMinutes
public long getDurationMinutes()- Returns:
- The value
getDuration()in minutes.
-
getUUID
- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of this appointment type. Please note that this UUID is guaranteed to be unique only for a given
getAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
-
getUUIDObject
- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of this appointment type. Please note that this UUID is guaranteed to be unique only for a given
getAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
-
setAppointmentTemplate
- Parameters:
appointmentTemplate- The appointment template to which this appointment type belongs to. A type cannot belong to multiple appointment templates.
-
setDuration
- Parameters:
duration- The duration an appointment of this type takes.
-
setDurationMinutes
public void setDurationMinutes(long minutes) - Parameters:
minutes- The new value for thegetDuration()is minutes.
-
setUUID
- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- A new unique UUID for this entity. Please note that this UUID is required to be unique only for a givengetAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
-
setUUIDObject
- Parameters:
uuid- A new unique UUID for this entity. Please note that this UUID is required to be unique only for a givengetAppointmentTemplate(). That is, two appointment types belonging to two different appointment templates may have the same UUID.
-