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

public class Warehouse extends VdmEntity<Warehouse> implements VdmEntitySet
Warehouse

Original entity name from the Odata EDM: WarehouseType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setEWMWarehouse(@Nullable String eWMWarehouse)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: EWMWarehouse

      Parameters:
      eWMWarehouse - Warehouse Number/Warehouse Complex
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity Warehouse 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 _WarehouseStorageType is already loaded, the result will contain the WarehouseStorageType entities. If not, an Option with result state empty is returned.
    • setWarehouseStorageType

      public void setWarehouseStorageType(@Nonnull List<WarehouseStorageType> value)
      Overwrites the list of associated WarehouseStorageType entities for the loaded navigation property _WarehouseStorageType.

      If the navigation property _WarehouseStorageType of a queried Warehouse 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 WarehouseStorageType entities.
    • addWarehouseStorageType

      public void addWarehouseStorageType(WarehouseStorageType... entity)
      Adds elements to the list of associated WarehouseStorageType entities. This corresponds to the OData navigation property _WarehouseStorageType.

      If the navigation property _WarehouseStorageType of a queried Warehouse 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 WarehouseStorageType entities.
    • builder

      @Nonnull public static Warehouse.WarehouseBuilder builder()
    • getEWMWarehouse

      @Nullable public String getEWMWarehouse()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: EWMWarehouse

      Returns:
      Warehouse Number/Warehouse Complex
    • toString

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

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

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

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

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