Record Class LocationMO

java.lang.Object
java.lang.Record
org.openwms.common.location.api.messages.LocationMO
All Implemented Interfaces:
Serializable

public record LocationMO(@NotEmpty(groups=SetLocationEmpty.class) String pKey, String accountId, String id, String plcCode, String erpCode, String locationGroupName, Boolean incomingActive, Boolean outgoingActive, Integer plcState) extends Record implements Serializable
A LocationMO is a Message Object (MO) uses as DTO between services that represents a Location.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • pKey

      @NotEmpty(groups=SetLocationEmpty.class) private final @NotEmpty(groups=SetLocationEmpty.class) String pKey
      The field for the pKey record component.
    • accountId

      private final String accountId
      The field for the accountId record component.
    • id

      private final String id
      The field for the id record component.
    • plcCode

      private final String plcCode
      The field for the plcCode record component.
    • erpCode

      private final String erpCode
      The field for the erpCode record component.
    • locationGroupName

      private final String locationGroupName
      The field for the locationGroupName record component.
    • incomingActive

      private final Boolean incomingActive
      The field for the incomingActive record component.
    • outgoingActive

      private final Boolean outgoingActive
      The field for the outgoingActive record component.
    • plcState

      private final Integer plcState
      The field for the plcState record component.
  • Constructor Details

    • LocationMO

      public LocationMO(@NotEmpty(groups=SetLocationEmpty.class) @NotEmpty(groups=SetLocationEmpty.class) String pKey, String accountId, String id, String plcCode, String erpCode, String locationGroupName, Boolean incomingActive, Boolean outgoingActive, Integer plcState)
      Creates an instance of a LocationMO record class.
      Parameters:
      pKey - the value for the pKey record component
      accountId - the value for the accountId record component
      id - the value for the id record component
      plcCode - the value for the plcCode record component
      erpCode - the value for the erpCode record component
      locationGroupName - the value for the locationGroupName record component
      incomingActive - the value for the incomingActive record component
      outgoingActive - the value for the outgoingActive record component
      plcState - the value for the plcState record component
  • Method Details

    • ofPKey

      public static LocationMO ofPKey(String pKey)
    • ofId

      public static LocationMO ofId(String id)
    • ofErpCode

      public static LocationMO ofErpCode(String erpCode)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pKey

      @NotEmpty(groups=SetLocationEmpty.class) public @NotEmpty(groups=SetLocationEmpty.class) String pKey()
      Returns the value of the pKey record component.
      Returns:
      the value of the pKey record component
    • accountId

      public String accountId()
      Returns the value of the accountId record component.
      Returns:
      the value of the accountId record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • plcCode

      public String plcCode()
      Returns the value of the plcCode record component.
      Returns:
      the value of the plcCode record component
    • erpCode

      public String erpCode()
      Returns the value of the erpCode record component.
      Returns:
      the value of the erpCode record component
    • locationGroupName

      public String locationGroupName()
      Returns the value of the locationGroupName record component.
      Returns:
      the value of the locationGroupName record component
    • incomingActive

      public Boolean incomingActive()
      Returns the value of the incomingActive record component.
      Returns:
      the value of the incomingActive record component
    • outgoingActive

      public Boolean outgoingActive()
      Returns the value of the outgoingActive record component.
      Returns:
      the value of the outgoingActive record component
    • plcState

      public Integer plcState()
      Returns the value of the plcState record component.
      Returns:
      the value of the plcState record component