java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<POSubcontractingComponent>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.purchaseorder.POSubcontractingComponent

public class POSubcontractingComponent extends VdmEntity<POSubcontractingComponent>
Subcontracting Components

Original entity name from the Odata EDM: A_POSubcontractingComponentType

  • Field Details

  • Constructor Details

    • POSubcontractingComponent

      public POSubcontractingComponent()
    • POSubcontractingComponent

      public POSubcontractingComponent(@Nullable String purchaseOrder, @Nullable String purchaseOrderItem, @Nullable String scheduleLine, @Nullable String reservationItem, @Nullable String recordType, @Nullable String material, @Nullable String bOMItemDescription, @Nullable BigDecimal requiredQuantity, @Nullable String baseUnit, @Nullable LocalDateTime requirementDate, @Nullable BigDecimal quantityInEntryUnit, @Nullable String entryUnit, @Nullable BigDecimal withdrawnQuantity, @Nullable String plant, @Nullable String batch)
  • Method Details

    • getType

      @Nonnull public Class<POSubcontractingComponent> getType()
      Specified by:
      getType in class VdmObject<POSubcontractingComponent>
    • setPurchaseOrder

      public void setPurchaseOrder(@Nullable String purchaseOrder)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOrder

      Parameters:
      purchaseOrder - Purchasing Document
    • setPurchaseOrderItem

      public void setPurchaseOrderItem(@Nullable String purchaseOrderItem)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOrderItem

      Parameters:
      purchaseOrderItem - Purchasing Document Item
    • setScheduleLine

      public void setScheduleLine(@Nullable String scheduleLine)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ScheduleLine

      Parameters:
      scheduleLine - Delivery Schedule Line Counter
    • setReservationItem

      public void setReservationItem(@Nullable String reservationItem)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ReservationItem

      Parameters:
      reservationItem - Reservation Item
    • setRecordType

      public void setRecordType(@Nullable String recordType)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: RecordType

      Parameters:
      recordType - Reservation Record Type
    • setMaterial

      public void setMaterial(@Nullable String material)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setBOMItemDescription

      public void setBOMItemDescription(@Nullable String bOMItemDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BOMItemDescription

      Parameters:
      bOMItemDescription - BOM Item Text
    • setRequiredQuantity

      public void setRequiredQuantity(@Nullable BigDecimal requiredQuantity)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: RequiredQuantity

      Parameters:
      requiredQuantity - Requirement Quantity
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • setRequirementDate

      public void setRequirementDate(@Nullable LocalDateTime requirementDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: RequirementDate

      Parameters:
      requirementDate - Material Component Requirement Date
    • setQuantityInEntryUnit

      public void setQuantityInEntryUnit(@Nullable BigDecimal quantityInEntryUnit)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: QuantityInEntryUnit

      Parameters:
      quantityInEntryUnit - Quantity in Unit of Entry
    • setEntryUnit

      public void setEntryUnit(@Nullable String entryUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: EntryUnit

      Parameters:
      entryUnit - Unit of entry
    • setWithdrawnQuantity

      public void setWithdrawnQuantity(@Nullable BigDecimal withdrawnQuantity)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: WithdrawnQuantity

      Parameters:
      withdrawnQuantity - Withdrawn Quantity
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setBatch

      public void setBatch(@Nullable String batch)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Batch

      Parameters:
      batch - Batch Number
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<POSubcontractingComponent>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<POSubcontractingComponent>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<POSubcontractingComponent>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<POSubcontractingComponent>
    • field

      @Nonnull public static <T> POSubcontractingComponentField<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> POSubcontractingComponentField<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 field
      fieldName - 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

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<POSubcontractingComponent>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<POSubcontractingComponent>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<POSubcontractingComponent>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<POSubcontractingComponent>
    • builder

    • getPurchaseOrder

      @Nullable public String getPurchaseOrder()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOrder

      Returns:
      Purchasing Document
    • getPurchaseOrderItem

      @Nullable public String getPurchaseOrderItem()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOrderItem

      Returns:
      Purchasing Document Item
    • getScheduleLine

      @Nullable public String getScheduleLine()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ScheduleLine

      Returns:
      Delivery Schedule Line Counter
    • getReservationItem

      @Nullable public String getReservationItem()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ReservationItem

      Returns:
      Reservation Item
    • getRecordType

      @Nullable public String getRecordType()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: RecordType

      Returns:
      Reservation Record Type
    • getMaterial

      @Nullable public String getMaterial()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getBOMItemDescription

      @Nullable public String getBOMItemDescription()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BOMItemDescription

      Returns:
      BOM Item Text
    • getRequiredQuantity

      @Nullable public BigDecimal getRequiredQuantity()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: RequiredQuantity

      Returns:
      Requirement Quantity
    • getBaseUnit

      @Nullable public String getBaseUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getRequirementDate

      @Nullable public LocalDateTime getRequirementDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: RequirementDate

      Returns:
      Material Component Requirement Date
    • getQuantityInEntryUnit

      @Nullable public BigDecimal getQuantityInEntryUnit()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: QuantityInEntryUnit

      Returns:
      Quantity in Unit of Entry
    • getEntryUnit

      @Nullable public String getEntryUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: EntryUnit

      Returns:
      Unit of entry
    • getWithdrawnQuantity

      @Nullable public BigDecimal getWithdrawnQuantity()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: WithdrawnQuantity

      Returns:
      Withdrawn Quantity
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getBatch

      @Nullable public String getBatch()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Batch

      Returns:
      Batch Number
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<POSubcontractingComponent>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<POSubcontractingComponent>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<POSubcontractingComponent>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<POSubcontractingComponent>