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

public class CnsldtnOrder extends VdmEntity<CnsldtnOrder> implements VdmEntitySet
Consolidation Order

Original entity name from the Odata EDM: CnsldtnOrder_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setOrderID(@Nullable String orderID)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: OrderID

      Parameters:
      orderID - Order
    • setCnsldtnIsAdditionalMasterData

      public void setCnsldtnIsAdditionalMasterData(@Nullable Boolean cnsldtnIsAdditionalMasterData)
      Constraints: Not nullable

      Original property name from the Odata EDM: CnsldtnIsAdditionalMasterData

      Parameters:
      cnsldtnIsAdditionalMasterData - Is Additional Master Data
    • 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<CnsldtnOrder>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity CnsldtnOrder 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 _Text is already loaded, the result will contain the CnsldtnOrderText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<CnsldtnOrderText> value)
      Overwrites the list of associated CnsldtnOrderText entities for the loaded navigation property _Text.

      If the navigation property _Text of a queried CnsldtnOrder 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 CnsldtnOrderText entities.
    • addText

      public void addText(CnsldtnOrderText... entity)
      Adds elements to the list of associated CnsldtnOrderText entities. This corresponds to the OData navigation property _Text.

      If the navigation property _Text of a queried CnsldtnOrder 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 CnsldtnOrderText entities.
    • builder

      @Nonnull public static CnsldtnOrder.CnsldtnOrderBuilder builder()
    • getOrderID

      @Nullable public String getOrderID()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: OrderID

      Returns:
      Order
    • getCnsldtnIsAdditionalMasterData

      @Nullable public Boolean getCnsldtnIsAdditionalMasterData()
      Constraints: Not nullable

      Original property name from the Odata EDM: CnsldtnIsAdditionalMasterData

      Returns:
      Is Additional Master Data
    • 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<CnsldtnOrder>
    • equals

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

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

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

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