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

public class PRAInternalMarketingRateHdr extends VdmEntity<PRAInternalMarketingRateHdr> implements VdmEntitySet
PRA Int Mktg Rate Hdr Projection

Original entity name from the Odata EDM: PRAInternalMarketingRateHdr_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PRAMarketingRateNumber

      Parameters:
      pRAMarketingRateNumber - Marketing Rate Number
    • setMeasurementPoint

      public void setMeasurementPoint(@Nullable String measurementPoint)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MeasurementPoint

      Parameters:
      measurementPoint - Measurement point number
    • setWell

      public void setWell(@Nullable String well)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: Well

      Parameters:
      well - Well ID number
    • setWellCompletion

      public void setWellCompletion(@Nullable String wellCompletion)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: WellCompletion

      Parameters:
      wellCompletion - Well Completion Number
    • setMajorProduct

      public void setMajorProduct(@Nullable String majorProduct)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: MajorProduct

      Parameters:
      majorProduct - Major product code
    • setPRAMarketingEffctvFrmDte

      public void setPRAMarketingEffctvFrmDte(@Nullable LocalDate pRAMarketingEffctvFrmDte)
      Constraints: Nullable

      Original property name from the Odata EDM: PRAMarketingEffctvFrmDte

      Parameters:
      pRAMarketingEffctvFrmDte - Effective from date
    • setPRAMarketingEffctvToDte

      public void setPRAMarketingEffctvToDte(@Nullable LocalDate pRAMarketingEffctvToDte)
      Constraints: Nullable

      Original property name from the Odata EDM: PRAMarketingEffctvToDte

      Parameters:
      pRAMarketingEffctvToDte - Effective To Date
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of Person Responsible for Creating the Object
    • setPRACreationDateTime

      public void setPRACreationDateTime(@Nullable OffsetDateTime pRACreationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: PRACreationDateTime

      Parameters:
      pRACreationDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<List<PRAInternalMarketingRateTrans>> getPRAIntMktgRateTransactionIfPresent()
      Retrieval of associated PRAInternalMarketingRateTrans entities (one to many). This corresponds to the OData navigation property _PRAIntMktgRateTransaction.

      If the navigation property for an entity PRAInternalMarketingRateHdr 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 _PRAIntMktgRateTransaction is already loaded, the result will contain the PRAInternalMarketingRateTrans entities. If not, an Option with result state empty is returned.
    • setPRAIntMktgRateTransaction

      public void setPRAIntMktgRateTransaction(@Nonnull List<PRAInternalMarketingRateTrans> value)
      Overwrites the list of associated PRAInternalMarketingRateTrans entities for the loaded navigation property _PRAIntMktgRateTransaction.

      If the navigation property _PRAIntMktgRateTransaction of a queried PRAInternalMarketingRateHdr 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.

      Parameters:
      value - List of PRAInternalMarketingRateTrans entities.
    • addPRAIntMktgRateTransaction

      public void addPRAIntMktgRateTransaction(PRAInternalMarketingRateTrans... entity)
      Adds elements to the list of associated PRAInternalMarketingRateTrans entities. This corresponds to the OData navigation property _PRAIntMktgRateTransaction.

      If the navigation property _PRAIntMktgRateTransaction of a queried PRAInternalMarketingRateHdr 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.

      Parameters:
      entity - Array of PRAInternalMarketingRateTrans entities.
    • updateInternalMarketingRate

      @Nonnull public static BoundAction.CollectionToCollection<PRAInternalMarketingRateHdr,UpdateWithPRAKeysResult_Type> updateInternalMarketingRate(@Nonnull String pRAMarketingRateNumber, @Nonnull String well, @Nonnull String wellCompletion, @Nonnull String measurementPoint, @Nonnull String majorProduct, @Nullable LocalDate pRAMarketingEffctvFrmDte, @Nullable LocalDate pRAMarketingEffctvToDte, @Nonnull Collection<D_PRAIntMktgRateUpdtDetP> _PRAIntMktgRateDet)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      pRAMarketingRateNumber - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: PRAMarketingRateNumber

      well - Constraints: Not nullable, Maximum length: 15

      Original parameter name from the Odata EDM: Well

      pRAMarketingEffctvToDte - Constraints: Nullable

      Original parameter name from the Odata EDM: PRAMarketingEffctvToDte

      majorProduct - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: MajorProduct

      pRAMarketingEffctvFrmDte - Constraints: Nullable

      Original parameter name from the Odata EDM: PRAMarketingEffctvFrmDte

      measurementPoint - Constraints: Not nullable, Maximum length: 20

      Original parameter name from the Odata EDM: MeasurementPoint

      _PRAIntMktgRateDet - Constraints: Not nullable

      Original parameter name from the Odata EDM: _PRAIntMktgRateDet

      wellCompletion - Constraints: Not nullable, Maximum length: 5

      Original parameter name from the Odata EDM: WellCompletion

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • deleteInternalMarketingRate

      @Nonnull public static BoundAction.CollectionToCollection<PRAInternalMarketingRateHdr,DeleteWithPRAKeysResult_Type> deleteInternalMarketingRate(@Nonnull String well, @Nonnull String wellCompletion, @Nonnull String measurementPoint, @Nonnull String majorProduct, @Nullable LocalDate pRAMarketingEffctvFrmDte, @Nullable LocalDate pRAMarketingEffctvToDte)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      well - Constraints: Not nullable, Maximum length: 15

      Original parameter name from the Odata EDM: Well

      pRAMarketingEffctvToDte - Constraints: Nullable

      Original parameter name from the Odata EDM: PRAMarketingEffctvToDte

      majorProduct - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: MajorProduct

      pRAMarketingEffctvFrmDte - Constraints: Nullable

      Original parameter name from the Odata EDM: PRAMarketingEffctvFrmDte

      measurementPoint - Constraints: Not nullable, Maximum length: 20

      Original parameter name from the Odata EDM: MeasurementPoint

      wellCompletion - Constraints: Not nullable, Maximum length: 5

      Original parameter name from the Odata EDM: WellCompletion

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

    • getPRAMarketingRateNumber

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

      Original property name from the Odata EDM: PRAMarketingRateNumber

      Returns:
      Marketing Rate Number
    • getMeasurementPoint

      @Nullable public String getMeasurementPoint()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MeasurementPoint

      Returns:
      Measurement point number
    • getWell

      @Nullable public String getWell()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: Well

      Returns:
      Well ID number
    • getWellCompletion

      @Nullable public String getWellCompletion()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: WellCompletion

      Returns:
      Well Completion Number
    • getMajorProduct

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

      Original property name from the Odata EDM: MajorProduct

      Returns:
      Major product code
    • getPRAMarketingEffctvFrmDte

      @Nullable public LocalDate getPRAMarketingEffctvFrmDte()
      Constraints: Nullable

      Original property name from the Odata EDM: PRAMarketingEffctvFrmDte

      Returns:
      Effective from date
    • getPRAMarketingEffctvToDte

      @Nullable public LocalDate getPRAMarketingEffctvToDte()
      Constraints: Nullable

      Original property name from the Odata EDM: PRAMarketingEffctvToDte

      Returns:
      Effective To Date
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person Responsible for Creating the Object
    • getPRACreationDateTime

      @Nullable public OffsetDateTime getPRACreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: PRACreationDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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