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

public class FreightAgrmtCalculationSheet extends VdmEntity<FreightAgrmtCalculationSheet> implements VdmEntitySet
Freight Agreement Calculation Sheet

Original entity name from the Odata EDM: FreightAgrmtCalculationSheet_Type

  • Field Details

  • Constructor Details

    • FreightAgrmtCalculationSheet

      public FreightAgrmtCalculationSheet()
    • FreightAgrmtCalculationSheet

      public FreightAgrmtCalculationSheet(@Nullable UUID transpCalculationSheetUUID, @Nullable String transportationCalculationSheet, @Nullable UUID transportationAgreementUUID, @Nullable UUID transpAgreementItemUUID, @Nullable FreightAgreement to_FreightAgreement, @Nullable FreightAgreementItem to_FreightAgreementItem, List<FrtAgrmtCalcSheetItem> to_FrtAgrmtCalcSheetItem)
  • Method Details

    • getType

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

      public void setTranspCalculationSheetUUID(@Nullable UUID transpCalculationSheetUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspCalculationSheetUUID

      Parameters:
      transpCalculationSheetUUID - Calculation Sheet UUID
    • setTransportationCalculationSheet

      public void setTransportationCalculationSheet(@Nullable String transportationCalculationSheet)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: TransportationCalculationSheet

      Parameters:
      transportationCalculationSheet - Calculation Sheet
    • setTransportationAgreementUUID

      public void setTransportationAgreementUUID(@Nullable UUID transportationAgreementUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationAgreementUUID

      Parameters:
      transportationAgreementUUID - Transportation Agreement UUID
    • setTranspAgreementItemUUID

      public void setTranspAgreementItemUUID(@Nullable UUID transpAgreementItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspAgreementItemUUID

      Parameters:
      transpAgreementItemUUID - Agreement Item UUID
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FreightAgrmtCalculationSheet 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 _FreightAgreement is already loaded, the result will contain the FreightAgreement entity. If not, an Option with result state empty is returned.
    • setFreightAgreement

      public void setFreightAgreement(FreightAgreement value)
      Overwrites the associated FreightAgreement entity for the loaded navigation property _FreightAgreement.
      Parameters:
      value - New FreightAgreement entity.
    • getFreightAgreementItemIfPresent

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

      If the navigation property for an entity FreightAgrmtCalculationSheet 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 _FreightAgreementItem is already loaded, the result will contain the FreightAgreementItem entity. If not, an Option with result state empty is returned.
    • setFreightAgreementItem

      public void setFreightAgreementItem(FreightAgreementItem value)
      Overwrites the associated FreightAgreementItem entity for the loaded navigation property _FreightAgreementItem.
      Parameters:
      value - New FreightAgreementItem entity.
    • getFrtAgrmtCalcSheetItemIfPresent

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

      If the navigation property for an entity FreightAgrmtCalculationSheet 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 _FrtAgrmtCalcSheetItem is already loaded, the result will contain the FrtAgrmtCalcSheetItem entities. If not, an Option with result state empty is returned.
    • setFrtAgrmtCalcSheetItem

      public void setFrtAgrmtCalcSheetItem(@Nonnull List<FrtAgrmtCalcSheetItem> value)
      Overwrites the list of associated FrtAgrmtCalcSheetItem entities for the loaded navigation property _FrtAgrmtCalcSheetItem.

      If the navigation property _FrtAgrmtCalcSheetItem of a queried FreightAgrmtCalculationSheet 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 FrtAgrmtCalcSheetItem entities.
    • addFrtAgrmtCalcSheetItem

      public void addFrtAgrmtCalcSheetItem(FrtAgrmtCalcSheetItem... entity)
      Adds elements to the list of associated FrtAgrmtCalcSheetItem entities. This corresponds to the OData navigation property _FrtAgrmtCalcSheetItem.

      If the navigation property _FrtAgrmtCalcSheetItem of a queried FreightAgrmtCalculationSheet 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 FrtAgrmtCalcSheetItem entities.
    • builder

    • getTranspCalculationSheetUUID

      @Nullable public UUID getTranspCalculationSheetUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspCalculationSheetUUID

      Returns:
      Calculation Sheet UUID
    • getTransportationCalculationSheet

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

      Original property name from the Odata EDM: TransportationCalculationSheet

      Returns:
      Calculation Sheet
    • getTransportationAgreementUUID

      @Nullable public UUID getTransportationAgreementUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationAgreementUUID

      Returns:
      Transportation Agreement UUID
    • getTranspAgreementItemUUID

      @Nullable public UUID getTranspAgreementItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspAgreementItemUUID

      Returns:
      Agreement Item UUID
    • toString

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

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

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

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

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