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

public class UnitTrCtr extends VdmEntity<UnitTrCtr> implements VdmEntitySet
Property Use Control

Original entity name from the Odata EDM: UnitTrCtr_Type

  • Field Details

  • Constructor Details

    • UnitTrCtr

      public UnitTrCtr()
    • UnitTrCtr

      public UnitTrCtr(@Nullable String companyCode, @Nullable String pRAUnitVenture, @Nullable String pRACombinedProductCode, @Nullable LocalDate pRAUnitVentureEffctvFrmDte, @Nullable LocalDate pRAUnitVentureEffctvToDte, @Nullable String pRAUnitVentureUseCtrlNmbr, @Nullable BigDecimal pRAUnitVntrTotTractPartcipnPct, @Nullable Boolean pRAUnitVentureIsApproved, @Nullable String pRAUnitVntrLastTractSqncNmbr, @Nullable Collection<SAP__Message> _Messages, List<UnitTract> to_PRAMaintUnitTractHierNode)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PRAUnitVenture

      Parameters:
      pRAUnitVenture - Joint Venture
    • setPRACombinedProductCode

      public void setPRACombinedProductCode(@Nullable String pRACombinedProductCode)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PRACombinedProductCode

      Parameters:
      pRACombinedProductCode - Combined product code
    • setPRAUnitVentureEffctvFrmDte

      public void setPRAUnitVentureEffctvFrmDte(@Nullable LocalDate pRAUnitVentureEffctvFrmDte)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PRAUnitVentureEffctvFrmDte

      Parameters:
      pRAUnitVentureEffctvFrmDte - Effective from date
    • setPRAUnitVentureEffctvToDte

      public void setPRAUnitVentureEffctvToDte(@Nullable LocalDate pRAUnitVentureEffctvToDte)
      Constraints: Nullable

      Original property name from the Odata EDM: PRAUnitVentureEffctvToDte

      Parameters:
      pRAUnitVentureEffctvToDte - Effective To Date
    • setPRAUnitVentureUseCtrlNmbr

      public void setPRAUnitVentureUseCtrlNmbr(@Nullable String pRAUnitVentureUseCtrlNmbr)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: PRAUnitVentureUseCtrlNmbr

      Parameters:
      pRAUnitVentureUseCtrlNmbr - Property Unit Use Control Number
    • setPRAUnitVntrTotTractPartcipnPct

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

      Original property name from the Odata EDM: PRAUnitVntrTotTractPartcipnPct

      Parameters:
      pRAUnitVntrTotTractPartcipnPct - Total Tract Participation Factor Decimal
    • setPRAUnitVentureIsApproved

      public void setPRAUnitVentureIsApproved(@Nullable Boolean pRAUnitVentureIsApproved)
      Constraints: Not nullable

      Original property name from the Odata EDM: PRAUnitVentureIsApproved

      Parameters:
      pRAUnitVentureIsApproved - Approval Flag
    • setPRAUnitVntrLastTractSqncNmbr

      public void setPRAUnitVntrLastTractSqncNmbr(@Nullable String pRAUnitVntrLastTractSqncNmbr)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PRAUnitVntrLastTractSqncNmbr

      Parameters:
      pRAUnitVntrLastTractSqncNmbr - Sequence number
    • 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<UnitTrCtr>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity UnitTrCtr 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 _PRAMaintUnitTractHierNode is already loaded, the result will contain the UnitTract entities. If not, an Option with result state empty is returned.
    • setPRAMaintUnitTractHierNode

      public void setPRAMaintUnitTractHierNode(@Nonnull List<UnitTract> value)
      Overwrites the list of associated UnitTract entities for the loaded navigation property _PRAMaintUnitTractHierNode.

      If the navigation property _PRAMaintUnitTractHierNode of a queried UnitTrCtr 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 UnitTract entities.
    • addPRAMaintUnitTractHierNode

      public void addPRAMaintUnitTractHierNode(UnitTract... entity)
      Adds elements to the list of associated UnitTract entities. This corresponds to the OData navigation property _PRAMaintUnitTractHierNode.

      If the navigation property _PRAMaintUnitTractHierNode of a queried UnitTrCtr 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 UnitTract entities.
    • builder

      @Nonnull public static UnitTrCtr.UnitTrCtrBuilder 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
    • getPRAUnitVenture

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

      Original property name from the Odata EDM: PRAUnitVenture

      Returns:
      Joint Venture
    • getPRACombinedProductCode

      @Nullable public String getPRACombinedProductCode()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PRACombinedProductCode

      Returns:
      Combined product code
    • getPRAUnitVentureEffctvFrmDte

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

      Original property name from the Odata EDM: PRAUnitVentureEffctvFrmDte

      Returns:
      Effective from date
    • getPRAUnitVentureEffctvToDte

      @Nullable public LocalDate getPRAUnitVentureEffctvToDte()
      Constraints: Nullable

      Original property name from the Odata EDM: PRAUnitVentureEffctvToDte

      Returns:
      Effective To Date
    • getPRAUnitVentureUseCtrlNmbr

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

      Original property name from the Odata EDM: PRAUnitVentureUseCtrlNmbr

      Returns:
      Property Unit Use Control Number
    • getPRAUnitVntrTotTractPartcipnPct

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

      Original property name from the Odata EDM: PRAUnitVntrTotTractPartcipnPct

      Returns:
      Total Tract Participation Factor Decimal
    • getPRAUnitVentureIsApproved

      @Nullable public Boolean getPRAUnitVentureIsApproved()
      Constraints: Not nullable

      Original property name from the Odata EDM: PRAUnitVentureIsApproved

      Returns:
      Approval Flag
    • getPRAUnitVntrLastTractSqncNmbr

      @Nullable public String getPRAUnitVntrLastTractSqncNmbr()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PRAUnitVntrLastTractSqncNmbr

      Returns:
      Sequence number
    • 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<UnitTrCtr>
    • equals

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

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

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

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