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

public class Bearer extends VdmEntity<Bearer> implements VdmEntitySet
Bearer Maintain

Original entity name from the Odata EDM: Bearer_Type

  • Field Details

  • Constructor Details

    • Bearer

      public Bearer()
    • Bearer

      public Bearer(@Nullable String companyCode, @Nullable String pRAJointVenture, @Nullable String divisionOfInterest, @Nullable String pRABearerGroup, @Nullable LocalDate pRABearerGroupEffctvFrmDte, @Nullable String pRABearerGroupUseControlNmbr, @Nullable String pRAOwner, @Nullable String ownerInterestType, @Nullable String ownerInterestSequence, @Nullable BigDecimal ownerBearerPercent, @Nullable String ownerName, @Nullable BearerGroup to_PRAMaintBearerGroupHierNode, @Nullable DOI to_PRAMaintDOIHierNode)
  • Method Details

    • getType

      @Nonnull public Class<Bearer> getType()
      Specified by:
      getType in class VdmObject<Bearer>
    • 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)
    • setPRABearerGroup

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

      Original property name from the Odata EDM: PRABearerGroup

      Parameters:
      pRABearerGroup - Bearer Group Number
    • setPRABearerGroupEffctvFrmDte

      public void setPRABearerGroupEffctvFrmDte(@Nullable LocalDate pRABearerGroupEffctvFrmDte)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PRABearerGroupEffctvFrmDte

      Parameters:
      pRABearerGroupEffctvFrmDte - Effective from date
    • setPRABearerGroupUseControlNmbr

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

      Original property name from the Odata EDM: PRABearerGroupUseControlNmbr

      Parameters:
      pRABearerGroupUseControlNmbr - Bearer Group Use Control
    • 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
    • setOwnerBearerPercent

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

      Original property name from the Odata EDM: OwnerBearerPercent

      Parameters:
      ownerBearerPercent - Bearer Decimal
    • setOwnerName

      public void setOwnerName(@Nullable String ownerName)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: OwnerName

      Parameters:
      ownerName - Name of Owner
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity Bearer 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 _PRAMaintBearerGroupHierNode is already loaded, the result will contain the BearerGroup entity. If not, an Option with result state empty is returned.
    • setPRAMaintBearerGroupHierNode

      public void setPRAMaintBearerGroupHierNode(BearerGroup value)
      Overwrites the associated BearerGroup entity for the loaded navigation property _PRAMaintBearerGroupHierNode.
      Parameters:
      value - New BearerGroup entity.
    • 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 Bearer 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.
    • builder

      @Nonnull public static Bearer.BearerBuilder 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)
    • getPRABearerGroup

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

      Original property name from the Odata EDM: PRABearerGroup

      Returns:
      Bearer Group Number
    • getPRABearerGroupEffctvFrmDte

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

      Original property name from the Odata EDM: PRABearerGroupEffctvFrmDte

      Returns:
      Effective from date
    • getPRABearerGroupUseControlNmbr

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

      Original property name from the Odata EDM: PRABearerGroupUseControlNmbr

      Returns:
      Bearer Group Use Control
    • 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
    • getOwnerBearerPercent

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

      Original property name from the Odata EDM: OwnerBearerPercent

      Returns:
      Bearer Decimal
    • getOwnerName

      @Nullable public String getOwnerName()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: OwnerName

      Returns:
      Name of Owner
    • toString

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

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

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

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

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