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 String
JPA attribute name for thegetAppointmentTemplate()
field.static final String
JPA attribute name for thegetDuration()
field.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.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
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 -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getUUID()
void
setAppointmentTemplate
(AppointmentTemplate appointmentTemplate) void
setDuration
(Duration duration) void
setDurationMinutes
(long minutes) void
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.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:
getId
in 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:
getUUID
in 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:
getUUIDObject
in 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:
setUUID
in 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.
-