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>>
@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:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringATTR_FORM_RECORD_IDJPA attribute name for thegetFormRecordId()field.static StringATTR_LOCKED_WHENJPA attribute name for thegetLockedWhen()field.static StringCOL_FORM_RECORD_IDDatabase column name for thegetFormRecordId()field.static StringCOL_LOCKED_WHENDatabase column name for thegetLockedWhen()field.- 
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 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FormRecordLock() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFormRecordId()LonggetId()DategetLockedWhen()voidsetFormRecordId(long formRecordMetaId)voidsetLockedWhen(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 Detail
- 
ATTR_FORM_RECORD_ID
public static final String ATTR_FORM_RECORD_ID
JPA attribute name for thegetFormRecordId()field.- See Also:
 - Constant Field Values
 
 
- 
ATTR_LOCKED_WHEN
public static final String ATTR_LOCKED_WHEN
JPA attribute name for thegetLockedWhen()field.- See Also:
 - Constant Field Values
 
 
- 
COL_FORM_RECORD_ID
public static final String COL_FORM_RECORD_ID
Database column name for thegetFormRecordId()field.- See Also:
 - Constant Field Values
 
 
- 
COL_LOCKED_WHEN
public static final String COL_LOCKED_WHEN
Database column name for thegetLockedWhen()field.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
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. 
nullwhen 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.
 
 - 
 
 -