Class Warehouse
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: WarehouseType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Warehouse instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<Warehouse>Selector for all available fields of Warehouse.static final SimpleProperty.String<Warehouse>static final NavigationProperty.Collection<Warehouse,WarehouseStorageType> Use with available request builders to apply the _WarehouseStorageType navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionWarehouse(String eWMWarehouse, List<WarehouseStorageType> to_WarehouseStorageType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWarehouseStorageType(WarehouseStorageType... entity) Adds elements to the list of associated WarehouseStorageType entities.static Warehouse.WarehouseBuilderbuilder()protected booleanbooleanprotected voidprotected Stringprotected String(Key Field) Constraints: Not nullable, Maximum length: 4protected ODataEntityKeygetKey()getType()io.vavr.control.Option<List<WarehouseStorageType>>Retrieval of associated WarehouseStorageType entities (one to many).inthashCode()voidsetEWMWarehouse(String eWMWarehouse) (Key Field) Constraints: Not nullable, Maximum length: 4voidOverwrites the list of associated WarehouseStorageType entities for the loaded navigation property _WarehouseStorageType.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of Warehouse. -
EWM_WAREHOUSE
-
TO__WAREHOUSE_STORAGE_TYPE
public static final NavigationProperty.Collection<Warehouse,WarehouseStorageType> TO__WAREHOUSE_STORAGE_TYPEUse with available request builders to apply the _WarehouseStorageType navigation property to query operations.
-
-
Constructor Details
-
Warehouse
public Warehouse() -
Warehouse
-
-
Method Details
-
getType
-
setEWMWarehouse
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: EWMWarehouse
- Parameters:
eWMWarehouse- Warehouse Number/Warehouse Complex
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Warehouse>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Warehouse>
-
fromMap
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<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
Optionresult state will beempty.- Returns:
- If the information for navigation property _WarehouseStorageType is already loaded, the result
will contain the WarehouseStorageType entities. If not, an
Optionwith result stateemptyis returned.
-
setWarehouseStorageType
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
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
-
getEWMWarehouse
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: EWMWarehouse
- Returns:
- Warehouse Number/Warehouse Complex
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getOdataType
- Specified by:
getOdataTypein classVdmObject<Warehouse>
-