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

public class ZoneAdjustments extends VdmEntity<ZoneAdjustments>
Zone Adjustments

Original entity name from the Odata EDM: A_ZoneAdjustmentsType

  • Field Details

    • ALL_FIELDS

      public static final ZoneAdjustmentsSelectable ALL_FIELDS
      Selector for all available fields of ZoneAdjustments.
    • MATERIAL

      public static final ZoneAdjustmentsField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • PLANT

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

      public static final ZoneAdjustmentsField<String> MRP_AREA
      Use with available fluent helpers to apply the MRPArea field to query operations.
    • PROPOSAL_START_DATE

      public static final ZoneAdjustmentsField<LocalDateTime> PROPOSAL_START_DATE
      Use with available fluent helpers to apply the ProposalStartDate field to query operations.
    • PROPOSAL_VERSION

      public static final ZoneAdjustmentsField<String> PROPOSAL_VERSION
      Use with available fluent helpers to apply the ProposalVersion field to query operations.
    • BUF_PRPSL_ZONE_ADJMT_FCTR_START_DATE

      public static final ZoneAdjustmentsField<LocalDateTime> BUF_PRPSL_ZONE_ADJMT_FCTR_START_DATE
      Use with available fluent helpers to apply the BufPrpslZoneAdjmtFctrStartDate field to query operations.
    • BUF_PRPSL_ZONE_ADJMT_FCTR_END_DATE

      public static final ZoneAdjustmentsField<LocalDateTime> BUF_PRPSL_ZONE_ADJMT_FCTR_END_DATE
      Use with available fluent helpers to apply the BufPrpslZoneAdjmtFctrEndDate field to query operations.
    • RED_ZONE_ADJUSTMENT_FACTOR

      public static final ZoneAdjustmentsField<BigDecimal> RED_ZONE_ADJUSTMENT_FACTOR
      Use with available fluent helpers to apply the RedZoneAdjustmentFactor field to query operations.
    • YELLOW_ZONE_ADJUSTMENT_FACTOR

      public static final ZoneAdjustmentsField<BigDecimal> YELLOW_ZONE_ADJUSTMENT_FACTOR
      Use with available fluent helpers to apply the YellowZoneAdjustmentFactor field to query operations.
    • GREEN_ZONE_ADJUSTMENT_FACTOR

      public static final ZoneAdjustmentsField<BigDecimal> GREEN_ZONE_ADJUSTMENT_FACTOR
      Use with available fluent helpers to apply the GreenZoneAdjustmentFactor field to query operations.
    • TO_PROPOSAL_HDR

      public static final ZoneAdjustmentsOneToOneLink<ProposalHeader> TO_PROPOSAL_HDR
      Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
  • Constructor Details

    • ZoneAdjustments

      public ZoneAdjustments()
    • ZoneAdjustments

      public ZoneAdjustments(@Nullable String material, @Nullable String plant, @Nullable String mRPArea, @Nullable LocalDateTime proposalStartDate, @Nullable String proposalVersion, @Nullable LocalDateTime bufPrpslZoneAdjmtFctrStartDate, @Nullable LocalDateTime bufPrpslZoneAdjmtFctrEndDate, @Nullable BigDecimal redZoneAdjustmentFactor, @Nullable BigDecimal yellowZoneAdjustmentFactor, @Nullable BigDecimal greenZoneAdjustmentFactor, @Nullable ProposalHeader toProposalHdr)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material 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
    • setMRPArea

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

      Original property name from the Odata EDM: MRPArea

      Parameters:
      mRPArea - MRP Area
    • setProposalStartDate

      public void setProposalStartDate(@Nullable LocalDateTime proposalStartDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProposalStartDate

      Parameters:
      proposalStartDate - Proposal Validity From Date
    • setProposalVersion

      public void setProposalVersion(@Nullable String proposalVersion)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProposalVersion

      Parameters:
      proposalVersion - Proposal Version
    • setBufPrpslZoneAdjmtFctrStartDate

      public void setBufPrpslZoneAdjmtFctrStartDate(@Nullable LocalDateTime bufPrpslZoneAdjmtFctrStartDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrStartDate

      Parameters:
      bufPrpslZoneAdjmtFctrStartDate - Proposal Zones Valid From
    • setBufPrpslZoneAdjmtFctrEndDate

      public void setBufPrpslZoneAdjmtFctrEndDate(@Nullable LocalDateTime bufPrpslZoneAdjmtFctrEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrEndDate

      Parameters:
      bufPrpslZoneAdjmtFctrEndDate - Proposal Zones Valid To
    • setRedZoneAdjustmentFactor

      public void setRedZoneAdjustmentFactor(@Nullable BigDecimal redZoneAdjustmentFactor)
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: RedZoneAdjustmentFactor

      Parameters:
      redZoneAdjustmentFactor - Adjustment Factor for Red Zone
    • setYellowZoneAdjustmentFactor

      public void setYellowZoneAdjustmentFactor(@Nullable BigDecimal yellowZoneAdjustmentFactor)
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: YellowZoneAdjustmentFactor

      Parameters:
      yellowZoneAdjustmentFactor - Adjustment Factor for Yellow Zone
    • setGreenZoneAdjustmentFactor

      public void setGreenZoneAdjustmentFactor(@Nullable BigDecimal greenZoneAdjustmentFactor)
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: GreenZoneAdjustmentFactor

      Parameters:
      greenZoneAdjustmentFactor - Adjustment Factor for Green Zone
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ZoneAdjustmentsField<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> ZoneAdjustmentsField<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<ZoneAdjustments>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ZoneAdjustments>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ZoneAdjustments>
    • fetchProposalHdr

      @Nullable public ProposalHeader fetchProposalHdr()
      Fetches the ProposalHeader entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProposalHdr.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated ProposalHeader entity, or null if 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.
    • getProposalHdrOrFetch

      @Nullable public ProposalHeader getProposalHdrOrFetch()
      Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.

      If the navigation property to_ProposalHdr of a queried ZoneAdjustments 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 ProposalHeader 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.
    • getProposalHdrIfPresent

      @Nonnull public io.vavr.control.Option<ProposalHeader> getProposalHdrIfPresent()
      Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.

      If the navigation property for an entity ZoneAdjustments has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_ProposalHdr is already loaded, the result will contain the ProposalHeader entity. If not, an Option with result state empty is returned.
    • setProposalHdr

      public void setProposalHdr(ProposalHeader value)
      Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.
      Parameters:
      value - New ProposalHeader entity.
    • builder

      @Nonnull public static ZoneAdjustments.ZoneAdjustmentsBuilder builder()
    • getMaterial

      @Nullable public String getMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getMRPArea

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

      Original property name from the Odata EDM: MRPArea

      Returns:
      MRP Area
    • getProposalStartDate

      @Nullable public LocalDateTime getProposalStartDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProposalStartDate

      Returns:
      Proposal Validity From Date
    • getProposalVersion

      @Nullable public String getProposalVersion()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProposalVersion

      Returns:
      Proposal Version
    • getBufPrpslZoneAdjmtFctrStartDate

      @Nullable public LocalDateTime getBufPrpslZoneAdjmtFctrStartDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrStartDate

      Returns:
      Proposal Zones Valid From
    • getBufPrpslZoneAdjmtFctrEndDate

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

      Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrEndDate

      Returns:
      Proposal Zones Valid To
    • getRedZoneAdjustmentFactor

      @Nullable public BigDecimal getRedZoneAdjustmentFactor()
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: RedZoneAdjustmentFactor

      Returns:
      Adjustment Factor for Red Zone
    • getYellowZoneAdjustmentFactor

      @Nullable public BigDecimal getYellowZoneAdjustmentFactor()
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: YellowZoneAdjustmentFactor

      Returns:
      Adjustment Factor for Yellow Zone
    • getGreenZoneAdjustmentFactor

      @Nullable public BigDecimal getGreenZoneAdjustmentFactor()
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: GreenZoneAdjustmentFactor

      Returns:
      Adjustment Factor for Green Zone
    • toString

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

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

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

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