Class ProductMaterialBsdComposition
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProductMaterialBsdComposition_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductMaterialBsdComposition instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionUse with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<ProductMaterialBsdComposition>Selector for all available fields of ProductMaterialBsdComposition.static final SimpleProperty.String<ProductMaterialBsdComposition>static final SimpleProperty.String<ProductMaterialBsdComposition>static final SimpleProperty.Guid<ProductMaterialBsdComposition>Use with available request builders to apply the _AfterProductionComponent navigation property to query operations.static final NavigationProperty.Collection<ProductMaterialBsdComposition,ProdMatlBsdBeforeProdnComp> Use with available request builders to apply the _BeforeProductionComponent navigation property to query operations.Use with available request builders to apply the _ProducedSubstance navigation property to query operations.static final SimpleProperty.DateTime<ProductMaterialBsdComposition>static final SimpleProperty.DateTime<ProductMaterialBsdComposition>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionProductMaterialBsdComposition(UUID chmlCompositionUUID, String chemicalComplianceInfo, String chmlCompositionStatus, OffsetDateTime validityStartDateTime, OffsetDateTime validityEndDateTime, Collection<SAP__Message> _Messages, List<ProdMatlBsdAfterProdnComp> to_AfterProductionComponent, List<ProdMatlBsdBeforeProdnComp> to_BeforeProductionComponent, List<ProdMatlBsdProducedSubst> to_ProducedSubstance) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ProdMatlBsdAfterProdnComp entities.voidAdds elements to the list of associated ProdMatlBsdBeforeProdnComp entities.voidaddProducedSubstance(ProdMatlBsdProducedSubst... entity) Adds elements to the list of associated ProdMatlBsdProducedSubst entities.builder()protected booleancreateAndReleaseVersion(String chemicalComplianceInfo, Collection<D_ProdMatlBsdCmpstnCrteAfterP> _AfterProductionComponent, Collection<D_ProdMatlBsdCmpstnCrteBeforeP> _BeforeProductionComponent, Collection<D_ProdMatlBsdCmpstnCrteSubstP> _ProducedSubstance) Action that can be applied to a collection of entities of this class.booleanprotected voidConstraints: Not nullableio.vavr.control.Option<List<ProdMatlBsdAfterProdnComp>>Retrieval of associated ProdMatlBsdAfterProdnComp entities (one to many).io.vavr.control.Option<List<ProdMatlBsdBeforeProdnComp>>Retrieval of associated ProdMatlBsdBeforeProdnComp entities (one to many).Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullableprotected Stringprotected Stringprotected ODataEntityKeygetKey()io.vavr.control.Option<List<ProdMatlBsdProducedSubst>>Retrieval of associated ProdMatlBsdProducedSubst entities (one to many).getType()Constraints: NullableConstraints: NullableinthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidOverwrites the list of associated ProdMatlBsdAfterProdnComp entities for the loaded navigation property _AfterProductionComponent.voidOverwrites the list of associated ProdMatlBsdBeforeProdnComp entities for the loaded navigation property _BeforeProductionComponent.voidsetChemicalComplianceInfo(String chemicalComplianceInfo) Constraints: Not nullable, Maximum length: 12voidsetChmlCompositionStatus(String chmlCompositionStatus) Constraints: Not nullable, Maximum length: 2voidsetChmlCompositionUUID(UUID chmlCompositionUUID) (Key Field) Constraints: Not nullablevoidOverwrites the list of associated ProdMatlBsdProducedSubst entities for the loaded navigation property _ProducedSubstance.voidsetValidityEndDateTime(OffsetDateTime validityEndDateTime) Constraints: NullablevoidsetValidityStartDateTime(OffsetDateTime validityStartDateTime) Constraints: NullabletoString()validate(String chemicalComplianceInfo, Collection<D_ProdMatlBsdCmpstnCrteAfterP> _AfterProductionComponent, Collection<D_ProdMatlBsdCmpstnCrteBeforeP> _BeforeProductionComponent, Collection<D_ProdMatlBsdCmpstnCrteSubstP> _ProducedSubstance) Action that can be applied to a collection of entities of this class.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 ProductMaterialBsdComposition. -
CHML_COMPOSITION_UUID
-
CHEMICAL_COMPLIANCE_INFO
-
CHML_COMPOSITION_STATUS
-
VALIDITY_START_DATE_TIME
-
VALIDITY_END_DATE_TIME
-
_MESSAGES
public static final ComplexProperty.Collection<ProductMaterialBsdComposition,SAP__Message> _MESSAGESUse with available request builders to apply the SAP__Messages complex property to query operations. -
TO__AFTER_PRODUCTION_COMPONENT
public static final NavigationProperty.Collection<ProductMaterialBsdComposition,ProdMatlBsdAfterProdnComp> TO__AFTER_PRODUCTION_COMPONENTUse with available request builders to apply the _AfterProductionComponent navigation property to query operations. -
TO__BEFORE_PRODUCTION_COMPONENT
public static final NavigationProperty.Collection<ProductMaterialBsdComposition,ProdMatlBsdBeforeProdnComp> TO__BEFORE_PRODUCTION_COMPONENTUse with available request builders to apply the _BeforeProductionComponent navigation property to query operations. -
TO__PRODUCED_SUBSTANCE
public static final NavigationProperty.Collection<ProductMaterialBsdComposition,ProdMatlBsdProducedSubst> TO__PRODUCED_SUBSTANCEUse with available request builders to apply the _ProducedSubstance navigation property to query operations.
-
-
Constructor Details
-
ProductMaterialBsdComposition
public ProductMaterialBsdComposition() -
ProductMaterialBsdComposition
public ProductMaterialBsdComposition(@Nullable UUID chmlCompositionUUID, @Nullable String chemicalComplianceInfo, @Nullable String chmlCompositionStatus, @Nullable OffsetDateTime validityStartDateTime, @Nullable OffsetDateTime validityEndDateTime, @Nullable Collection<SAP__Message> _Messages, List<ProdMatlBsdAfterProdnComp> to_AfterProductionComponent, List<ProdMatlBsdBeforeProdnComp> to_BeforeProductionComponent, List<ProdMatlBsdProducedSubst> to_ProducedSubstance)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductMaterialBsdComposition>
-
setChmlCompositionUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ChmlCompositionUUID
- Parameters:
chmlCompositionUUID- Chemical Composition
-
setChemicalComplianceInfo
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ChemicalComplianceInfo
- Parameters:
chemicalComplianceInfo- Chemical Compliance Information
-
setChmlCompositionStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ChmlCompositionStatus
- Parameters:
chmlCompositionStatus- Processing Status for Chemical Composition
-
setValidityStartDateTime
Constraints: NullableOriginal property name from the Odata EDM: ValidityStartDateTime
- Parameters:
validityStartDateTime- Valid-From Date Time Stamp
-
setValidityEndDateTime
Constraints: NullableOriginal property name from the Odata EDM: ValidityEndDateTime
- Parameters:
validityEndDateTime- Valid-To Date Time Stamp
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductMaterialBsdComposition>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductMaterialBsdComposition>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductMaterialBsdComposition>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductMaterialBsdComposition>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductMaterialBsdComposition>
-
getAfterProductionComponentIfPresent
@Nonnull public io.vavr.control.Option<List<ProdMatlBsdAfterProdnComp>> getAfterProductionComponentIfPresent()Retrieval of associated ProdMatlBsdAfterProdnComp entities (one to many). This corresponds to the OData navigation property _AfterProductionComponent.If the navigation property for an entity ProductMaterialBsdComposition 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 _AfterProductionComponent is already loaded, the result
will contain the ProdMatlBsdAfterProdnComp entities. If not, an
Optionwith result stateemptyis returned.
-
setAfterProductionComponent
Overwrites the list of associated ProdMatlBsdAfterProdnComp entities for the loaded navigation property _AfterProductionComponent.If the navigation property _AfterProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdAfterProdnComp entities.
-
addAfterProductionComponent
Adds elements to the list of associated ProdMatlBsdAfterProdnComp entities. This corresponds to the OData navigation property _AfterProductionComponent.If the navigation property _AfterProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdAfterProdnComp entities.
-
getBeforeProductionComponentIfPresent
@Nonnull public io.vavr.control.Option<List<ProdMatlBsdBeforeProdnComp>> getBeforeProductionComponentIfPresent()Retrieval of associated ProdMatlBsdBeforeProdnComp entities (one to many). This corresponds to the OData navigation property _BeforeProductionComponent.If the navigation property for an entity ProductMaterialBsdComposition 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 _BeforeProductionComponent is already loaded, the
result will contain the ProdMatlBsdBeforeProdnComp entities. If not, an
Optionwith result stateemptyis returned.
-
setBeforeProductionComponent
Overwrites the list of associated ProdMatlBsdBeforeProdnComp entities for the loaded navigation property _BeforeProductionComponent.If the navigation property _BeforeProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdBeforeProdnComp entities.
-
addBeforeProductionComponent
Adds elements to the list of associated ProdMatlBsdBeforeProdnComp entities. This corresponds to the OData navigation property _BeforeProductionComponent.If the navigation property _BeforeProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdBeforeProdnComp entities.
-
getProducedSubstanceIfPresent
@Nonnull public io.vavr.control.Option<List<ProdMatlBsdProducedSubst>> getProducedSubstanceIfPresent()Retrieval of associated ProdMatlBsdProducedSubst entities (one to many). This corresponds to the OData navigation property _ProducedSubstance.If the navigation property for an entity ProductMaterialBsdComposition 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 _ProducedSubstance is already loaded, the result will
contain the ProdMatlBsdProducedSubst entities. If not, an
Optionwith result stateemptyis returned.
-
setProducedSubstance
Overwrites the list of associated ProdMatlBsdProducedSubst entities for the loaded navigation property _ProducedSubstance.If the navigation property _ProducedSubstance of a queried ProductMaterialBsdComposition 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 ProdMatlBsdProducedSubst entities.
-
addProducedSubstance
Adds elements to the list of associated ProdMatlBsdProducedSubst entities. This corresponds to the OData navigation property _ProducedSubstance.If the navigation property _ProducedSubstance of a queried ProductMaterialBsdComposition 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 ProdMatlBsdProducedSubst entities.
-
createAndReleaseVersion
@Nonnull public static BoundAction.CollectionToSingle<ProductMaterialBsdComposition,ProductMaterialBsdComposition> createAndReleaseVersion(@Nonnull String chemicalComplianceInfo, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteAfterP> _AfterProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteBeforeP> _BeforeProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteSubstP> _ProducedSubstance) Action that can be applied to a collection of entities of this class.- Parameters:
_ProducedSubstance- Constraints: Not nullableOriginal parameter name from the Odata EDM: _ProducedSubstance
chemicalComplianceInfo- Constraints: Not nullable, Maximum length: 12Original parameter name from the Odata EDM: ChemicalComplianceInfo
_BeforeProductionComponent- Constraints: Not nullableOriginal parameter name from the Odata EDM: _BeforeProductionComponent
_AfterProductionComponent- Constraints: Not nullableOriginal parameter name from the Odata EDM: _AfterProductionComponent
- Returns:
- Action object prepared with the given parameters to be applied to a collection of entities of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
validate
@Nonnull public static BoundAction.CollectionToSingle<ProductMaterialBsdComposition,Void> validate(@Nonnull String chemicalComplianceInfo, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteAfterP> _AfterProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteBeforeP> _BeforeProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteSubstP> _ProducedSubstance) Action that can be applied to a collection of entities of this class.- Parameters:
_ProducedSubstance- Constraints: Not nullableOriginal parameter name from the Odata EDM: _ProducedSubstance
chemicalComplianceInfo- Constraints: Not nullable, Maximum length: 12Original parameter name from the Odata EDM: ChemicalComplianceInfo
_BeforeProductionComponent- Constraints: Not nullableOriginal parameter name from the Odata EDM: _BeforeProductionComponent
_AfterProductionComponent- Constraints: Not nullableOriginal parameter name from the Odata EDM: _AfterProductionComponent
- Returns:
- Action object prepared with the given parameters to be applied to a collection of entities of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getChmlCompositionUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ChmlCompositionUUID
- Returns:
- Chemical Composition
-
getChemicalComplianceInfo
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ChemicalComplianceInfo
- Returns:
- Chemical Compliance Information
-
getChmlCompositionStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ChmlCompositionStatus
- Returns:
- Processing Status for Chemical Composition
-
getValidityStartDateTime
Constraints: NullableOriginal property name from the Odata EDM: ValidityStartDateTime
- Returns:
- Valid-From Date Time Stamp
-
getValidityEndDateTime
Constraints: NullableOriginal property name from the Odata EDM: ValidityEndDateTime
- Returns:
- Valid-To Date Time Stamp
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<ProductMaterialBsdComposition>
-
equals
- Overrides:
equalsin classVdmEntity<ProductMaterialBsdComposition>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductMaterialBsdComposition>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductMaterialBsdComposition>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductMaterialBsdComposition>
-