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 Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theaccountIdrecord component.private final StringThe field for theerpCoderecord component.private final StringThe field for theidrecord component.private final BooleanThe field for theincomingActiverecord component.private final StringThe field for thelocationGroupNamerecord component.private final BooleanThe field for theoutgoingActiverecord component.private final @NotEmpty(groups=SetLocationEmpty.class) StringThe field for thepKeyrecord component.private final StringThe field for theplcCoderecord component.private final IntegerThe field for theplcStaterecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountIdrecord component.final booleanIndicates whether some other object is "equal to" this one.erpCode()Returns the value of theerpCoderecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theincomingActiverecord component.Returns the value of thelocationGroupNamerecord component.static LocationMOstatic LocationMOstatic LocationMOReturns the value of theoutgoingActiverecord component.@NotEmpty(groups=SetLocationEmpty.class) StringpKey()Returns the value of thepKeyrecord component.plcCode()Returns the value of theplcCoderecord component.plcState()Returns the value of theplcStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pKey
@NotEmpty(groups=SetLocationEmpty.class) private final @NotEmpty(groups=SetLocationEmpty.class) String pKeyThe field for thepKeyrecord component. -
accountId
The field for theaccountIdrecord component. -
id
The field for theidrecord component. -
plcCode
The field for theplcCoderecord component. -
erpCode
The field for theerpCoderecord component. -
locationGroupName
The field for thelocationGroupNamerecord component. -
incomingActive
The field for theincomingActiverecord component. -
outgoingActive
The field for theoutgoingActiverecord component. -
plcState
The field for theplcStaterecord 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 aLocationMOrecord class.- Parameters:
pKey- the value for thepKeyrecord componentaccountId- the value for theaccountIdrecord componentid- the value for theidrecord componentplcCode- the value for theplcCoderecord componenterpCode- the value for theerpCoderecord componentlocationGroupName- the value for thelocationGroupNamerecord componentincomingActive- the value for theincomingActiverecord componentoutgoingActive- the value for theoutgoingActiverecord componentplcState- the value for theplcStaterecord component
-
-
Method Details
-
ofPKey
-
ofId
-
ofErpCode
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
pKey
@NotEmpty(groups=SetLocationEmpty.class) public @NotEmpty(groups=SetLocationEmpty.class) String pKey()Returns the value of thepKeyrecord component.- Returns:
- the value of the
pKeyrecord component
-
accountId
Returns the value of theaccountIdrecord component.- Returns:
- the value of the
accountIdrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
plcCode
Returns the value of theplcCoderecord component.- Returns:
- the value of the
plcCoderecord component
-
erpCode
Returns the value of theerpCoderecord component.- Returns:
- the value of the
erpCoderecord component
-
locationGroupName
Returns the value of thelocationGroupNamerecord component.- Returns:
- the value of the
locationGroupNamerecord component
-
incomingActive
Returns the value of theincomingActiverecord component.- Returns:
- the value of the
incomingActiverecord component
-
outgoingActive
Returns the value of theoutgoingActiverecord component.- Returns:
- the value of the
outgoingActiverecord component
-
plcState
Returns the value of theplcStaterecord component.- Returns:
- the value of the
plcStaterecord component
-