Interface IFormRecordLockContext
-
- All Superinterfaces:
AutoCloseable
,Serializable
- All Known Implementing Classes:
FormRecordLockContext
public interface IFormRecordLockContext extends Serializable, AutoCloseable
Common interface for a form record locking context that can acquire a lock on a form record and which needs to be released when the context is closed- Since:
- 6.6.13 & 7.0.5
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Long
getFormRecordId()
void
update(Vorgang newFormRecord)
Updates the form record to be locked.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
getFormRecordId
Long getFormRecordId()
- Returns:
- ID of the form record that is being locked by this context. May be
null
if no form record is being locked by this context.
-
update
void update(Vorgang newFormRecord) throws IllegalStateException
Updates the form record to be locked. This is not possible if the context is already locking a form record.- Parameters:
newFormRecord
- to lock- Throws:
IllegalStateException
- if the context is already locking a form record
-
-