@Entity public class ExecutionLockImpl extends Object implements ExecutionLock
ExecutionLock
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Long |
id |
protected String |
key |
protected Boolean |
locked |
protected Integer |
version |
Constructor and Description |
---|
ExecutionLockImpl() |
Modifier and Type | Method and Description |
---|---|
Long |
getId() |
String |
getKey()
The key representing the lock
|
Boolean |
getLocked()
Whether or not this key is locked
|
Integer |
getVersion()
The version of the lock record (used to facilitate optimistic locking of this record to prevent multiple edits of the same version)
|
void |
setId(Long id) |
void |
setKey(String key)
The key representing the lock
|
void |
setLocked(Boolean locked)
Whether or not this key is locked
|
void |
setVersion(Integer version)
The version of the lock record (used to facilitate optimistic locking of this record to prevent multiple edits of the same version)
|
protected Long id
protected String key
protected Boolean locked
protected Integer version
public Long getId()
getId
in interface ExecutionLock
public void setId(Long id)
setId
in interface ExecutionLock
public String getKey()
ExecutionLock
getKey
in interface ExecutionLock
public void setKey(String key)
ExecutionLock
setKey
in interface ExecutionLock
public Boolean getLocked()
ExecutionLock
getLocked
in interface ExecutionLock
public void setLocked(Boolean locked)
ExecutionLock
setLocked
in interface ExecutionLock
locked
- statuspublic Integer getVersion()
ExecutionLock
getVersion
in interface ExecutionLock
public void setVersion(Integer version)
ExecutionLock
setVersion
in interface ExecutionLock
version
- the versionCopyright © 2019. All rights reserved.