Class SoldProduct
Original entity name from the Odata EDM: SoldProductType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SoldProduct instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SoldProductField<String>Use with available fluent helpers to apply the AdditionalMasterDataSource field to query operations.static final SoldProductSelectableSelector for all available fields of SoldProduct.static final SoldProductField<String>Use with available fluent helpers to apply the Material field to query operations.static final SoldProductField<String>Use with available fluent helpers to apply the Material_Text field to query operations.static final SoldProductLink<SoldProductHier>Use with available fluent helpers to apply the to_CnsldtnProductSoldHier navigation property to query operations.static final SoldProductLink<SoldProductText>Use with available fluent helpers to apply the to_CnsldtnProductSoldT navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionSoldProduct(String material, String material_Text, String additionalMasterDataSource, List<SoldProductHier> toCnsldtnProductSoldHier, List<SoldProductText> toCnsldtnProductSoldT) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCnsldtnProductSoldHier(SoldProductHier... entity) Adds elements to the list of associated SoldProductHier entities.voidaddCnsldtnProductSoldT(SoldProductText... entity) Adds elements to the list of associated SoldProductText entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the SoldProductHier entities (one to many) associated with this entity.Fetches the SoldProductText entities (one to many) associated with this entity.static <T,DomainT>
SoldProductField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> SoldProductField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<SoldProductHier>>Retrieval of associated SoldProductHier entities (one to many).Retrieval of associated SoldProductHier entities (one to many).io.vavr.control.Option<List<SoldProductText>>Retrieval of associated SoldProductText entities (one to many).Retrieval of associated SoldProductText entities (one to many).protected Stringprotected StringgetKey()(Key Field) Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Maximum length: 40getType()inthashCode()voidsetAdditionalMasterDataSource(String additionalMasterDataSource) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated SoldProductHier entities for the loaded navigation property to_CnsldtnProductSoldHier.voidOverwrites the list of associated SoldProductText entities for the loaded navigation property to_CnsldtnProductSoldT.voidsetMaterial(String material) (Key Field) Constraints: Not nullable, Maximum length: 40voidsetMaterial_Text(String material_Text) Constraints: Not nullable, Maximum length: 40protected voidsetServicePathForFetch(String servicePathForFetch) toString()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 SoldProduct. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
MATERIAL_TEXT
Use with available fluent helpers to apply the Material_Text field to query operations. -
ADDITIONAL_MASTER_DATA_SOURCE
Use with available fluent helpers to apply the AdditionalMasterDataSource field to query operations. -
TO_CNSLDTN_PRODUCT_SOLD_HIER
Use with available fluent helpers to apply the to_CnsldtnProductSoldHier navigation property to query operations. -
TO_CNSLDTN_PRODUCT_SOLD_T
Use with available fluent helpers to apply the to_CnsldtnProductSoldT navigation property to query operations.
-
-
Constructor Details
-
SoldProduct
public SoldProduct() -
SoldProduct
public SoldProduct(@Nullable String material, @Nullable String material_Text, @Nullable String additionalMasterDataSource, List<SoldProductHier> toCnsldtnProductSoldHier, List<SoldProductText> toCnsldtnProductSoldT)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SoldProduct>
-
setMaterial
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material
- Parameters:
material- Product Number
-
setMaterial_Text
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material_Text
- Parameters:
material_Text- Product Sold Description
-
setAdditionalMasterDataSource
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AdditionalMasterDataSource
- Parameters:
additionalMasterDataSource- Consolidation Additional Master Data Source
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SoldProduct>
-
getKey
- Overrides:
getKeyin classVdmObject<SoldProduct>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SoldProduct>
-
fromMap
- Overrides:
fromMapin classVdmObject<SoldProduct>
-
field
@Nonnull public static <T> SoldProductField<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> SoldProductField<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<SoldProduct>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<SoldProduct>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<SoldProduct>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SoldProduct>
-
fetchCnsldtnProductSoldHier
Fetches the SoldProductHier entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnProductSoldHier.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SoldProductHier entities. If no entities are associated then an empty list is returned.
- 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.
-
getCnsldtnProductSoldHierOrFetch
Retrieval of associated SoldProductHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnProductSoldHier.If the navigation property to_CnsldtnProductSoldHier of a queried SoldProduct 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 SoldProductHier entities.
- 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.
-
getCnsldtnProductSoldHierIfPresent
Retrieval of associated SoldProductHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnProductSoldHier.If the navigation property for an entity SoldProduct 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_CnsldtnProductSoldHier is already loaded, the result
will contain the SoldProductHier entities. If not, an
Optionwith result stateemptyis returned.
-
setCnsldtnProductSoldHier
Overwrites the list of associated SoldProductHier entities for the loaded navigation property to_CnsldtnProductSoldHier.If the navigation property to_CnsldtnProductSoldHier of a queried SoldProduct 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 SoldProductHier entities.
-
addCnsldtnProductSoldHier
Adds elements to the list of associated SoldProductHier entities. This corresponds to the OData navigation property to_CnsldtnProductSoldHier.If the navigation property to_CnsldtnProductSoldHier of a queried SoldProduct 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 SoldProductHier entities.
-
fetchCnsldtnProductSoldT
Fetches the SoldProductText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnProductSoldT.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SoldProductText entities. If no entities are associated then an empty list is returned.
- 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.
-
getCnsldtnProductSoldTOrFetch
Retrieval of associated SoldProductText entities (one to many). This corresponds to the OData navigation property to_CnsldtnProductSoldT.If the navigation property to_CnsldtnProductSoldT of a queried SoldProduct 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 SoldProductText entities.
- 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.
-
getCnsldtnProductSoldTIfPresent
Retrieval of associated SoldProductText entities (one to many). This corresponds to the OData navigation property to_CnsldtnProductSoldT.If the navigation property for an entity SoldProduct 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_CnsldtnProductSoldT is already loaded, the result
will contain the SoldProductText entities. If not, an
Optionwith result stateemptyis returned.
-
setCnsldtnProductSoldT
Overwrites the list of associated SoldProductText entities for the loaded navigation property to_CnsldtnProductSoldT.If the navigation property to_CnsldtnProductSoldT of a queried SoldProduct 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 SoldProductText entities.
-
addCnsldtnProductSoldT
Adds elements to the list of associated SoldProductText entities. This corresponds to the OData navigation property to_CnsldtnProductSoldT.If the navigation property to_CnsldtnProductSoldT of a queried SoldProduct 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 SoldProductText entities.
-
builder
-
getMaterial
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material
- Returns:
- Product Number
-
getMaterial_Text
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material_Text
- Returns:
- Product Sold Description
-
getAdditionalMasterDataSource
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AdditionalMasterDataSource
- Returns:
- Consolidation Additional Master Data Source
-
toString
- Overrides:
toStringin classVdmObject<SoldProduct>
-
equals
- Overrides:
equalsin classVdmEntity<SoldProduct>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SoldProduct>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SoldProduct>
-