|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.core.domain.system.Message
public class Message
A Message can be used to store useful information on other domain objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary |
---|
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
Message(int messageNo,
String messageText)
Create a new Message with message number and message text. |
Method Summary | |
---|---|
Date |
getCreated()
Return the date when this Message was created. |
Long |
getId()
Return the technical key value. |
int |
getMessageNo()
Return the message number. |
String |
getMessageText()
Return the message text. |
long |
getVersion()
Return the value of the optimistic locking field. |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setMessageNo(int messageNo)
Set the message number. |
void |
setMessageText(String messageText)
Set the message text. |
Methods inherited from class org.openwms.core.domain.AbstractEntity |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message(int messageNo, String messageText)
Message
with message number and message text.
messageNo
- The message numbermessageText
- The message textMethod Detail |
---|
public Long getId()
getId
in interface DomainObject<Long>
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public int getMessageNo()
public void setMessageNo(int messageNo)
messageNo
- The messageNo to set.public String getMessageText()
public void setMessageText(String messageText)
messageText
- The messageText to set.public Date getCreated()
Message
was created.
public long getVersion()
getVersion
in interface DomainObject<Long>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |