java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<Scale>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.pradivisionofinterest.Scale
All Implemented Interfaces:
VdmEntitySet

public class Scale extends VdmEntity<Scale> implements VdmEntitySet
Sliding Scales Items

Original entity name from the Odata EDM: Scale_Type

  • Field Details

  • Constructor Details

    • Scale

      public Scale()
    • Scale

      public Scale(@Nullable String companyCode, @Nullable String pRAJointVenture, @Nullable String divisionOfInterest, @Nullable String pRACustomerSupplierCode, @Nullable String pRAOwner, @Nullable String ownerInterestType, @Nullable String ownerInterestSequence, @Nullable LocalDate dOIOwnerEffectiveFromDate, @Nullable String pRASlidingScaleNumber, @Nullable BigDecimal pRASlidingScaleRangeFromVal, @Nullable BigDecimal pRASlidingScaleRangeToVal, @Nullable BigDecimal pRASlidingScaleRangeIncrmtVal, @Nullable DOI to_PRAMaintDOIHierNode, @Nullable ScaleHdr to_PRAMaintSlidingScHdrHierNode)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setPRAJointVenture

      public void setPRAJointVenture(@Nullable String pRAJointVenture)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PRAJointVenture

      Parameters:
      pRAJointVenture - Joint Venture
    • setDivisionOfInterest

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

      Original property name from the Odata EDM: DivisionOfInterest

      Parameters:
      divisionOfInterest - Division of Interest (DOI)
    • setPRACustomerSupplierCode

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

      Original property name from the Odata EDM: PRACustomerSupplierCode

      Parameters:
      pRACustomerSupplierCode - Customer/Vendor Indicator
    • setPRAOwner

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

      Original property name from the Odata EDM: PRAOwner

      Parameters:
      pRAOwner - PRA owner
    • setOwnerInterestType

      public void setOwnerInterestType(@Nullable String ownerInterestType)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: OwnerInterestType

      Parameters:
      ownerInterestType - Participant Interest Type
    • setOwnerInterestSequence

      public void setOwnerInterestSequence(@Nullable String ownerInterestSequence)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: OwnerInterestSequence

      Parameters:
      ownerInterestSequence - Owner Interest Sequence Number
    • setDOIOwnerEffectiveFromDate

      public void setDOIOwnerEffectiveFromDate(@Nullable LocalDate dOIOwnerEffectiveFromDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: DOIOwnerEffectiveFromDate

      Parameters:
      dOIOwnerEffectiveFromDate - Effective from date
    • setPRASlidingScaleNumber

      public void setPRASlidingScaleNumber(@Nullable String pRASlidingScaleNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: PRASlidingScaleNumber

      Parameters:
      pRASlidingScaleNumber - Sliding scale number
    • setPRASlidingScaleRangeFromVal

      public void setPRASlidingScaleRangeFromVal(@Nullable BigDecimal pRASlidingScaleRangeFromVal)
      (Key Field) Constraints: Not nullable, Precision: 12, Scale: 2

      Original property name from the Odata EDM: PRASlidingScaleRangeFromVal

      Parameters:
      pRASlidingScaleRangeFromVal - Volume from - range quantity
    • setPRASlidingScaleRangeToVal

      public void setPRASlidingScaleRangeToVal(@Nullable BigDecimal pRASlidingScaleRangeToVal)
      Constraints: Not nullable, Precision: 12, Scale: 2

      Original property name from the Odata EDM: PRASlidingScaleRangeToVal

      Parameters:
      pRASlidingScaleRangeToVal - Volume to range quantity
    • setPRASlidingScaleRangeIncrmtVal

      public void setPRASlidingScaleRangeIncrmtVal(@Nullable BigDecimal pRASlidingScaleRangeIncrmtVal)
      Constraints: Not nullable, Precision: 9, Scale: 8

      Original property name from the Odata EDM: PRASlidingScaleRangeIncrmtVal

      Parameters:
      pRASlidingScaleRangeIncrmtVal - Volume incremental dec.qty.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<Scale>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity Scale 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 _PRAMaintDOIHierNode is already loaded, the result will contain the DOI entity. If not, an Option with result state empty is returned.
    • setPRAMaintDOIHierNode

      public void setPRAMaintDOIHierNode(DOI value)
      Overwrites the associated DOI entity for the loaded navigation property _PRAMaintDOIHierNode.
      Parameters:
      value - New DOI entity.
    • getPRAMaintSlidingScHdrHierNodeIfPresent

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

      If the navigation property for an entity Scale 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 _PRAMaintSlidingScHdrHierNode is already loaded, the result will contain the ScaleHdr entity. If not, an Option with result state empty is returned.
    • setPRAMaintSlidingScHdrHierNode

      public void setPRAMaintSlidingScHdrHierNode(ScaleHdr value)
      Overwrites the associated ScaleHdr entity for the loaded navigation property _PRAMaintSlidingScHdrHierNode.
      Parameters:
      value - New ScaleHdr entity.
    • builder

      @Nonnull public static Scale.ScaleBuilder builder()
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getPRAJointVenture

      @Nullable public String getPRAJointVenture()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PRAJointVenture

      Returns:
      Joint Venture
    • getDivisionOfInterest

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

      Original property name from the Odata EDM: DivisionOfInterest

      Returns:
      Division of Interest (DOI)
    • getPRACustomerSupplierCode

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

      Original property name from the Odata EDM: PRACustomerSupplierCode

      Returns:
      Customer/Vendor Indicator
    • getPRAOwner

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

      Original property name from the Odata EDM: PRAOwner

      Returns:
      PRA owner
    • getOwnerInterestType

      @Nullable public String getOwnerInterestType()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: OwnerInterestType

      Returns:
      Participant Interest Type
    • getOwnerInterestSequence

      @Nullable public String getOwnerInterestSequence()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: OwnerInterestSequence

      Returns:
      Owner Interest Sequence Number
    • getDOIOwnerEffectiveFromDate

      @Nullable public LocalDate getDOIOwnerEffectiveFromDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: DOIOwnerEffectiveFromDate

      Returns:
      Effective from date
    • getPRASlidingScaleNumber

      @Nullable public String getPRASlidingScaleNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: PRASlidingScaleNumber

      Returns:
      Sliding scale number
    • getPRASlidingScaleRangeFromVal

      @Nullable public BigDecimal getPRASlidingScaleRangeFromVal()
      (Key Field) Constraints: Not nullable, Precision: 12, Scale: 2

      Original property name from the Odata EDM: PRASlidingScaleRangeFromVal

      Returns:
      Volume from - range quantity
    • getPRASlidingScaleRangeToVal

      @Nullable public BigDecimal getPRASlidingScaleRangeToVal()
      Constraints: Not nullable, Precision: 12, Scale: 2

      Original property name from the Odata EDM: PRASlidingScaleRangeToVal

      Returns:
      Volume to range quantity
    • getPRASlidingScaleRangeIncrmtVal

      @Nullable public BigDecimal getPRASlidingScaleRangeIncrmtVal()
      Constraints: Not nullable, Precision: 9, Scale: 8

      Original property name from the Odata EDM: PRASlidingScaleRangeIncrmtVal

      Returns:
      Volume incremental dec.qty.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<Scale>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<Scale>