Package de.xima.fc.entities
Class WorkflowVersionBackup
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.AFileEntity<WorkflowVersion,WorkflowVersionBackupData>
-
- de.xima.fc.entities.WorkflowVersionBackup
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IAbstractDatei<WorkflowVersionBackupData>
,IFileEntity<WorkflowVersion,WorkflowVersionBackupData>
,ILockingVersionProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class WorkflowVersionBackup extends AFileEntity<WorkflowVersion,WorkflowVersionBackupData> implements IUUIDEntity
File descriptor for the JSON data of a workflow version backup. An automatic backup is created when the workflow is saved in the designer.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_WORKFLOW_VERSION
JPA attribute name for thegetBaseEntity()
field.static String
COL_BASE_ENTITY
Database column name for thegetBaseEntity()
field.static String
COL_UUID
Database column name for thegetUUID()
field.-
Fields inherited from class de.xima.fc.entities.AFileEntity
aenderungsdatum, benutzer_erstellt, benutzer_geaendert, COL_DATE_CREATED, COL_DATE_MODIFIED, COL_NAME, COL_USER_NAME_CREATED, COL_USER_NAME_MODIFIED, dataEntities, dateiname, erstellungsdatum
-
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.IFileEntity
ATTR_AENDERUNGSDATUM, ATTR_BASE_ENTITY, ATTR_BENUTZER, ATTR_BENUTZER_GEAENDERT, ATTR_DATA_ENTITY, ATTR_DATEINAME, ATTR_DATEN, ATTR_ERSTELLUNGSDATUM
-
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, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description WorkflowVersionBackup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowVersion
getBaseEntity()
WorkflowVersionBackupData
getDataEntity()
Long
getId()
String
getPersistJson()
String
getUUID()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUID
getUUIDObject()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.void
setBaseEntity(WorkflowVersion baseEntity)
void
setDataEntity(WorkflowVersionBackupData dataEntity)
void
setId(Long id)
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!void
setNewData(byte[] newData)
void
setUUID(String uuid)
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.void
setUUIDObject(UUID uuid)
-
Methods inherited from class de.xima.fc.entities.AFileEntity
getAenderungsdatum, getBenutzer_erstellt, getBenutzer_geaendert, getDataEntities, getDateiname, getDaten, getErstellungsdatum, setAenderungsdatum, setBenutzer_erstellt, setBenutzer_geaendert, setDataEntities, setDateiname, setErstellungsdatum
-
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
-
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.fc.entities.interfaces.IFileEntity
getDateiDaten, setDateiDaten
-
-
-
-
Field Detail
-
ATTR_WORKFLOW_VERSION
public static final String ATTR_WORKFLOW_VERSION
JPA attribute name for thegetBaseEntity()
field.- See Also:
- Constant Field Values
-
COL_BASE_ENTITY
public static final String COL_BASE_ENTITY
Database column name for thegetBaseEntity()
field.- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
Database column name for thegetUUID()
field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseEntity
public WorkflowVersion getBaseEntity()
- Specified by:
getBaseEntity
in interfaceIFileEntity<WorkflowVersion,WorkflowVersionBackupData>
-
getDataEntity
public WorkflowVersionBackupData getDataEntity()
- Specified by:
getDataEntity
in interfaceIFileEntity<WorkflowVersion,WorkflowVersionBackupData>
-
getPersistJson
public String getPersistJson()
- Returns:
- The file data decoded as a JSON strong.
-
getUUID
public String getUUID()
Description copied from interface:IUUIDEntity
Gets 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 scopes
orproject scope
.- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntity
Gets 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 scopes
orproject scope
.- Specified by:
getUUIDObject
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
setBaseEntity
public void setBaseEntity(WorkflowVersion baseEntity)
- Specified by:
setBaseEntity
in interfaceIFileEntity<WorkflowVersion,WorkflowVersionBackupData>
-
setDataEntity
public void setDataEntity(WorkflowVersionBackupData dataEntity)
- Specified by:
setDataEntity
in interfaceIFileEntity<WorkflowVersion,WorkflowVersionBackupData>
-
setId
public void setId(Long id)
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
setNewData
public void setNewData(byte[] newData)
- Specified by:
setNewData
in interfaceIAbstractDatei<WorkflowVersionBackupData>
- Specified by:
setNewData
in interfaceIFileEntity<WorkflowVersion,WorkflowVersionBackupData>
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntity
Sets 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 scopes
orproject scope
.- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
- Parameters:
uuid
- The unique UUID of this workflow version.
-
-