Class PolymerComposition
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: PolymerComposition_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of PolymerComposition instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<PolymerComposition,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<PolymerComposition>Selector for all available fields of PolymerComposition.static final SimpleProperty.String<PolymerComposition>static final SimpleProperty.Guid<PolymerComposition>static final SimpleProperty.String<PolymerComposition>static final SimpleProperty.String<PolymerComposition>static final NavigationProperty.Collection<PolymerComposition,PolymerComponent> Use with available request builders to apply the _Component navigation property to query operations.static final SimpleProperty.DateTime<PolymerComposition>static final SimpleProperty.DateTime<PolymerComposition>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionPolymerComposition(UUID chmlCompositionUUID, String companySubstance, String polymerCompositionName, String chmlCompositionStatus, OffsetDateTime validityStartDateTime, OffsetDateTime validityEndDateTime, Collection<SAP__Message> _Messages, List<PolymerComponent> to_Component) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(PolymerComponent... entity) Adds elements to the list of associated PolymerComponent entities.builder()protected booleancreateAndReleaseVersion(String companySubstance, String polymerCompositionName, Collection<D_PolymerCmpstnCreateCompP> _Components) Action that can be applied to a collection of entities of this class.booleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullableConstraints: Not nullable, Maximum length: 12io.vavr.control.Option<List<PolymerComponent>>Retrieval of associated PolymerComponent entities (one to many).protected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 132getType()Constraints: NullableConstraints: NullableinthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetChmlCompositionStatus(String chmlCompositionStatus) Constraints: Not nullable, Maximum length: 2voidsetChmlCompositionUUID(UUID chmlCompositionUUID) (Key Field) Constraints: Not nullablevoidsetCompanySubstance(String companySubstance) Constraints: Not nullable, Maximum length: 12voidsetComponent(List<PolymerComponent> value) Overwrites the list of associated PolymerComponent entities for the loaded navigation property _Component.voidsetPolymerCompositionName(String polymerCompositionName) Constraints: Not nullable, Maximum length: 132voidsetValidityEndDateTime(OffsetDateTime validityEndDateTime) Constraints: NullablevoidsetValidityStartDateTime(OffsetDateTime validityStartDateTime) Constraints: NullabletoString()validate(String companySubstance, String polymerCompositionName, Collection<D_PolymerCmpstnCreateCompP> _Components) 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 PolymerComposition. -
CHML_COMPOSITION_UUID
-
COMPANY_SUBSTANCE
-
POLYMER_COMPOSITION_NAME
-
CHML_COMPOSITION_STATUS
-
VALIDITY_START_DATE_TIME
-
VALIDITY_END_DATE_TIME
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__COMPONENT
public static final NavigationProperty.Collection<PolymerComposition,PolymerComponent> TO__COMPONENTUse with available request builders to apply the _Component navigation property to query operations.
-
-
Constructor Details
-
PolymerComposition
public PolymerComposition() -
PolymerComposition
public PolymerComposition(@Nullable UUID chmlCompositionUUID, @Nullable String companySubstance, @Nullable String polymerCompositionName, @Nullable String chmlCompositionStatus, @Nullable OffsetDateTime validityStartDateTime, @Nullable OffsetDateTime validityEndDateTime, @Nullable Collection<SAP__Message> _Messages, List<PolymerComponent> to_Component)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<PolymerComposition>
-
setChmlCompositionUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ChmlCompositionUUID
- Parameters:
chmlCompositionUUID- Chemical Composition
-
setCompanySubstance
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CompanySubstance
- Parameters:
companySubstance- Related Substance of the Composition
-
setPolymerCompositionName
Constraints: Not nullable, Maximum length: 132Original property name from the Odata EDM: PolymerCompositionName
- Parameters:
polymerCompositionName- Polymer Composition Name
-
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<PolymerComposition>
-
getKey
- Overrides:
getKeyin classVdmObject<PolymerComposition>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<PolymerComposition>
-
fromMap
- Overrides:
fromMapin classVdmObject<PolymerComposition>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<PolymerComposition>
-
getComponentIfPresent
Retrieval of associated PolymerComponent entities (one to many). This corresponds to the OData navigation property _Component.If the navigation property for an entity PolymerComposition 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 _Component is already loaded, the result will contain
the PolymerComponent entities. If not, an
Optionwith result stateemptyis returned.
-
setComponent
Overwrites the list of associated PolymerComponent entities for the loaded navigation property _Component.If the navigation property _Component of a queried PolymerComposition 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 PolymerComponent entities.
-
addComponent
Adds elements to the list of associated PolymerComponent entities. This corresponds to the OData navigation property _Component.If the navigation property _Component of a queried PolymerComposition 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 PolymerComponent entities.
-
createAndReleaseVersion
@Nonnull public static BoundAction.CollectionToSingle<PolymerComposition,PolymerComposition> createAndReleaseVersion(@Nonnull String companySubstance, @Nonnull String polymerCompositionName, @Nonnull Collection<D_PolymerCmpstnCreateCompP> _Components) Action that can be applied to a collection of entities of this class.- Parameters:
companySubstance- Constraints: Not nullable, Maximum length: 12Original parameter name from the Odata EDM: CompanySubstance
_Components- Constraints: Not nullableOriginal parameter name from the Odata EDM: _Components
polymerCompositionName- Constraints: Not nullable, Maximum length: 132Original parameter name from the Odata EDM: PolymerCompositionName
- 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<PolymerComposition,Void> validate(@Nonnull String companySubstance, @Nonnull String polymerCompositionName, @Nonnull Collection<D_PolymerCmpstnCreateCompP> _Components) Action that can be applied to a collection of entities of this class.- Parameters:
companySubstance- Constraints: Not nullable, Maximum length: 12Original parameter name from the Odata EDM: CompanySubstance
_Components- Constraints: Not nullableOriginal parameter name from the Odata EDM: _Components
polymerCompositionName- Constraints: Not nullable, Maximum length: 132Original parameter name from the Odata EDM: PolymerCompositionName
- 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
-
getCompanySubstance
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CompanySubstance
- Returns:
- Related Substance of the Composition
-
getPolymerCompositionName
Constraints: Not nullable, Maximum length: 132Original property name from the Odata EDM: PolymerCompositionName
- Returns:
- Polymer Composition Name
-
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<PolymerComposition>
-
equals
- Overrides:
equalsin classVdmEntity<PolymerComposition>
-
canEqual
- Overrides:
canEqualin classVdmEntity<PolymerComposition>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<PolymerComposition>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<PolymerComposition>
-