Class Message

java.lang.Object
org.openwms.wms.movements.Message
All Implemented Interfaces:
Serializable

@Embeddable public class Message extends Object implements Serializable
A Message is used to encapsulate a message text with an identifier.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • occurred

      private Date occurred
      Timestamp when the Message has occurred.
    • messageNo

      private String messageNo
      Message number of the Message.
    • messageText

      private String messageText
      Message text of the Message.
    • DEF_MESSAGE_LENGTH

      public static final int DEF_MESSAGE_LENGTH
      Default length of message.
      See Also:
  • Constructor Details

    • Message

      protected Message()
      Dear JPA...
    • Message

      private Message(Message.Builder builder)
  • Method Details

    • getOccurred

      public Date getOccurred()
      Return the Date when the Message has occurred.
      Returns:
      Date when occurred.
    • getMessageNo

      public String getMessageNo()
      Get the messageNo.
      Returns:
      The messageNo.
    • getMessageText

      public String getMessageText()
      Get the message.
      Returns:
      The message.
    • equals

      public boolean equals(Object o)
      Use all fields.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Use all fields.
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Use all fields.
      Overrides:
      hashCode in class Object