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
Modifier and TypeFieldDescriptionprivate final String
The field for theaccountId
record component.private final String
The field for theerpCode
record component.private final String
The field for theid
record component.private final Boolean
The field for theincomingActive
record component.private final String
The field for thelocationGroupName
record component.private final Boolean
The field for theoutgoingActive
record component.private final @NotEmpty(groups=SetLocationEmpty.class) String
The field for thepKey
record component.private final String
The field for theplcCode
record component.private final Integer
The field for theplcState
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountId
record component.final boolean
Indicates whether some other object is "equal to" this one.erpCode()
Returns the value of theerpCode
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theincomingActive
record component.Returns the value of thelocationGroupName
record component.static LocationMO
static LocationMO
static LocationMO
Returns the value of theoutgoingActive
record component.@NotEmpty(groups=SetLocationEmpty.class) String
pKey()
Returns the value of thepKey
record component.plcCode()
Returns the value of theplcCode
record component.plcState()
Returns the value of theplcState
record component.final String
toString()
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 thepKey
record component. -
accountId
The field for theaccountId
record component. -
id
The field for theid
record component. -
plcCode
The field for theplcCode
record component. -
erpCode
The field for theerpCode
record component. -
locationGroupName
The field for thelocationGroupName
record component. -
incomingActive
The field for theincomingActive
record component. -
outgoingActive
The field for theoutgoingActive
record component. -
plcState
The field for theplcState
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 aLocationMO
record class.- Parameters:
pKey
- the value for thepKey
record componentaccountId
- the value for theaccountId
record componentid
- the value for theid
record componentplcCode
- the value for theplcCode
record componenterpCode
- the value for theerpCode
record componentlocationGroupName
- the value for thelocationGroupName
record componentincomingActive
- the value for theincomingActive
record componentoutgoingActive
- the value for theoutgoingActive
record componentplcState
- the value for theplcState
record 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 thepKey
record component.- Returns:
- the value of the
pKey
record component
-
accountId
Returns the value of theaccountId
record component.- Returns:
- the value of the
accountId
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
plcCode
Returns the value of theplcCode
record component.- Returns:
- the value of the
plcCode
record component
-
erpCode
Returns the value of theerpCode
record component.- Returns:
- the value of the
erpCode
record component
-
locationGroupName
Returns the value of thelocationGroupName
record component.- Returns:
- the value of the
locationGroupName
record component
-
incomingActive
Returns the value of theincomingActive
record component.- Returns:
- the value of the
incomingActive
record component
-
outgoingActive
Returns the value of theoutgoingActive
record component.- Returns:
- the value of the
outgoingActive
record component
-
plcState
Returns the value of theplcState
record component.- Returns:
- the value of the
plcState
record component
-