Class ActualStock
Original entity name from the Odata EDM: A_ActualStockType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ActualStock instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActualStockSelectableSelector for all available fields of ActualStock.static final ActualStockField<String>Use with available fluent helpers to apply the BaseUnit field to query operations.static final ActualStockField<LocalDateTime>Use with available fluent helpers to apply the BufferLevelEndDate field to query operations.static final ActualStockField<LocalDateTime>Use with available fluent helpers to apply the BufferLevelStartDate field to query operations.static final ActualStockField<String>Use with available fluent helpers to apply the ChangeMode field to query operations.static final ActualStockField<String>Use with available fluent helpers to apply the Material field to query operations.static final ActualStockField<BigDecimal>Use with available fluent helpers to apply the MaterialMaxStockLevelQuantity field to query operations.static final ActualStockField<BigDecimal>Use with available fluent helpers to apply the MaterialSafetyStockQty field to query operations.static final ActualStockField<String>Use with available fluent helpers to apply the MRPArea field to query operations.static final ActualStockField<String>Use with available fluent helpers to apply the Plant field to query operations.static final ActualStockField<LocalDateTime>Use with available fluent helpers to apply the ProposalStartDate field to query operations.static final ActualStockField<String>Use with available fluent helpers to apply the ProposalVersion field to query operations.static final ActualStockField<BigDecimal>Use with available fluent helpers to apply the ReorderThresholdQuantity field to query operations.static final ActualStockField<String>Use with available fluent helpers to apply the StockLevelProposalID field to query operations.static final ActualStockOneToOneLink<ProposalHeader>Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionActualStock(String material, String plant, String mRPArea, LocalDateTime bufferLevelStartDate, LocalDateTime bufferLevelEndDate, BigDecimal materialSafetyStockQty, BigDecimal reorderThresholdQuantity, BigDecimal materialMaxStockLevelQuantity, String baseUnit, String changeMode, String stockLevelProposalID, String proposalVersion, LocalDateTime proposalStartDate, ProposalHeader toProposalHdr) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ProposalHeader entity (one to one) associated with this entity.static <T,DomainT>
ActualStockField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ActualStockField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 3Constraints: Not nullable, Precision: 0(Key Field) Constraints: Not nullable, Precision: 0Constraints: Not nullable, Maximum length: 1protected Stringprotected StringgetKey()(Key Field) Constraints: Not nullable, Maximum length: 18Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Precision: 13, Scale: 3(Key Field) Constraints: Not nullable, Maximum length: 10getPlant()(Key Field) Constraints: Not nullable, Maximum length: 4io.vavr.control.Option<ProposalHeader>Retrieval of associated ProposalHeader entity (one to one).Retrieval of associated ProposalHeader entity (one to one).Constraints: Not nullable, Precision: 0Constraints: Not nullable, Maximum length: 8Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Maximum length: 75getType()inthashCode()voidsetBaseUnit(String baseUnit) Constraints: Not nullable, Maximum length: 3voidsetBufferLevelEndDate(LocalDateTime bufferLevelEndDate) Constraints: Not nullable, Precision: 0voidsetBufferLevelStartDate(LocalDateTime bufferLevelStartDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetChangeMode(String changeMode) Constraints: Not nullable, Maximum length: 1voidsetMaterial(String material) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetMaterialMaxStockLevelQuantity(BigDecimal materialMaxStockLevelQuantity) Constraints: Not nullable, Precision: 13, Scale: 3voidsetMaterialSafetyStockQty(BigDecimal materialSafetyStockQty) Constraints: Not nullable, Precision: 13, Scale: 3voidsetMRPArea(String mRPArea) (Key Field) Constraints: Not nullable, Maximum length: 10void(Key Field) Constraints: Not nullable, Maximum length: 4voidsetProposalHdr(ProposalHeader value) Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.voidsetProposalStartDate(LocalDateTime proposalStartDate) Constraints: Not nullable, Precision: 0voidsetProposalVersion(String proposalVersion) Constraints: Not nullable, Maximum length: 8voidsetReorderThresholdQuantity(BigDecimal reorderThresholdQuantity) Constraints: Not nullable, Precision: 13, Scale: 3protected voidsetServicePathForFetch(String servicePathForFetch) voidsetStockLevelProposalID(String stockLevelProposalID) Constraints: Not nullable, Maximum length: 75toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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 ActualStock. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
MRP_AREA
Use with available fluent helpers to apply the MRPArea field to query operations. -
BUFFER_LEVEL_START_DATE
Use with available fluent helpers to apply the BufferLevelStartDate field to query operations. -
BUFFER_LEVEL_END_DATE
Use with available fluent helpers to apply the BufferLevelEndDate field to query operations. -
MATERIAL_SAFETY_STOCK_QTY
Use with available fluent helpers to apply the MaterialSafetyStockQty field to query operations. -
REORDER_THRESHOLD_QUANTITY
Use with available fluent helpers to apply the ReorderThresholdQuantity field to query operations. -
MATERIAL_MAX_STOCK_LEVEL_QUANTITY
Use with available fluent helpers to apply the MaterialMaxStockLevelQuantity field to query operations. -
BASE_UNIT
Use with available fluent helpers to apply the BaseUnit field to query operations. -
CHANGE_MODE
Use with available fluent helpers to apply the ChangeMode field to query operations. -
STOCK_LEVEL_PROPOSAL_ID
Use with available fluent helpers to apply the StockLevelProposalID field to query operations. -
PROPOSAL_VERSION
Use with available fluent helpers to apply the ProposalVersion field to query operations. -
PROPOSAL_START_DATE
Use with available fluent helpers to apply the ProposalStartDate field to query operations. -
TO_PROPOSAL_HDR
Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
-
-
Constructor Details
-
ActualStock
public ActualStock() -
ActualStock
public ActualStock(@Nullable String material, @Nullable String plant, @Nullable String mRPArea, @Nullable LocalDateTime bufferLevelStartDate, @Nullable LocalDateTime bufferLevelEndDate, @Nullable BigDecimal materialSafetyStockQty, @Nullable BigDecimal reorderThresholdQuantity, @Nullable BigDecimal materialMaxStockLevelQuantity, @Nullable String baseUnit, @Nullable String changeMode, @Nullable String stockLevelProposalID, @Nullable String proposalVersion, @Nullable LocalDateTime proposalStartDate, @Nullable ProposalHeader toProposalHdr)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ActualStock>
-
setMaterial
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Parameters:
material- Material Number
-
setPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setMRPArea
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MRPArea
- Parameters:
mRPArea- MRP Area
-
setBufferLevelStartDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: BufferLevelStartDate
- Parameters:
bufferLevelStartDate- Valid-From Date
-
setBufferLevelEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: BufferLevelEndDate
- Parameters:
bufferLevelEndDate- Valid-To Date
-
setMaterialSafetyStockQty
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: MaterialSafetyStockQty
- Parameters:
materialSafetyStockQty- Safety Stock
-
setReorderThresholdQuantity
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: ReorderThresholdQuantity
- Parameters:
reorderThresholdQuantity- Reorder Point
-
setMaterialMaxStockLevelQuantity
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: MaterialMaxStockLevelQuantity
- Parameters:
materialMaxStockLevelQuantity- Maximum Stock Level
-
setBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Parameters:
baseUnit- Base Unit of Measure
-
setChangeMode
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ChangeMode
- Parameters:
changeMode- Mode of change
-
setStockLevelProposalID
Constraints: Not nullable, Maximum length: 75Original property name from the Odata EDM: StockLevelProposalID
- Parameters:
stockLevelProposalID- Proposal Id
-
setProposalVersion
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProposalVersion
- Parameters:
proposalVersion- Proposal Version
-
setProposalStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalStartDate
- Parameters:
proposalStartDate- Proposal Validity From Date
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ActualStock>
-
getKey
- Overrides:
getKeyin classVdmObject<ActualStock>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ActualStock>
-
fromMap
- Overrides:
fromMapin classVdmObject<ActualStock>
-
field
@Nonnull public static <T> ActualStockField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
fieldName- The name of the extension field as returned by the OData service.fieldType- The Java type to use for the extension field when performing value comparisons.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> ActualStockField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<ActualStock>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ActualStock>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ActualStock>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ActualStock>
-
fetchProposalHdr
Fetches the ProposalHeader entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProposalHdr.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated ProposalHeader entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getProposalHdrOrFetch
Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.If the navigation property to_ProposalHdr of a queried ActualStock 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.
- Returns:
- List of associated ProposalHeader entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getProposalHdrIfPresent
Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.If the navigation property for an entity ActualStock 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 to_ProposalHdr is already loaded, the result will
contain the ProposalHeader entity. If not, an
Optionwith result stateemptyis returned.
-
setProposalHdr
Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.- Parameters:
value- New ProposalHeader entity.
-
builder
-
getMaterial
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Returns:
- Material Number
-
getPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getMRPArea
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MRPArea
- Returns:
- MRP Area
-
getBufferLevelStartDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: BufferLevelStartDate
- Returns:
- Valid-From Date
-
getBufferLevelEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: BufferLevelEndDate
- Returns:
- Valid-To Date
-
getMaterialSafetyStockQty
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: MaterialSafetyStockQty
- Returns:
- Safety Stock
-
getReorderThresholdQuantity
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: ReorderThresholdQuantity
- Returns:
- Reorder Point
-
getMaterialMaxStockLevelQuantity
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: MaterialMaxStockLevelQuantity
- Returns:
- Maximum Stock Level
-
getBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Returns:
- Base Unit of Measure
-
getChangeMode
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ChangeMode
- Returns:
- Mode of change
-
getStockLevelProposalID
Constraints: Not nullable, Maximum length: 75Original property name from the Odata EDM: StockLevelProposalID
- Returns:
- Proposal Id
-
getProposalVersion
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProposalVersion
- Returns:
- Proposal Version
-
getProposalStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalStartDate
- Returns:
- Proposal Validity From Date
-
toString
- Overrides:
toStringin classVdmObject<ActualStock>
-
equals
- Overrides:
equalsin classVdmEntity<ActualStock>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ActualStock>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ActualStock>
-