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

public class PRAUnitVenture extends VdmEntity<PRAUnitVenture> implements VdmEntitySet
Unit Venture

Original entity name from the Odata EDM: PRAUnitVenture_Type

  • Field Details

  • Constructor Details

    • PRAUnitVenture

      public PRAUnitVenture()
    • PRAUnitVenture

      public PRAUnitVenture(@Nullable String companyCode, @Nullable String pRAUnitVenture, @Nullable String pRACombinedProductCode, @Nullable String pRAUnitVentureIsUpdated, @Nullable PRAVenture to_JointVenture)
  • Method Details

    • getType

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

      public void setPRAUnitVentureIsUpdated(@Nullable String pRAUnitVentureIsUpdated)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PRAUnitVentureIsUpdated

      Parameters:
      pRAUnitVentureIsUpdated - Unit JV flag
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity PRAUnitVenture 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 _JointVenture is already loaded, the result will contain the PRAVenture entity. If not, an Option with result state empty is returned.
    • setJointVenture

      public void setJointVenture(PRAVenture value)
      Overwrites the associated PRAVenture entity for the loaded navigation property _JointVenture.
      Parameters:
      value - New PRAVenture entity.
    • builder

      @Nonnull public static PRAUnitVenture.PRAUnitVentureBuilder 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
    • getPRAUnitVentureIsUpdated

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

      Original property name from the Odata EDM: PRAUnitVentureIsUpdated

      Returns:
      Unit JV flag
    • toString

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

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

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

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

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