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>>
@Entity public class AppointmentType extends AbstractLockableEntity implements IUUIDEntity
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:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringATTR_APPOINTMENT_TEMPLATEJPA attribute name for thegetAppointmentTemplate()field.static StringATTR_DURATIONJPA 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.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 AppointmentType() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppointmentTemplategetAppointmentTemplate()DurationgetDuration()longgetDurationMinutes()LonggetId()StringgetUUID()UUIDgetUUIDObject()voidsetAppointmentTemplate(AppointmentTemplate appointmentTemplate)voidsetDuration(Duration duration)voidsetDurationMinutes(long minutes)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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ATTR_APPOINTMENT_TEMPLATE
public static final String ATTR_APPOINTMENT_TEMPLATE
JPA attribute name for thegetAppointmentTemplate()field.- See Also:
 - Constant Field Values
 
 
- 
ATTR_DURATION
public static final String ATTR_DURATION
JPA attribute name for thegetDuration()field.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getAppointmentTemplate
public AppointmentTemplate getAppointmentTemplate()
- Returns:
 - The appointment template to which this appointment type belongs to. A type cannot belong to multiple appointment templates.
 
 
- 
getDuration
public Duration getDuration()
- Returns:
 - The duration an appointment of this type takes.
 
 
- 
getDurationMinutes
public long getDurationMinutes()
- Returns:
 - The value 
getDuration()in minutes. 
 
- 
getUUID
public String 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
public 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
public void setAppointmentTemplate(AppointmentTemplate appointmentTemplate)
- Parameters:
 appointmentTemplate- The appointment template to which this appointment type belongs to. A type cannot belong to multiple appointment templates.
 
- 
setDuration
public void setDuration(Duration duration)
- 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
public void setUUID(String uuid)
- 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
public void setUUIDObject(UUID uuid)
- 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.
 
 - 
 
 -