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

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

Original entity name from the Odata EDM: BearerGroup_Type

  • Field Details

  • Constructor Details

    • BearerGroup

      public BearerGroup()
    • BearerGroup

      public BearerGroup(@Nullable String companyCode, @Nullable String pRAJointVenture, @Nullable String divisionOfInterest, @Nullable String pRABearerGroup, @Nullable LocalDate pRABearerGroupEffctvFrmDte, @Nullable LocalDate pRABearerGroupEffctvToDte, @Nullable String pRABearerGroupUseControlNmbr, @Nullable BigDecimal pRABearerGroupTotalIntrstPct, @Nullable String pRABearerGroupType, @Nullable String companyCodeName, @Nullable String divisionOfInterestName, @Nullable String pRABearerGroupTypeText, List<Bearer> to_PRAMaintBearerHierNode, @Nullable DOI to_PRAMaintDOIHierNode)
  • Method Details

    • getType

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

      public void setPRABearerGroupEffctvToDte(@Nullable LocalDate pRABearerGroupEffctvToDte)
      Constraints: Nullable

      Original property name from the Odata EDM: PRABearerGroupEffctvToDte

      Parameters:
      pRABearerGroupEffctvToDte - Effective To Date
    • setPRABearerGroupUseControlNmbr

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

      Original property name from the Odata EDM: PRABearerGroupUseControlNmbr

      Parameters:
      pRABearerGroupUseControlNmbr - Bearer Group Use Control
    • setPRABearerGroupTotalIntrstPct

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

      Original property name from the Odata EDM: PRABearerGroupTotalIntrstPct

      Parameters:
      pRABearerGroupTotalIntrstPct - Total Bearer Group Interest
    • setPRABearerGroupType

      public void setPRABearerGroupType(@Nullable String pRABearerGroupType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PRABearerGroupType

      Parameters:
      pRABearerGroupType - Bearer Group Type Code
    • setCompanyCodeName

      public void setCompanyCodeName(@Nullable String companyCodeName)
      Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: CompanyCodeName

      Parameters:
      companyCodeName - Name of Company Code or Company
    • setDivisionOfInterestName

      public void setDivisionOfInterestName(@Nullable String divisionOfInterestName)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: DivisionOfInterestName

      Parameters:
      divisionOfInterestName - Division of Interest Name
    • setPRABearerGroupTypeText

      public void setPRABearerGroupTypeText(@Nullable String pRABearerGroupTypeText)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: PRABearerGroupTypeText

      Parameters:
      pRABearerGroupTypeText - Bearer Group Type Description
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setPRAMaintBearerHierNode(@Nonnull List<Bearer> value)
      Overwrites the list of associated Bearer entities for the loaded navigation property _PRAMaintBearerHierNode.

      If the navigation property _PRAMaintBearerHierNode of a queried BearerGroup 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 Bearer entities.
    • addPRAMaintBearerHierNode

      public void addPRAMaintBearerHierNode(Bearer... entity)
      Adds elements to the list of associated Bearer entities. This corresponds to the OData navigation property _PRAMaintBearerHierNode.

      If the navigation property _PRAMaintBearerHierNode of a queried BearerGroup 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 Bearer entities.
    • 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 BearerGroup 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 BearerGroup.BearerGroupBuilder 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
    • getPRABearerGroupEffctvToDte

      @Nullable public LocalDate getPRABearerGroupEffctvToDte()
      Constraints: Nullable

      Original property name from the Odata EDM: PRABearerGroupEffctvToDte

      Returns:
      Effective To Date
    • getPRABearerGroupUseControlNmbr

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

      Original property name from the Odata EDM: PRABearerGroupUseControlNmbr

      Returns:
      Bearer Group Use Control
    • getPRABearerGroupTotalIntrstPct

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

      Original property name from the Odata EDM: PRABearerGroupTotalIntrstPct

      Returns:
      Total Bearer Group Interest
    • getPRABearerGroupType

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

      Original property name from the Odata EDM: PRABearerGroupType

      Returns:
      Bearer Group Type Code
    • getCompanyCodeName

      @Nullable public String getCompanyCodeName()
      Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: CompanyCodeName

      Returns:
      Name of Company Code or Company
    • getDivisionOfInterestName

      @Nullable public String getDivisionOfInterestName()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: DivisionOfInterestName

      Returns:
      Division of Interest Name
    • getPRABearerGroupTypeText

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

      Original property name from the Odata EDM: PRABearerGroupTypeText

      Returns:
      Bearer Group Type Description
    • toString

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

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

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

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

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