Package org.openwms.tms
Class Message
java.lang.Object
org.openwms.tms.Message
- All Implemented Interfaces:
Serializable
A Message is used to encapsulate a message text with an identifier.
- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Message
builder static inner class. -
Field Summary
Modifier and TypeFieldDescriptionprivate String
Message number of the Message.private String
Message description text.private LocalDateTime
Timestamp when the Message has occurred.private String
The unique key of the domain object in that context the message occurred. -
Constructor Summary
ModifierConstructorDescriptionprotected
Message()
Dear JPA...private
Message
(Message.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Use all fields.Get the messageNo.Return the message text.Return the Date when the Message has occurred.getpKey()
Get the pKey.int
hashCode()
Use all fields.static Message.Builder
toString()
Use all fields.
-
Field Details
-
occurred
Timestamp when the Message has occurred. -
messageNo
Message number of the Message. -
messageText
Message description text. -
pKey
The unique key of the domain object in that context the message occurred.
-
-
Constructor Details
-
Message
protected Message()Dear JPA... -
Message
-
-
Method Details
-
newBuilder
-
getOccurred
Return the Date when the Message has occurred.- Returns:
- Date when occurred.
-
getMessageNo
Get the messageNo.- Returns:
- The messageNo.
-
getMessageText
Return the message text.- Returns:
- The message text
-
getpKey
Get the pKey.- Returns:
- The pKey.
-
equals
Use all fields. -
toString
Use all fields. -
hashCode
public int hashCode()Use all fields.
-