Class CompanySubstance
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: CompanySubstance_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of CompanySubstance instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<CompanySubstance,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<CompanySubstance>Selector for all available fields of CompanySubstance.static final SimpleProperty.String<CompanySubstance>static final SimpleProperty.String<CompanySubstance>static final SimpleProperty.String<CompanySubstance>static final SimpleProperty.Guid<CompanySubstance>static final SimpleProperty.String<CompanySubstance>static final SimpleProperty.String<CompanySubstance>static final SimpleProperty.Guid<CompanySubstance>static final SimpleProperty.String<CompanySubstance>static final SimpleProperty.Boolean<CompanySubstance>static final SimpleProperty.String<CompanySubstance>Use with available request builders to apply the _CompanySubstanceText navigation property to query operations.Use with available request builders to apply the _CompanySubstanceVarAssgmt 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
ConstructorsConstructorDescriptionCompanySubstance(UUID companySubstanceUUID, String companySubstance, String companySubstanceInternalName, String responsibleUnit, Boolean polymerIsBsdOnOECDDef, UUID listedSubstanceUUID, String listedSubstance, String cASNumber, String eCNumber, String molecularFormula, Collection<SAP__Message> _Messages, List<CompanySubstanceText> to_CompanySubstanceText, List<CompanySubstanceVarAssgmt> to_CompanySubstanceVarAssgmt) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompanySubstanceText(CompanySubstanceText... entity) Adds elements to the list of associated CompanySubstanceText entities.voidAdds elements to the list of associated CompanySubstanceVarAssgmt entities.builder()protected booleancreateOrUpdateCompanySubstance(String companySubstance, String responsibleUnit, Collection<D_CoSubstCrteOrUpdtTextP> _CompanySubstanceTexts, Collection<D_CoSubstCrteOrUpdtLstdSubstP> _ListedSubstances, String companySubstanceInternalName, Boolean polymerIsBsdOnOECDDef) Action that can be applied to a collection of entities of this class.createWithListedSubstance(String companySubstance, String responsibleUnit, String listedSubstanceName, Collection<D_CoSubstCrteWthLstdSubstTextP> _CompanySubstanceTexts, String companySubstanceInternalName, Boolean polymerIsBsdOnOECDDef, String cASNumber, String eCNumber, String molecularFormula) Action that can be applied to a collection of entities of this class.booleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 20Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 255io.vavr.control.Option<List<CompanySubstanceText>>Retrieval of associated CompanySubstanceText entities (one to many).(Key Field) Constraints: Not nullableio.vavr.control.Option<List<CompanySubstanceVarAssgmt>>Retrieval of associated CompanySubstanceVarAssgmt entities (one to many).protected StringConstraints: Not nullable, Maximum length: 9protected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 12Constraints: NullableConstraints: Not nullable, Maximum length: 60Constraints: Not nullableConstraints: Not nullable, Maximum length: 10getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetCASNumber(String cASNumber) Constraints: Not nullable, Maximum length: 20voidsetCompanySubstance(String companySubstance) Constraints: Not nullable, Maximum length: 12voidsetCompanySubstanceInternalName(String companySubstanceInternalName) Constraints: Not nullable, Maximum length: 255voidOverwrites the list of associated CompanySubstanceText entities for the loaded navigation property _CompanySubstanceText.voidsetCompanySubstanceUUID(UUID companySubstanceUUID) (Key Field) Constraints: Not nullablevoidOverwrites the list of associated CompanySubstanceVarAssgmt entities for the loaded navigation property _CompanySubstanceVarAssgmt.voidsetECNumber(String eCNumber) Constraints: Not nullable, Maximum length: 9voidsetListedSubstance(String listedSubstance) Constraints: Not nullable, Maximum length: 12voidsetListedSubstanceUUID(UUID listedSubstanceUUID) Constraints: NullablevoidsetMolecularFormula(String molecularFormula) Constraints: Not nullable, Maximum length: 60voidsetPolymerIsBsdOnOECDDef(Boolean polymerIsBsdOnOECDDef) Constraints: Not nullablevoidsetResponsibleUnit(String responsibleUnit) Constraints: Not nullable, Maximum length: 10toString()validateCompanySubstance(String companySubstance, String responsibleUnit, Collection<D_CoSubstCrteOrUpdtTextP> _CompanySubstanceTexts, Collection<D_CoSubstCrteOrUpdtLstdSubstP> _ListedSubstances, String companySubstanceInternalName, Boolean polymerIsBsdOnOECDDef) Action that can be applied to a collection of entities of this class.validateWithListedSubstance(String companySubstance, String responsibleUnit, String listedSubstanceName, Collection<D_CoSubstCrteWthLstdSubstTextP> _CompanySubstanceTexts, String companySubstanceInternalName, Boolean polymerIsBsdOnOECDDef, String cASNumber, String eCNumber, String molecularFormula) 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 CompanySubstance. -
COMPANY_SUBSTANCE_UUID
-
COMPANY_SUBSTANCE
-
COMPANY_SUBSTANCE_INTERNAL_NAME
-
RESPONSIBLE_UNIT
-
POLYMER_IS_BSD_ON_OECD_DEF
-
LISTED_SUBSTANCE_UUID
-
LISTED_SUBSTANCE
-
CAS_NUMBER
-
EC_NUMBER
-
MOLECULAR_FORMULA
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__COMPANY_SUBSTANCE_TEXT
public static final NavigationProperty.Collection<CompanySubstance,CompanySubstanceText> TO__COMPANY_SUBSTANCE_TEXTUse with available request builders to apply the _CompanySubstanceText navigation property to query operations. -
TO__COMPANY_SUBSTANCE_VAR_ASSGMT
public static final NavigationProperty.Collection<CompanySubstance,CompanySubstanceVarAssgmt> TO__COMPANY_SUBSTANCE_VAR_ASSGMTUse with available request builders to apply the _CompanySubstanceVarAssgmt navigation property to query operations.
-
-
Constructor Details
-
CompanySubstance
public CompanySubstance() -
CompanySubstance
public CompanySubstance(@Nullable UUID companySubstanceUUID, @Nullable String companySubstance, @Nullable String companySubstanceInternalName, @Nullable String responsibleUnit, @Nullable Boolean polymerIsBsdOnOECDDef, @Nullable UUID listedSubstanceUUID, @Nullable String listedSubstance, @Nullable String cASNumber, @Nullable String eCNumber, @Nullable String molecularFormula, @Nullable Collection<SAP__Message> _Messages, List<CompanySubstanceText> to_CompanySubstanceText, List<CompanySubstanceVarAssgmt> to_CompanySubstanceVarAssgmt)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<CompanySubstance>
-
setCompanySubstanceUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: CompanySubstanceUUID
- Parameters:
companySubstanceUUID- Substance
-
setCompanySubstance
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CompanySubstance
- Parameters:
companySubstance- Internal Number
-
setCompanySubstanceInternalName
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: CompanySubstanceInternalName
- Parameters:
companySubstanceInternalName- Internal Substance Name
-
setResponsibleUnit
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ResponsibleUnit
- Parameters:
responsibleUnit- Responsible Unit
-
setPolymerIsBsdOnOECDDef
Constraints: Not nullableOriginal property name from the Odata EDM: PolymerIsBsdOnOECDDef
- Parameters:
polymerIsBsdOnOECDDef- Polymer Based on OECD Definition
-
setListedSubstanceUUID
Constraints: NullableOriginal property name from the Odata EDM: ListedSubstanceUUID
- Parameters:
listedSubstanceUUID- Listed Substance UUID
-
setListedSubstance
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ListedSubstance
- Parameters:
listedSubstance- Listed Substance
-
setCASNumber
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: CASNumber
- Parameters:
cASNumber- CAS Number
-
setECNumber
Constraints: Not nullable, Maximum length: 9Original property name from the Odata EDM: ECNumber
- Parameters:
eCNumber- Listed Substance EC Number
-
setMolecularFormula
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: MolecularFormula
- Parameters:
molecularFormula- Molecular Formula
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<CompanySubstance>
-
getKey
- Overrides:
getKeyin classVdmObject<CompanySubstance>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<CompanySubstance>
-
fromMap
- Overrides:
fromMapin classVdmObject<CompanySubstance>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<CompanySubstance>
-
getCompanySubstanceTextIfPresent
@Nonnull public io.vavr.control.Option<List<CompanySubstanceText>> getCompanySubstanceTextIfPresent()Retrieval of associated CompanySubstanceText entities (one to many). This corresponds to the OData navigation property _CompanySubstanceText.If the navigation property for an entity CompanySubstance 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 _CompanySubstanceText is already loaded, the result
will contain the CompanySubstanceText entities. If not, an
Optionwith result stateemptyis returned.
-
setCompanySubstanceText
Overwrites the list of associated CompanySubstanceText entities for the loaded navigation property _CompanySubstanceText.If the navigation property _CompanySubstanceText of a queried CompanySubstance 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 CompanySubstanceText entities.
-
addCompanySubstanceText
Adds elements to the list of associated CompanySubstanceText entities. This corresponds to the OData navigation property _CompanySubstanceText.If the navigation property _CompanySubstanceText of a queried CompanySubstance 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 CompanySubstanceText entities.
-
getCompanySubstanceVarAssgmtIfPresent
@Nonnull public io.vavr.control.Option<List<CompanySubstanceVarAssgmt>> getCompanySubstanceVarAssgmtIfPresent()Retrieval of associated CompanySubstanceVarAssgmt entities (one to many). This corresponds to the OData navigation property _CompanySubstanceVarAssgmt.If the navigation property for an entity CompanySubstance 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 _CompanySubstanceVarAssgmt is already loaded, the
result will contain the CompanySubstanceVarAssgmt entities. If not, an
Optionwith result stateemptyis returned.
-
setCompanySubstanceVarAssgmt
Overwrites the list of associated CompanySubstanceVarAssgmt entities for the loaded navigation property _CompanySubstanceVarAssgmt.If the navigation property _CompanySubstanceVarAssgmt of a queried CompanySubstance 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 CompanySubstanceVarAssgmt entities.
-
addCompanySubstanceVarAssgmt
Adds elements to the list of associated CompanySubstanceVarAssgmt entities. This corresponds to the OData navigation property _CompanySubstanceVarAssgmt.If the navigation property _CompanySubstanceVarAssgmt of a queried CompanySubstance 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 CompanySubstanceVarAssgmt entities.
-
createOrUpdateCompanySubstance
@Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,CompanySubstance> createOrUpdateCompanySubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull Collection<D_CoSubstCrteOrUpdtTextP> _CompanySubstanceTexts, @Nonnull Collection<D_CoSubstCrteOrUpdtLstdSubstP> _ListedSubstances, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef) 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
_CompanySubstanceTexts- Constraints: Not nullableOriginal parameter name from the Odata EDM: _CompanySubstanceTexts
companySubstanceInternalName- Constraints: Not nullable, Maximum length: 255Original parameter name from the Odata EDM: CompanySubstanceInternalName
_ListedSubstances- Constraints: Not nullableOriginal parameter name from the Odata EDM: _ListedSubstances
responsibleUnit- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ResponsibleUnit
polymerIsBsdOnOECDDef- Constraints: Not nullableOriginal parameter name from the Odata EDM: PolymerIsBsdOnOECDDef
- 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.
-
createWithListedSubstance
@Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,CompanySubstance> createWithListedSubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull String listedSubstanceName, @Nonnull Collection<D_CoSubstCrteWthLstdSubstTextP> _CompanySubstanceTexts, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef, @Nonnull String cASNumber, @Nonnull String eCNumber, @Nonnull String molecularFormula) 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
eCNumber- Constraints: Not nullable, Maximum length: 9Original parameter name from the Odata EDM: ECNumber
listedSubstanceName- Constraints: Not nullable, Maximum length: 1333Original parameter name from the Odata EDM: ListedSubstanceName
_CompanySubstanceTexts- Constraints: Not nullableOriginal parameter name from the Odata EDM: _CompanySubstanceTexts
molecularFormula- Constraints: Not nullable, Maximum length: 60Original parameter name from the Odata EDM: MolecularFormula
companySubstanceInternalName- Constraints: Not nullable, Maximum length: 255Original parameter name from the Odata EDM: CompanySubstanceInternalName
cASNumber- Constraints: Not nullable, Maximum length: 20Original parameter name from the Odata EDM: CASNumber
responsibleUnit- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ResponsibleUnit
polymerIsBsdOnOECDDef- Constraints: Not nullableOriginal parameter name from the Odata EDM: PolymerIsBsdOnOECDDef
- 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.
-
validateWithListedSubstance
@Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,Void> validateWithListedSubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull String listedSubstanceName, @Nonnull Collection<D_CoSubstCrteWthLstdSubstTextP> _CompanySubstanceTexts, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef, @Nonnull String cASNumber, @Nonnull String eCNumber, @Nonnull String molecularFormula) 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
eCNumber- Constraints: Not nullable, Maximum length: 9Original parameter name from the Odata EDM: ECNumber
listedSubstanceName- Constraints: Not nullable, Maximum length: 1333Original parameter name from the Odata EDM: ListedSubstanceName
_CompanySubstanceTexts- Constraints: Not nullableOriginal parameter name from the Odata EDM: _CompanySubstanceTexts
molecularFormula- Constraints: Not nullable, Maximum length: 60Original parameter name from the Odata EDM: MolecularFormula
companySubstanceInternalName- Constraints: Not nullable, Maximum length: 255Original parameter name from the Odata EDM: CompanySubstanceInternalName
cASNumber- Constraints: Not nullable, Maximum length: 20Original parameter name from the Odata EDM: CASNumber
responsibleUnit- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ResponsibleUnit
polymerIsBsdOnOECDDef- Constraints: Not nullableOriginal parameter name from the Odata EDM: PolymerIsBsdOnOECDDef
- 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.
-
validateCompanySubstance
@Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,Void> validateCompanySubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull Collection<D_CoSubstCrteOrUpdtTextP> _CompanySubstanceTexts, @Nonnull Collection<D_CoSubstCrteOrUpdtLstdSubstP> _ListedSubstances, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef) 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
_CompanySubstanceTexts- Constraints: Not nullableOriginal parameter name from the Odata EDM: _CompanySubstanceTexts
companySubstanceInternalName- Constraints: Not nullable, Maximum length: 255Original parameter name from the Odata EDM: CompanySubstanceInternalName
_ListedSubstances- Constraints: Not nullableOriginal parameter name from the Odata EDM: _ListedSubstances
responsibleUnit- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: ResponsibleUnit
polymerIsBsdOnOECDDef- Constraints: Not nullableOriginal parameter name from the Odata EDM: PolymerIsBsdOnOECDDef
- 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
-
getCompanySubstanceUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: CompanySubstanceUUID
- Returns:
- Substance
-
getCompanySubstance
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CompanySubstance
- Returns:
- Internal Number
-
getCompanySubstanceInternalName
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: CompanySubstanceInternalName
- Returns:
- Internal Substance Name
-
getResponsibleUnit
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ResponsibleUnit
- Returns:
- Responsible Unit
-
getPolymerIsBsdOnOECDDef
Constraints: Not nullableOriginal property name from the Odata EDM: PolymerIsBsdOnOECDDef
- Returns:
- Polymer Based on OECD Definition
-
getListedSubstanceUUID
Constraints: NullableOriginal property name from the Odata EDM: ListedSubstanceUUID
- Returns:
- Listed Substance UUID
-
getListedSubstance
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ListedSubstance
- Returns:
- Listed Substance
-
getCASNumber
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: CASNumber
- Returns:
- CAS Number
-
getECNumber
Constraints: Not nullable, Maximum length: 9Original property name from the Odata EDM: ECNumber
- Returns:
- Listed Substance EC Number
-
getMolecularFormula
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: MolecularFormula
- Returns:
- Molecular Formula
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<CompanySubstance>
-
equals
- Overrides:
equalsin classVdmEntity<CompanySubstance>
-
canEqual
- Overrides:
canEqualin classVdmEntity<CompanySubstance>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<CompanySubstance>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<CompanySubstance>
-