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
Nested ClassesModifier and TypeClassDescriptionstatic classMessagebuilder static inner class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringMessage number of the Message.private StringMessage description text.private LocalDateTimeTimestamp when the Message has occurred.private StringThe unique key of the domain object in that context the message occurred. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMessage()Dear JPA...privateMessage(Message.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanUse all fields.Get the messageNo.Return the message text.Return the Date when the Message has occurred.getpKey()Get the pKey.inthashCode()Use all fields.static Message.BuildertoString()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.
-