Class MaterialBOMSubItem
Original entity name from the Odata EDM: MaterialBOMSubItemType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of MaterialBOMSubItem instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MaterialBOMSubItemSelectableSelector for all available fields of MaterialBOMSubItem.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterial field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterialCategory field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterialItemNodeNumber field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterialItemUnit field to query operations.static final MaterialBOMSubItemField<BigDecimal>Use with available fluent helpers to apply the BillOfMaterialSubItemQuantity field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterialSubItemText field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterialVariant field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BillOfMaterialVersion field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BOMItemInternalChangeCount field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BOMSubItemInstallationPoint field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the BOMSubItemNumberValue field to query operations.static final MaterialBOMSubItemField<Boolean>Use with available fluent helpers to apply the Delete_mc field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the HeaderChangeDocument field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the Material field to query operations.static final MaterialBOMSubItemField<String>Use with available fluent helpers to apply the Plant field to query operations.static final MaterialBOMSubItemOneToOneLink<MaterialBOM>Use with available fluent helpers to apply the to_BillOfMaterial navigation property to query operations.static final MaterialBOMSubItemOneToOneLink<MaterialBOMItem>Use with available fluent helpers to apply the to_BillOfMaterialItem navigation property to query operations.static final MaterialBOMSubItemField<Boolean>Use with available fluent helpers to apply the Update_mc field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionMaterialBOMSubItem(Boolean delete_mc, Boolean update_mc, String billOfMaterial, String billOfMaterialCategory, String billOfMaterialVariant, String billOfMaterialVersion, String billOfMaterialItemNodeNumber, String headerChangeDocument, String material, String plant, String bOMItemInternalChangeCount, String bOMSubItemNumberValue, String billOfMaterialItemUnit, BigDecimal billOfMaterialSubItemQuantity, String bOMSubItemInstallationPoint, String billOfMaterialSubItemText, MaterialBOMItem toBillOfMaterialItem, MaterialBOM toBillOfMaterial) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the MaterialBOM entity (one to one) associated with this entity.Fetches the MaterialBOMItem entity (one to one) associated with this entity.static <T,DomainT>
MaterialBOMSubItemField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> MaterialBOMSubItemField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 8(Key Field) Constraints: Not nullable, Maximum length: 1io.vavr.control.Option<MaterialBOM>Retrieval of associated MaterialBOM entity (one to one).io.vavr.control.Option<MaterialBOMItem>Retrieval of associated MaterialBOMItem entity (one to one).(Key Field) Constraints: Not nullable, Maximum length: 8Retrieval of associated MaterialBOMItem entity (one to one).Constraints: Not nullable, Maximum length: 3Retrieval of associated MaterialBOM entity (one to one).Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Maximum length: 40(Key Field) Constraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 8Constraints: Not nullable, Maximum length: 20(Key Field) Constraints: Not nullable, Maximum length: 4protected StringConstraints: noneprotected String(Key Field) Constraints: Not nullable, Maximum length: 12getKey()(Key Field) Constraints: Not nullable, Maximum length: 40getPlant()(Key Field) Constraints: Not nullable, Maximum length: 4getType()Constraints: noneinthashCode()voidsetBillOfMaterial(MaterialBOM value) Overwrites the associated MaterialBOM entity for the loaded navigation property to_BillOfMaterial.voidsetBillOfMaterial(String billOfMaterial) (Key Field) Constraints: Not nullable, Maximum length: 8voidsetBillOfMaterialCategory(String billOfMaterialCategory) (Key Field) Constraints: Not nullable, Maximum length: 1voidOverwrites the associated MaterialBOMItem entity for the loaded navigation property to_BillOfMaterialItem.voidsetBillOfMaterialItemNodeNumber(String billOfMaterialItemNodeNumber) (Key Field) Constraints: Not nullable, Maximum length: 8voidsetBillOfMaterialItemUnit(String billOfMaterialItemUnit) Constraints: Not nullable, Maximum length: 3voidsetBillOfMaterialSubItemQuantity(BigDecimal billOfMaterialSubItemQuantity) Constraints: Not nullable, Precision: 13, Scale: 3voidsetBillOfMaterialSubItemText(String billOfMaterialSubItemText) Constraints: Not nullable, Maximum length: 40voidsetBillOfMaterialVariant(String billOfMaterialVariant) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetBillOfMaterialVersion(String billOfMaterialVersion) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetBOMItemInternalChangeCount(String bOMItemInternalChangeCount) (Key Field) Constraints: Not nullable, Maximum length: 8voidsetBOMSubItemInstallationPoint(String bOMSubItemInstallationPoint) Constraints: Not nullable, Maximum length: 20voidsetBOMSubItemNumberValue(String bOMSubItemNumberValue) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetDelete_mc(Boolean delete_mc) Constraints: nonevoidsetHeaderChangeDocument(String headerChangeDocument) (Key Field) Constraints: Not nullable, Maximum length: 12voidsetMaterial(String material) (Key Field) Constraints: Not nullable, Maximum length: 40void(Key Field) Constraints: Not nullable, Maximum length: 4protected voidsetServicePathForFetch(String servicePathForFetch) voidsetUpdate_mc(Boolean update_mc) Constraints: nonetoString()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 MaterialBOMSubItem. -
DELETE_MC
Use with available fluent helpers to apply the Delete_mc field to query operations. -
UPDATE_MC
Use with available fluent helpers to apply the Update_mc field to query operations. -
BILL_OF_MATERIAL
Use with available fluent helpers to apply the BillOfMaterial field to query operations. -
BILL_OF_MATERIAL_CATEGORY
Use with available fluent helpers to apply the BillOfMaterialCategory field to query operations. -
BILL_OF_MATERIAL_VARIANT
Use with available fluent helpers to apply the BillOfMaterialVariant field to query operations. -
BILL_OF_MATERIAL_VERSION
Use with available fluent helpers to apply the BillOfMaterialVersion field to query operations. -
BILL_OF_MATERIAL_ITEM_NODE_NUMBER
Use with available fluent helpers to apply the BillOfMaterialItemNodeNumber field to query operations. -
HEADER_CHANGE_DOCUMENT
Use with available fluent helpers to apply the HeaderChangeDocument field to query operations. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
BOM_ITEM_INTERNAL_CHANGE_COUNT
Use with available fluent helpers to apply the BOMItemInternalChangeCount field to query operations. -
BOM_SUB_ITEM_NUMBER_VALUE
Use with available fluent helpers to apply the BOMSubItemNumberValue field to query operations. -
BILL_OF_MATERIAL_ITEM_UNIT
Use with available fluent helpers to apply the BillOfMaterialItemUnit field to query operations. -
BILL_OF_MATERIAL_SUB_ITEM_QUANTITY
Use with available fluent helpers to apply the BillOfMaterialSubItemQuantity field to query operations. -
BOM_SUB_ITEM_INSTALLATION_POINT
Use with available fluent helpers to apply the BOMSubItemInstallationPoint field to query operations. -
BILL_OF_MATERIAL_SUB_ITEM_TEXT
Use with available fluent helpers to apply the BillOfMaterialSubItemText field to query operations. -
TO_BILL_OF_MATERIAL_ITEM
Use with available fluent helpers to apply the to_BillOfMaterialItem navigation property to query operations. -
TO_BILL_OF_MATERIAL
Use with available fluent helpers to apply the to_BillOfMaterial navigation property to query operations.
-
-
Constructor Details
-
MaterialBOMSubItem
public MaterialBOMSubItem() -
MaterialBOMSubItem
public MaterialBOMSubItem(@Nullable Boolean delete_mc, @Nullable Boolean update_mc, @Nullable String billOfMaterial, @Nullable String billOfMaterialCategory, @Nullable String billOfMaterialVariant, @Nullable String billOfMaterialVersion, @Nullable String billOfMaterialItemNodeNumber, @Nullable String headerChangeDocument, @Nullable String material, @Nullable String plant, @Nullable String bOMItemInternalChangeCount, @Nullable String bOMSubItemNumberValue, @Nullable String billOfMaterialItemUnit, @Nullable BigDecimal billOfMaterialSubItemQuantity, @Nullable String bOMSubItemInstallationPoint, @Nullable String billOfMaterialSubItemText, @Nullable MaterialBOMItem toBillOfMaterialItem, @Nullable MaterialBOM toBillOfMaterial)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<MaterialBOMSubItem>
-
setDelete_mc
Constraints: noneOriginal property name from the Odata EDM: Delete_mc
- Parameters:
delete_mc- Dyn. Method Control
-
setUpdate_mc
Constraints: noneOriginal property name from the Odata EDM: Update_mc
- Parameters:
update_mc- Dyn. Method Control
-
setBillOfMaterial
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: BillOfMaterial
- Parameters:
billOfMaterial- Character field, 8 characters long
-
setBillOfMaterialCategory
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: BillOfMaterialCategory
- Parameters:
billOfMaterialCategory- BOM category
-
setBillOfMaterialVariant
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: BillOfMaterialVariant
- Parameters:
billOfMaterialVariant- Alternative BOM
-
setBillOfMaterialVersion
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BillOfMaterialVersion
- Parameters:
billOfMaterialVersion- BOM Version
-
setBillOfMaterialItemNodeNumber
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: BillOfMaterialItemNodeNumber
- Parameters:
billOfMaterialItemNodeNumber- BOM item node number
-
setHeaderChangeDocument
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: HeaderChangeDocument
- Parameters:
headerChangeDocument- Change Number
-
setMaterial
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material
- Parameters:
material- Material Number
-
setPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setBOMItemInternalChangeCount
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: BOMItemInternalChangeCount
- Parameters:
bOMItemInternalChangeCount- Internal counter
-
setBOMSubItemNumberValue
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BOMSubItemNumberValue
- Parameters:
bOMSubItemNumberValue- Undefined range (can be used for patch levels)
-
setBillOfMaterialItemUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BillOfMaterialItemUnit
- Parameters:
billOfMaterialItemUnit- Component Unit of Measure
-
setBillOfMaterialSubItemQuantity
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: BillOfMaterialSubItemQuantity
- Parameters:
billOfMaterialSubItemQuantity- Sub-item quantity
-
setBOMSubItemInstallationPoint
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: BOMSubItemInstallationPoint
- Parameters:
bOMSubItemInstallationPoint- Installation Point for Subitem
-
setBillOfMaterialSubItemText
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: BillOfMaterialSubItemText
- Parameters:
billOfMaterialSubItemText- BOM sub-item text
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<MaterialBOMSubItem>
-
getKey
- Overrides:
getKeyin classVdmObject<MaterialBOMSubItem>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<MaterialBOMSubItem>
-
fromMap
- Overrides:
fromMapin classVdmObject<MaterialBOMSubItem>
-
field
@Nonnull public static <T> MaterialBOMSubItemField<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> MaterialBOMSubItemField<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<MaterialBOMSubItem>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<MaterialBOMSubItem>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<MaterialBOMSubItem>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<MaterialBOMSubItem>
-
fetchBillOfMaterialItem
Fetches the MaterialBOMItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BillOfMaterialItem.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated MaterialBOMItem 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.
-
getBillOfMaterialItemOrFetch
Retrieval of associated MaterialBOMItem entity (one to one). This corresponds to the OData navigation property to_BillOfMaterialItem.If the navigation property to_BillOfMaterialItem of a queried MaterialBOMSubItem 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 MaterialBOMItem 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.
-
getBillOfMaterialItemIfPresent
Retrieval of associated MaterialBOMItem entity (one to one). This corresponds to the OData navigation property to_BillOfMaterialItem.If the navigation property for an entity MaterialBOMSubItem 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_BillOfMaterialItem is already loaded, the result
will contain the MaterialBOMItem entity. If not, an
Optionwith result stateemptyis returned.
-
setBillOfMaterialItem
Overwrites the associated MaterialBOMItem entity for the loaded navigation property to_BillOfMaterialItem.- Parameters:
value- New MaterialBOMItem entity.
-
fetchBillOfMaterial
Fetches the MaterialBOM entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BillOfMaterial.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated MaterialBOM 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.
-
getBillOfMaterialOrFetch
Retrieval of associated MaterialBOM entity (one to one). This corresponds to the OData navigation property to_BillOfMaterial.If the navigation property to_BillOfMaterial of a queried MaterialBOMSubItem 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 MaterialBOM 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.
-
getBillOfMaterialIfPresent
Retrieval of associated MaterialBOM entity (one to one). This corresponds to the OData navigation property to_BillOfMaterial.If the navigation property for an entity MaterialBOMSubItem 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_BillOfMaterial is already loaded, the result will
contain the MaterialBOM entity. If not, an
Optionwith result stateemptyis returned.
-
setBillOfMaterial
Overwrites the associated MaterialBOM entity for the loaded navigation property to_BillOfMaterial.- Parameters:
value- New MaterialBOM entity.
-
builder
-
getDelete_mc
Constraints: noneOriginal property name from the Odata EDM: Delete_mc
- Returns:
- Dyn. Method Control
-
getUpdate_mc
Constraints: noneOriginal property name from the Odata EDM: Update_mc
- Returns:
- Dyn. Method Control
-
getBillOfMaterial
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: BillOfMaterial
- Returns:
- Character field, 8 characters long
-
getBillOfMaterialCategory
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: BillOfMaterialCategory
- Returns:
- BOM category
-
getBillOfMaterialVariant
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: BillOfMaterialVariant
- Returns:
- Alternative BOM
-
getBillOfMaterialVersion
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BillOfMaterialVersion
- Returns:
- BOM Version
-
getBillOfMaterialItemNodeNumber
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: BillOfMaterialItemNodeNumber
- Returns:
- BOM item node number
-
getHeaderChangeDocument
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: HeaderChangeDocument
- Returns:
- Change Number
-
getMaterial
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material
- Returns:
- Material Number
-
getPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getBOMItemInternalChangeCount
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: BOMItemInternalChangeCount
- Returns:
- Internal counter
-
getBOMSubItemNumberValue
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BOMSubItemNumberValue
- Returns:
- Undefined range (can be used for patch levels)
-
getBillOfMaterialItemUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BillOfMaterialItemUnit
- Returns:
- Component Unit of Measure
-
getBillOfMaterialSubItemQuantity
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: BillOfMaterialSubItemQuantity
- Returns:
- Sub-item quantity
-
getBOMSubItemInstallationPoint
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: BOMSubItemInstallationPoint
- Returns:
- Installation Point for Subitem
-
getBillOfMaterialSubItemText
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: BillOfMaterialSubItemText
- Returns:
- BOM sub-item text
-
toString
- Overrides:
toStringin classVdmObject<MaterialBOMSubItem>
-
equals
- Overrides:
equalsin classVdmEntity<MaterialBOMSubItem>
-
canEqual
- Overrides:
canEqualin classVdmEntity<MaterialBOMSubItem>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<MaterialBOMSubItem>
-