Package de.xima.fc.entities
Class Maintenance
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.Maintenance
-
- 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>>
- Direct Known Subclasses:
SystemMaintenance,TenantMaintenance
@Entity public class Maintenance extends AbstractLockableEntity implements IUUIDEntity
Entity for maintenance mode.- Author:
- Hannes John
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ACTIVEActive attribute namestatic StringATTR_CONTEXTContext attribute namestatic StringATTR_ENDEnd attribute namestatic StringATTR_STARTStart attribute namestatic StringATTR_UUIDUUID attribute namestatic StringCOL_ACTIVEColumn activestatic StringCOL_CONTEXTColumn context (discriminator column for inheritance)static StringCOL_ENDColumn endstatic StringCOL_STARTColumn startstatic StringCOL_UUIDColumn UUID-
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
INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description Maintenance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EMaintenanceContextgetContext()LocalDateTimegetEnd()LonggetId()LocalDateTimegetStart()StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanisActive()booleanisNew()Identifies this entity as being new.voidsetActive(boolean active)Indicates, whether this maintenance item is activevoidsetContext(EMaintenanceContext context)Context of this maintenance item (discriminator column for inheritance)voidsetEnd(LocalDateTime end)End of maintenance modevoidsetStart(LocalDateTime start)Begin of maintenance modevoidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.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
-
COL_UUID
public static final String COL_UUID
Column UUID- See Also:
- Constant Field Values
-
COL_ACTIVE
public static final String COL_ACTIVE
Column active- See Also:
- Constant Field Values
-
COL_START
public static final String COL_START
Column start- See Also:
- Constant Field Values
-
COL_END
public static final String COL_END
Column end- See Also:
- Constant Field Values
-
COL_CONTEXT
public static final String COL_CONTEXT
Column context (discriminator column for inheritance)- See Also:
- Constant Field Values
-
ATTR_UUID
public static final String ATTR_UUID
UUID attribute name- See Also:
- Constant Field Values
-
ATTR_ACTIVE
public static final String ATTR_ACTIVE
Active attribute name- See Also:
- Constant Field Values
-
ATTR_START
public static final String ATTR_START
Start attribute name- See Also:
- Constant Field Values
-
ATTR_END
public static final String ATTR_END
End attribute name- See Also:
- Constant Field Values
-
ATTR_CONTEXT
public static final String ATTR_CONTEXT
Context attribute name- See Also:
- Constant Field Values
-
-
Method Detail
-
isActive
public boolean isActive()
-
getStart
public LocalDateTime getStart()
-
getEnd
public LocalDateTime getEnd()
-
getUUID
public String 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 the entity.
-
setUUID
public void setUUID(String uuid)
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- The UUID of the entity.
-
getUUIDObject
public 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 the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getContext
public EMaintenanceContext getContext()
-
isNew
public boolean isNew()
Identifies this entity as being new.- Returns:
- true, if new
-
setActive
public void setActive(boolean active)
Indicates, whether this maintenance item is active
-
setStart
public void setStart(LocalDateTime start)
Begin of maintenance mode
-
setEnd
public void setEnd(LocalDateTime end)
End of maintenance mode
-
setContext
public void setContext(EMaintenanceContext context)
Context of this maintenance item (discriminator column for inheritance)
-
-