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

public class BusPartInvoiceParameters extends VdmEntity<BusPartInvoiceParameters> implements VdmEntitySet

Original entity name from the Odata EDM: BusPartInvoiceParameters

  • Field Details

  • Constructor Details

    • BusPartInvoiceParameters

      public BusPartInvoiceParameters()
    • BusPartInvoiceParameters

      public BusPartInvoiceParameters(@Nullable String p_DisplayCurrency, List<BusPartInvoice> toSet)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: P_DisplayCurrency

      Parameters:
      p_DisplayCurrency - Currency Key
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity BusPartInvoiceParameters 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 Set is already loaded, the result will contain the BusPartInvoice entities. If not, an Option with result state empty is returned.
    • setSet

      public void setSet(@Nonnull List<BusPartInvoice> value)
      Overwrites the list of associated BusPartInvoice entities for the loaded navigation property Set.

      If the navigation property Set of a queried BusPartInvoiceParameters 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 BusPartInvoice entities.
    • addSet

      public void addSet(BusPartInvoice... entity)
      Adds elements to the list of associated BusPartInvoice entities. This corresponds to the OData navigation property Set.

      If the navigation property Set of a queried BusPartInvoiceParameters 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 BusPartInvoice entities.
    • builder

    • getP_DisplayCurrency

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

      Original property name from the Odata EDM: P_DisplayCurrency

      Returns:
      Currency Key
    • toString

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

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

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

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

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