Package org.openwms.common.location
Class Message
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.common.location.Message
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
A Message can be used to store useful information about errors or events.
- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Message
builder static inner class. -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Message()
Dear JPA...Create a newMessage
with message number and message text.private
Message
(Message.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Return the message number.Return the message text.int
hashCode()
static Message.Builder
Create a new builder instance to create messages from.toString()
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
SEPARATOR
String used to separate messageNo and messageText in toString.- See Also:
-
messageNo
private int messageNoMessage number. -
messageText
Message description text.
-
-
Constructor Details
-
Message
protected Message()Dear JPA... -
Message
Create a newMessage
with message number and message text.- Parameters:
messageNo
- The message numbermessageText
- The message text
-
Message
-
-
Method Details
-
newBuilder
Create a new builder instance to create messages from.- Returns:
- The builder
-
getMessageNo
public int getMessageNo()Return the message number.- Returns:
- The message number
-
getMessageText
Return the message text.- Returns:
- The message text
-
equals
-
hashCode
public int hashCode() -
toString
-