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

public class ProductPlantProcurement extends VdmEntity<ProductPlantProcurement>
Procurement Data

Original entity name from the Odata EDM: A_ProductPlantProcurementType

  • Field Details

    • ALL_FIELDS

      public static final ProductPlantProcurementSelectable ALL_FIELDS
      Selector for all available fields of ProductPlantProcurement.
    • PRODUCT

      public static final ProductPlantProcurementField<String> PRODUCT
      Use with available fluent helpers to apply the Product field to query operations.
    • PLANT

      public static final ProductPlantProcurementField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • IS_AUTO_PUR_ORD_CREATION_ALLOWED

      public static final ProductPlantProcurementField<Boolean> IS_AUTO_PUR_ORD_CREATION_ALLOWED
      Use with available fluent helpers to apply the IsAutoPurOrdCreationAllowed field to query operations.
    • IS_SOURCE_LIST_REQUIRED

      public static final ProductPlantProcurementField<Boolean> IS_SOURCE_LIST_REQUIRED
      Use with available fluent helpers to apply the IsSourceListRequired field to query operations.
    • SOURCE_OF_SUPPLY_CATEGORY

      public static final ProductPlantProcurementField<String> SOURCE_OF_SUPPLY_CATEGORY
      Use with available fluent helpers to apply the SourceOfSupplyCategory field to query operations.
  • Constructor Details

    • ProductPlantProcurement

      public ProductPlantProcurement()
    • ProductPlantProcurement

      public ProductPlantProcurement(@Nullable String product, @Nullable String plant, @Nullable Boolean isAutoPurOrdCreationAllowed, @Nullable Boolean isSourceListRequired, @Nullable String sourceOfSupplyCategory)
  • Method Details

    • getType

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

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setIsAutoPurOrdCreationAllowed

      public void setIsAutoPurOrdCreationAllowed(@Nullable Boolean isAutoPurOrdCreationAllowed)
      Constraints: none

      Original property name from the Odata EDM: IsAutoPurOrdCreationAllowed

      Parameters:
      isAutoPurOrdCreationAllowed - Indicator: "automatic purchase order allowed"
    • setIsSourceListRequired

      public void setIsSourceListRequired(@Nullable Boolean isSourceListRequired)
      Constraints: none

      Original property name from the Odata EDM: IsSourceListRequired

      Parameters:
      isSourceListRequired - Indicator: Source list requirement
    • setSourceOfSupplyCategory

      public void setSourceOfSupplyCategory(@Nullable String sourceOfSupplyCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SourceOfSupplyCategory

      Parameters:
      sourceOfSupplyCategory - Source of Supply
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProductPlantProcurementField<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> ProductPlantProcurementField<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<ProductPlantProcurement>
    • setServicePathForFetch

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

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

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

    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getIsAutoPurOrdCreationAllowed

      @Nullable public Boolean getIsAutoPurOrdCreationAllowed()
      Constraints: none

      Original property name from the Odata EDM: IsAutoPurOrdCreationAllowed

      Returns:
      Indicator: "automatic purchase order allowed"
    • getIsSourceListRequired

      @Nullable public Boolean getIsSourceListRequired()
      Constraints: none

      Original property name from the Odata EDM: IsSourceListRequired

      Returns:
      Indicator: Source list requirement
    • getSourceOfSupplyCategory

      @Nullable public String getSourceOfSupplyCategory()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SourceOfSupplyCategory

      Returns:
      Source of Supply
    • toString

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

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

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

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