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