Class HandlingUnitItem
Original entity name from the Odata EDM: HandlingUnitItemType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of HandlingUnitItem instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HandlingUnitItemSelectableSelector for all available fields of HandlingUnitItem.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the HandlingUnitAltUnitOfMeasure field to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the HandlingUnitExternalID field to query operations.static final HandlingUnitItemField<LocalDateTime>Use with available fluent helpers to apply the HandlingUnitGoodsReceiptDate field to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the HandlingUnitItem field to query operations.static final HandlingUnitItemField<BigDecimal>Use with available fluent helpers to apply the HandlingUnitQuantity field to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the HandlingUnitQuantityUnit field to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the HandlingUnitRefDocumentItem field to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the HandlingUnitReferenceDocument field to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the Material field to query operations.static final HandlingUnitItemField<LocalDateTime>Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations.static final HandlingUnitItemField<UUID>Use with available fluent helpers to apply the StockItemUUID field to query operations.static final HandlingUnitItemOneToOneLink<HandlingUnit>Use with available fluent helpers to apply the to_HandlingUnit navigation property to query operations.static final HandlingUnitItemField<String>Use with available fluent helpers to apply the Warehouse field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionHandlingUnitItem(String handlingUnitExternalID, String warehouse, UUID stockItemUUID, String handlingUnitItem, String handlingUnitReferenceDocument, String handlingUnitRefDocumentItem, BigDecimal handlingUnitQuantity, String handlingUnitQuantityUnit, String handlingUnitAltUnitOfMeasure, String material, LocalDateTime shelfLifeExpirationDate, LocalDateTime handlingUnitGoodsReceiptDate, HandlingUnit toHandlingUnit) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the HandlingUnit entity (one to one) associated with this entity.static <T,DomainT>
HandlingUnitItemField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> HandlingUnitItemField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected StringConstraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 20Constraints: Not nullable, Precision: 0io.vavr.control.Option<HandlingUnit>Retrieval of associated HandlingUnit entity (one to one).Constraints: Not nullable, Maximum length: 6Retrieval of associated HandlingUnit entity (one to one).Constraints: Not nullable, Precision: 15, Scale: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 10getKey()Constraints: Not nullable, Maximum length: 18Constraints: Not nullable, Precision: 0(Key Field) Constraints: Not nullablegetType()(Key Field) Constraints: Not nullable, Maximum length: 4inthashCode()voidsetHandlingUnit(HandlingUnit value) Overwrites the associated HandlingUnit entity for the loaded navigation property to_HandlingUnit.voidsetHandlingUnitAltUnitOfMeasure(String handlingUnitAltUnitOfMeasure) Constraints: Not nullable, Maximum length: 3voidsetHandlingUnitExternalID(String handlingUnitExternalID) (Key Field) Constraints: Not nullable, Maximum length: 20voidsetHandlingUnitGoodsReceiptDate(LocalDateTime handlingUnitGoodsReceiptDate) Constraints: Not nullable, Precision: 0voidsetHandlingUnitItem(String handlingUnitItem) Constraints: Not nullable, Maximum length: 6voidsetHandlingUnitQuantity(BigDecimal handlingUnitQuantity) Constraints: Not nullable, Precision: 15, Scale: 3voidsetHandlingUnitQuantityUnit(String handlingUnitQuantityUnit) Constraints: Not nullable, Maximum length: 3voidsetHandlingUnitRefDocumentItem(String handlingUnitRefDocumentItem) Constraints: Not nullable, Maximum length: 10voidsetHandlingUnitReferenceDocument(String handlingUnitReferenceDocument) Constraints: Not nullable, Maximum length: 10voidsetMaterial(String material) Constraints: Not nullable, Maximum length: 18protected voidsetServicePathForFetch(String servicePathForFetch) voidsetShelfLifeExpirationDate(LocalDateTime shelfLifeExpirationDate) Constraints: Not nullable, Precision: 0voidsetStockItemUUID(UUID stockItemUUID) (Key Field) Constraints: Not nullablevoidsetWarehouse(String warehouse) (Key Field) Constraints: Not nullable, Maximum length: 4toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of HandlingUnitItem. -
HANDLING_UNIT_EXTERNAL_ID
Use with available fluent helpers to apply the HandlingUnitExternalID field to query operations. -
WAREHOUSE
Use with available fluent helpers to apply the Warehouse field to query operations. -
STOCK_ITEM_UUID
Use with available fluent helpers to apply the StockItemUUID field to query operations. -
HANDLING_UNIT_ITEM
Use with available fluent helpers to apply the HandlingUnitItem field to query operations. -
HANDLING_UNIT_REFERENCE_DOCUMENT
Use with available fluent helpers to apply the HandlingUnitReferenceDocument field to query operations. -
HANDLING_UNIT_REF_DOCUMENT_ITEM
Use with available fluent helpers to apply the HandlingUnitRefDocumentItem field to query operations. -
HANDLING_UNIT_QUANTITY
Use with available fluent helpers to apply the HandlingUnitQuantity field to query operations. -
HANDLING_UNIT_QUANTITY_UNIT
Use with available fluent helpers to apply the HandlingUnitQuantityUnit field to query operations. -
HANDLING_UNIT_ALT_UNIT_OF_MEASURE
Use with available fluent helpers to apply the HandlingUnitAltUnitOfMeasure field to query operations. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
SHELF_LIFE_EXPIRATION_DATE
Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations. -
HANDLING_UNIT_GOODS_RECEIPT_DATE
Use with available fluent helpers to apply the HandlingUnitGoodsReceiptDate field to query operations. -
TO_HANDLING_UNIT
Use with available fluent helpers to apply the to_HandlingUnit navigation property to query operations.
-
-
Constructor Details
-
HandlingUnitItem
public HandlingUnitItem() -
HandlingUnitItem
public HandlingUnitItem(@Nullable String handlingUnitExternalID, @Nullable String warehouse, @Nullable UUID stockItemUUID, @Nullable String handlingUnitItem, @Nullable String handlingUnitReferenceDocument, @Nullable String handlingUnitRefDocumentItem, @Nullable BigDecimal handlingUnitQuantity, @Nullable String handlingUnitQuantityUnit, @Nullable String handlingUnitAltUnitOfMeasure, @Nullable String material, @Nullable LocalDateTime shelfLifeExpirationDate, @Nullable LocalDateTime handlingUnitGoodsReceiptDate, @Nullable HandlingUnit toHandlingUnit)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<HandlingUnitItem>
-
setHandlingUnitExternalID
(Key Field) Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: HandlingUnitExternalID
- Parameters:
handlingUnitExternalID- External Handling Unit Identification
-
setWarehouse
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Warehouse
- Parameters:
warehouse- Warehouse Number/Warehouse Complex
-
setStockItemUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: StockItemUUID
- Parameters:
stockItemUUID- GUID Stock Item
-
setHandlingUnitItem
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: HandlingUnitItem
- Parameters:
handlingUnitItem- Handling Unit Item
-
setHandlingUnitReferenceDocument
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: HandlingUnitReferenceDocument
- Parameters:
handlingUnitReferenceDocument- Delivery
-
setHandlingUnitRefDocumentItem
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: HandlingUnitRefDocumentItem
- Parameters:
handlingUnitRefDocumentItem- The handlingUnitRefDocumentItem to set.
-
setHandlingUnitQuantity
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: HandlingUnitQuantity
- Parameters:
handlingUnitQuantity- Base Quantity Packed in the Handling Unit Item
-
setHandlingUnitQuantityUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: HandlingUnitQuantityUnit
- Parameters:
handlingUnitQuantityUnit- Base Unit of Measure of the Quantity to be Packed (VEMNG)
-
setHandlingUnitAltUnitOfMeasure
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure
- Parameters:
handlingUnitAltUnitOfMeasure- Alternative unit of measure for stock unit of measure
-
setMaterial
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Parameters:
material- Material Number
-
setShelfLifeExpirationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ShelfLifeExpirationDate
- Parameters:
shelfLifeExpirationDate- Shelf Life Expiration or Best-Before Date
-
setHandlingUnitGoodsReceiptDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: HandlingUnitGoodsReceiptDate
- Parameters:
handlingUnitGoodsReceiptDate- Date of Goods Receipt
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<HandlingUnitItem>
-
getKey
- Overrides:
getKeyin classVdmObject<HandlingUnitItem>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<HandlingUnitItem>
-
fromMap
- Overrides:
fromMapin classVdmObject<HandlingUnitItem>
-
field
@Nonnull public static <T> HandlingUnitItemField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
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.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> HandlingUnitItemField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<HandlingUnitItem>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<HandlingUnitItem>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<HandlingUnitItem>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<HandlingUnitItem>
-
fetchHandlingUnit
Fetches the HandlingUnit entity (one to one) associated with this entity. This corresponds to the OData navigation property to_HandlingUnit.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated HandlingUnit entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getHandlingUnitOrFetch
Retrieval of associated HandlingUnit entity (one to one). This corresponds to the OData navigation property to_HandlingUnit.If the navigation property to_HandlingUnit of a queried HandlingUnitItem 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.
- Returns:
- List of associated HandlingUnit entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getHandlingUnitIfPresent
Retrieval of associated HandlingUnit entity (one to one). This corresponds to the OData navigation property to_HandlingUnit.If the navigation property for an entity HandlingUnitItem has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_HandlingUnit is already loaded, the result will
contain the HandlingUnit entity. If not, an
Optionwith result stateemptyis returned.
-
setHandlingUnit
Overwrites the associated HandlingUnit entity for the loaded navigation property to_HandlingUnit.- Parameters:
value- New HandlingUnit entity.
-
builder
-
getHandlingUnitExternalID
(Key Field) Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: HandlingUnitExternalID
- Returns:
- External Handling Unit Identification
-
getWarehouse
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Warehouse
- Returns:
- Warehouse Number/Warehouse Complex
-
getStockItemUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: StockItemUUID
- Returns:
- GUID Stock Item
-
getHandlingUnitItem
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: HandlingUnitItem
- Returns:
- Handling Unit Item
-
getHandlingUnitReferenceDocument
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: HandlingUnitReferenceDocument
- Returns:
- Delivery
-
getHandlingUnitRefDocumentItem
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: HandlingUnitRefDocumentItem
- Returns:
- The handlingUnitRefDocumentItem contained in this entity.
-
getHandlingUnitQuantity
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: HandlingUnitQuantity
- Returns:
- Base Quantity Packed in the Handling Unit Item
-
getHandlingUnitQuantityUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: HandlingUnitQuantityUnit
- Returns:
- Base Unit of Measure of the Quantity to be Packed (VEMNG)
-
getHandlingUnitAltUnitOfMeasure
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure
- Returns:
- Alternative unit of measure for stock unit of measure
-
getMaterial
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Returns:
- Material Number
-
getShelfLifeExpirationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ShelfLifeExpirationDate
- Returns:
- Shelf Life Expiration or Best-Before Date
-
getHandlingUnitGoodsReceiptDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: HandlingUnitGoodsReceiptDate
- Returns:
- Date of Goods Receipt
-
toString
- Overrides:
toStringin classVdmObject<HandlingUnitItem>
-
equals
- Overrides:
equalsin classVdmEntity<HandlingUnitItem>
-
canEqual
- Overrides:
canEqualin classVdmEntity<HandlingUnitItem>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<HandlingUnitItem>
-