Package de.xima.fc.entities
Class FormRecordLock
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.FormRecordLock
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,ITransferable
,ITransferableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
Simple table that holds potentially long-term locks on a form record. A form record is locked when the workflow is
executed. The form record is locked so that no other process can start executing a workflow for the same form record,
preventing unwanted parallel execution.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
JPA attribute name for thegetFormRecordId()
field.static final String
JPA attribute name for thegetLockedWhen()
field.static final String
Database column name for thegetFormRecordId()
field.static final String
Database column name for thegetLockedWhen()
field.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.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
void
setFormRecordId
(long formRecordMetaId) void
setLockedWhen
(Date lockedWhen) 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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
ATTR_FORM_RECORD_ID
JPA attribute name for thegetFormRecordId()
field.- See Also:
-
ATTR_LOCKED_WHEN
JPA attribute name for thegetLockedWhen()
field.- See Also:
-
COL_FORM_RECORD_ID
Database column name for thegetFormRecordId()
field.- See Also:
-
COL_LOCKED_WHEN
Database column name for thegetLockedWhen()
field.- See Also:
-
-
Constructor Details
-
FormRecordLock
public FormRecordLock()
-
-
Method Details
-
getFormRecordId
public long getFormRecordId()- Returns:
- ID of the locked or unlocked form record.
-
getId
- Returns:
- ID of the form record that is locked.
-
getLockedWhen
- Returns:
- Date when the form record was locked.
null
when the form record is not locked.
-
setFormRecordId
public void setFormRecordId(long formRecordMetaId) - Parameters:
formRecordMetaId
- ID of the reference form record.
-
setLockedWhen
- Parameters:
lockedWhen
- Date when the form record was locked.
-