public class PackingInstructionComponent extends VdmEntity<PackingInstructionComponent>
Original entity name from the Odata EDM: PackingInstructionComponentType
Modifier and Type | Class and Description |
---|---|
static class |
PackingInstructionComponent.PackingInstructionComponentBuilder
Helper class to allow for fluent creation of PackingInstructionComponent instances.
|
Modifier and Type | Field and Description |
---|---|
static PackingInstructionComponentSelectable |
ALL_FIELDS
Selector for all available fields of PackingInstructionComponent.
|
static PackingInstructionComponentField<String> |
BASE_UNITOF_MEASURE
Use with available fluent helpers to apply the BaseUnitofMeasure field to query operations.
|
static PackingInstructionComponentField<Boolean> |
BATCH_MIX_IS_ALLOWED
Use with available fluent helpers to apply the BatchMixIsAllowed field to query operations.
|
static PackingInstructionComponentField<UUID> |
ITEM_PACKING_INSTRUCTION_SYST_UUID
Use with available fluent helpers to apply the ItemPackingInstructionSystUUID field to query operations.
|
static PackingInstructionComponentField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static PackingInstructionComponentField<String> |
MATERIAL_MIX_IS_ALLOWED
Use with available fluent helpers to apply the MaterialMixIsAllowed field to query operations.
|
static PackingInstructionComponentField<String> |
PACKING_INSTRUCTION_ITEM
Use with available fluent helpers to apply the PackingInstructionItem field to query operations.
|
static PackingInstructionComponentField<String> |
PACKING_INSTRUCTION_ITEM_CATEGORY
Use with available fluent helpers to apply the PackingInstructionItemCategory field to query operations.
|
static PackingInstructionComponentField<Boolean> |
PACKING_INSTRUCTION_ITEM_IS_DEL
Use with available fluent helpers to apply the PackingInstructionItemIsDel field to query operations.
|
static PackingInstructionComponentField<BigDecimal> |
PACKING_INSTRUCTION_ITEM_MIN_QTY
Use with available fluent helpers to apply the PackingInstructionItemMinQty field to query operations.
|
static PackingInstructionComponentField<BigDecimal> |
PACKING_INSTRUCTION_ITEM_RND_QTY
Use with available fluent helpers to apply the PackingInstructionItemRndQty field to query operations.
|
static PackingInstructionComponentField<UUID> |
PACKING_INSTRUCTION_ITEM_SYST_UUID
Use with available fluent helpers to apply the PackingInstructionItemSystUUID field to query operations.
|
static PackingInstructionComponentField<BigDecimal> |
PACKING_INSTRUCTION_ITM_TARGET_QTY
Use with available fluent helpers to apply the PackingInstructionItmTargetQty field to query operations.
|
static PackingInstructionComponentField<UUID> |
PACKING_INSTRUCTION_SYSTEM_UUID
Use with available fluent helpers to apply the PackingInstructionSystemUUID field to query operations.
|
static PackingInstructionComponentOneToOneLink<PackingInstructionHeader> |
TO_PACKING_INSTRUCTION_HEADER
Use with available fluent helpers to apply the to_PackingInstructionHeader navigation property to query
operations.
|
static PackingInstructionComponentField<String> |
UNIT_OF_MEASURE
Use with available fluent helpers to apply the UnitOfMeasure field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
PackingInstructionComponent() |
PackingInstructionComponent(UUID packingInstructionItemSystUUID,
UUID packingInstructionSystemUUID,
String packingInstructionItem,
String packingInstructionItemCategory,
String material,
UUID itemPackingInstructionSystUUID,
BigDecimal packingInstructionItmTargetQty,
BigDecimal packingInstructionItemMinQty,
BigDecimal packingInstructionItemRndQty,
String baseUnitofMeasure,
String unitOfMeasure,
String materialMixIsAllowed,
Boolean batchMixIsAllowed,
Boolean packingInstructionItemIsDel,
PackingInstructionHeader toPackingInstructionHeader) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static PackingInstructionComponent.PackingInstructionComponentBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
PackingInstructionHeader |
fetchPackingInstructionHeader()
Fetches the PackingInstructionHeader entity (one to one) associated with this entity.
|
static <T> PackingInstructionComponentField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getBaseUnitofMeasure()
Constraints: Not nullable, Maximum length: 3
|
Boolean |
getBatchMixIsAllowed()
Constraints: none
|
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
UUID |
getItemPackingInstructionSystUUID()
Constraints: none
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
Constraints: Not nullable, Maximum length: 40
|
String |
getMaterialMixIsAllowed()
Constraints: Not nullable, Maximum length: 1
|
io.vavr.control.Option<PackingInstructionHeader> |
getPackingInstructionHeaderIfPresent()
Retrieval of associated PackingInstructionHeader entity (one to one).
|
PackingInstructionHeader |
getPackingInstructionHeaderOrFetch()
Retrieval of associated PackingInstructionHeader entity (one to one).
|
String |
getPackingInstructionItem()
Constraints: Not nullable, Maximum length: 6
|
String |
getPackingInstructionItemCategory()
Constraints: Not nullable, Maximum length: 1
|
Boolean |
getPackingInstructionItemIsDel()
Constraints: none
|
BigDecimal |
getPackingInstructionItemMinQty()
Constraints: Not nullable, Precision: 15, Scale: 3
|
BigDecimal |
getPackingInstructionItemRndQty()
Constraints: Not nullable, Precision: 15, Scale: 3
|
UUID |
getPackingInstructionItemSystUUID()
(Key Field) Constraints: Not nullable
|
BigDecimal |
getPackingInstructionItmTargetQty()
Constraints: Not nullable, Precision: 15, Scale: 3
|
UUID |
getPackingInstructionSystemUUID()
Constraints: none
|
Class<PackingInstructionComponent> |
getType() |
String |
getUnitOfMeasure()
Constraints: Not nullable, Maximum length: 3
|
int |
hashCode() |
void |
setBaseUnitofMeasure(String baseUnitofMeasure)
Constraints: Not nullable, Maximum length: 3
|
void |
setBatchMixIsAllowed(Boolean batchMixIsAllowed)
Constraints: none
|
void |
setItemPackingInstructionSystUUID(UUID itemPackingInstructionSystUUID)
Constraints: none
|
void |
setMaterial(String material)
Constraints: Not nullable, Maximum length: 40
|
void |
setMaterialMixIsAllowed(String materialMixIsAllowed)
Constraints: Not nullable, Maximum length: 1
|
void |
setPackingInstructionHeader(PackingInstructionHeader value)
Overwrites the associated PackingInstructionHeader entity for the loaded navigation property
to_PackingInstructionHeader.
|
void |
setPackingInstructionItem(String packingInstructionItem)
Constraints: Not nullable, Maximum length: 6
|
void |
setPackingInstructionItemCategory(String packingInstructionItemCategory)
Constraints: Not nullable, Maximum length: 1
|
void |
setPackingInstructionItemIsDel(Boolean packingInstructionItemIsDel)
Constraints: none
|
void |
setPackingInstructionItemMinQty(BigDecimal packingInstructionItemMinQty)
Constraints: Not nullable, Precision: 15, Scale: 3
|
void |
setPackingInstructionItemRndQty(BigDecimal packingInstructionItemRndQty)
Constraints: Not nullable, Precision: 15, Scale: 3
|
void |
setPackingInstructionItemSystUUID(UUID packingInstructionItemSystUUID)
(Key Field) Constraints: Not nullable
|
void |
setPackingInstructionItmTargetQty(BigDecimal packingInstructionItmTargetQty)
Constraints: Not nullable, Precision: 15, Scale: 3
|
void |
setPackingInstructionSystemUUID(UUID packingInstructionSystemUUID)
Constraints: none
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setUnitOfMeasure(String unitOfMeasure)
Constraints: Not nullable, Maximum length: 3
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final PackingInstructionComponentSelectable ALL_FIELDS
public static final PackingInstructionComponentField<UUID> PACKING_INSTRUCTION_ITEM_SYST_UUID
public static final PackingInstructionComponentField<UUID> PACKING_INSTRUCTION_SYSTEM_UUID
public static final PackingInstructionComponentField<String> PACKING_INSTRUCTION_ITEM
public static final PackingInstructionComponentField<String> PACKING_INSTRUCTION_ITEM_CATEGORY
public static final PackingInstructionComponentField<String> MATERIAL
public static final PackingInstructionComponentField<UUID> ITEM_PACKING_INSTRUCTION_SYST_UUID
public static final PackingInstructionComponentField<BigDecimal> PACKING_INSTRUCTION_ITM_TARGET_QTY
public static final PackingInstructionComponentField<BigDecimal> PACKING_INSTRUCTION_ITEM_MIN_QTY
public static final PackingInstructionComponentField<BigDecimal> PACKING_INSTRUCTION_ITEM_RND_QTY
public static final PackingInstructionComponentField<String> BASE_UNITOF_MEASURE
public static final PackingInstructionComponentField<String> UNIT_OF_MEASURE
public static final PackingInstructionComponentField<String> MATERIAL_MIX_IS_ALLOWED
public static final PackingInstructionComponentField<Boolean> BATCH_MIX_IS_ALLOWED
public static final PackingInstructionComponentField<Boolean> PACKING_INSTRUCTION_ITEM_IS_DEL
public static final PackingInstructionComponentOneToOneLink<PackingInstructionHeader> TO_PACKING_INSTRUCTION_HEADER
public PackingInstructionComponent()
public PackingInstructionComponent(@Nullable UUID packingInstructionItemSystUUID, @Nullable UUID packingInstructionSystemUUID, @Nullable String packingInstructionItem, @Nullable String packingInstructionItemCategory, @Nullable String material, @Nullable UUID itemPackingInstructionSystUUID, @Nullable BigDecimal packingInstructionItmTargetQty, @Nullable BigDecimal packingInstructionItemMinQty, @Nullable BigDecimal packingInstructionItemRndQty, @Nullable String baseUnitofMeasure, @Nullable String unitOfMeasure, @Nullable String materialMixIsAllowed, @Nullable Boolean batchMixIsAllowed, @Nullable Boolean packingInstructionItemIsDel, @Nullable PackingInstructionHeader toPackingInstructionHeader)
@Nonnull public Class<PackingInstructionComponent> getType()
getType
in class VdmObject<PackingInstructionComponent>
public void setPackingInstructionItemSystUUID(@Nullable UUID packingInstructionItemSystUUID)
Original property name from the Odata EDM: PackingInstructionItemSystUUID
packingInstructionItemSystUUID
- Packing Instruction Componentpublic void setPackingInstructionSystemUUID(@Nullable UUID packingInstructionSystemUUID)
Original property name from the Odata EDM: PackingInstructionSystemUUID
packingInstructionSystemUUID
- Packing Instruction Numberpublic void setPackingInstructionItem(@Nullable String packingInstructionItem)
Original property name from the Odata EDM: PackingInstructionItem
packingInstructionItem
- Item numberpublic void setPackingInstructionItemCategory(@Nullable String packingInstructionItemCategory)
Original property name from the Odata EDM: PackingInstructionItemCategory
packingInstructionItemCategory
- Packing object item categorypublic void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Material number of mat. to be packed or of a pack.materialpublic void setItemPackingInstructionSystUUID(@Nullable UUID itemPackingInstructionSystUUID)
Original property name from the Odata EDM: ItemPackingInstructionSystUUID
itemPackingInstructionSystUUID
- Unique internal packing object numberpublic void setPackingInstructionItmTargetQty(@Nullable BigDecimal packingInstructionItmTargetQty)
Original property name from the Odata EDM: PackingInstructionItmTargetQty
packingInstructionItmTargetQty
- Target quantitypublic void setPackingInstructionItemMinQty(@Nullable BigDecimal packingInstructionItemMinQty)
Original property name from the Odata EDM: PackingInstructionItemMinQty
packingInstructionItemMinQty
- Minimum quantitypublic void setPackingInstructionItemRndQty(@Nullable BigDecimal packingInstructionItemRndQty)
Original property name from the Odata EDM: PackingInstructionItemRndQty
packingInstructionItemRndQty
- Rounding qtypublic void setBaseUnitofMeasure(@Nullable String baseUnitofMeasure)
Original property name from the Odata EDM: BaseUnitofMeasure
baseUnitofMeasure
- Base Unit of Measurepublic void setUnitOfMeasure(@Nullable String unitOfMeasure)
Original property name from the Odata EDM: UnitOfMeasure
unitOfMeasure
- Unit of measurepublic void setMaterialMixIsAllowed(@Nullable String materialMixIsAllowed)
Original property name from the Odata EDM: MaterialMixIsAllowed
materialMixIsAllowed
- Mixed Materials Allowed in Packing for Reference Materialpublic void setBatchMixIsAllowed(@Nullable Boolean batchMixIsAllowed)
Original property name from the Odata EDM: BatchMixIsAllowed
batchMixIsAllowed
- Indicator Batch Mix Allowedpublic void setPackingInstructionItemIsDel(@Nullable Boolean packingInstructionItemIsDel)
Original property name from the Odata EDM: PackingInstructionItemIsDel
packingInstructionItemIsDel
- Deletion Indicatorprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<PackingInstructionComponent>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<PackingInstructionComponent>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<PackingInstructionComponent>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<PackingInstructionComponent>
@Nonnull public static <T> PackingInstructionComponentField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.fieldName
- The name of the extension field as returned by the OData service.fieldType
- The Java type to use for the extension field when performing value comparisons.@Nonnull public static <T,DomainT> PackingInstructionComponentField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<PackingInstructionComponent>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<PackingInstructionComponent>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<PackingInstructionComponent>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<PackingInstructionComponent>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<PackingInstructionComponent>
@Nullable public PackingInstructionHeader fetchPackingInstructionHeader() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not
associated.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and
therefore has no ERP configuration context assigned. An entity is managed if it has been either
retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or
UPDATE call.@Nullable public PackingInstructionHeader getPackingInstructionHeaderOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_PackingInstructionHeader of a queried PackingInstructionComponent is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and
therefore has no ERP configuration context assigned. An entity is managed if it has been either
retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or
UPDATE call.@Nonnull public io.vavr.control.Option<PackingInstructionHeader> getPackingInstructionHeaderIfPresent()
If the navigation property for an entity PackingInstructionComponent has not been resolved yet, this
method will not query further information. Instead its Option
result state will be
empty
.
Option
with
result state empty
is returned.public void setPackingInstructionHeader(PackingInstructionHeader value)
value
- New PackingInstructionHeader entity.@Nonnull public static PackingInstructionComponent.PackingInstructionComponentBuilder builder()
@Nullable public UUID getPackingInstructionItemSystUUID()
Original property name from the Odata EDM: PackingInstructionItemSystUUID
@Nullable public UUID getPackingInstructionSystemUUID()
Original property name from the Odata EDM: PackingInstructionSystemUUID
@Nullable public String getPackingInstructionItem()
Original property name from the Odata EDM: PackingInstructionItem
@Nullable public String getPackingInstructionItemCategory()
Original property name from the Odata EDM: PackingInstructionItemCategory
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public UUID getItemPackingInstructionSystUUID()
Original property name from the Odata EDM: ItemPackingInstructionSystUUID
@Nullable public BigDecimal getPackingInstructionItmTargetQty()
Original property name from the Odata EDM: PackingInstructionItmTargetQty
@Nullable public BigDecimal getPackingInstructionItemMinQty()
Original property name from the Odata EDM: PackingInstructionItemMinQty
@Nullable public BigDecimal getPackingInstructionItemRndQty()
Original property name from the Odata EDM: PackingInstructionItemRndQty
@Nullable public String getBaseUnitofMeasure()
Original property name from the Odata EDM: BaseUnitofMeasure
@Nullable public String getUnitOfMeasure()
Original property name from the Odata EDM: UnitOfMeasure
@Nullable public String getMaterialMixIsAllowed()
Original property name from the Odata EDM: MaterialMixIsAllowed
@Nullable public Boolean getBatchMixIsAllowed()
Original property name from the Odata EDM: BatchMixIsAllowed
@Nullable public Boolean getPackingInstructionItemIsDel()
Original property name from the Odata EDM: PackingInstructionItemIsDel
@Nonnull public String toString()
toString
in class VdmObject<PackingInstructionComponent>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<PackingInstructionComponent>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<PackingInstructionComponent>
public int hashCode()
hashCode
in class VdmObject<PackingInstructionComponent>
Copyright © 2021 SAP SE. All rights reserved.