Class Message

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.common.location.Message
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

@Entity public class Message extends org.ameba.integration.jpa.BaseEntity implements Serializable
A Message can be used to store useful information about errors or events.
Author:
Heiko Scherrer
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Message builder static inner class.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    Message number.
    private String
    Message description text.
    static final String
    String used to separate messageNo and messageText in toString.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Dear JPA...
     
    Message(int messageNo, String messageText)
    Create a new Message with message number and message text.
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    int
    Return the message number.
    Return the message text.
    int
    Create a new builder instance to create messages from.

    Methods inherited from class org.ameba.integration.jpa.BaseEntity

    getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • SEPARATOR

      public static final String SEPARATOR
      String used to separate messageNo and messageText in toString.
      See Also:
    • messageNo

      private int messageNo
      Message number.
    • messageText

      private String messageText
      Message description text.
  • Constructor Details

    • Message

      protected Message()
      Dear JPA...
    • Message

      public Message(int messageNo, String messageText)
      Create a new Message with message number and message text.
      Parameters:
      messageNo - The message number
      messageText - The message text
    • Message

      private Message(Message.Builder builder)
  • Method Details

    • newBuilder

      public static Message.Builder 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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object