@Entity public class Lock extends Object implements EntityWithId<String>
Modifier | Constructor and Description |
---|---|
protected |
Lock()
Creates new instance.
|
|
Lock(String lockName,
String message,
Date lockDate,
boolean locked)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the primary key.
|
Date |
getLockDate()
Returns the lock timestamp.
|
String |
getLockName()
Returns name of the lock.
|
String |
getMessage()
Returns lock message.
|
boolean |
isLocked()
Returns true if locked.
|
void |
setLockDate(Date timestamp)
Updates timestamp of the lock to the current
|
void |
setLocked(boolean locked)
Sets the lock state.
|
void |
setMessage(String message)
Sets a message to the lock.
|
public String getLockName()
public String getId()
EntityWithId
getId
in interface EntityWithId<String>
public String getMessage()
public void setMessage(String message)
message
- public void setLockDate(Date timestamp)
timestamp
- NullPointerException
- if timestamp
is nullpublic Date getLockDate()
public boolean isLocked()
public void setLocked(boolean locked)
locked
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.