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 AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class 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 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 TypeMethodDescriptionlonggetId()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.voidsetAppointmentTemplate(AppointmentTemplate appointmentTemplate) voidsetDuration(Duration duration) voidsetDurationMinutes(long minutes) 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 de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for thegetAppointmentTemplate()field.- See Also:
-
ATTR_DURATION
-
-
Constructor Details
-
AppointmentType
public AppointmentType()
-
-
Method Details
-
getId
-
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
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 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
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 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
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 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.
-