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>>

@Entity public class FormRecordLock extends AbstractEntity
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 Details

  • Constructor Details

    • FormRecordLock

      public FormRecordLock()
  • Method Details

    • getFormRecordId

      public long getFormRecordId()
      Returns:
      ID of the locked or unlocked form record.
    • getId

      public Long getId()
      Returns:
      ID of the form record that is locked.
    • getLockedWhen

      public Date 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

      public void setLockedWhen(Date lockedWhen)
      Parameters:
      lockedWhen - Date when the form record was locked.