Class ProfileDetails
Original entity name from the Odata EDM: A_ProfileDetailsType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProfileDetails instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProfileDetailsSelectableSelector for all available fields of ProfileDetails.static final ProfileDetailsField<String>Use with available fluent helpers to apply the IsMinOrderQtyConsidered field to query operations.static final ProfileDetailsField<BigDecimal>Use with available fluent helpers to apply the LeadTimeFactor field to query operations.static final ProfileDetailsField<String>Use with available fluent helpers to apply the Plant field to query operations.static final ProfileDetailsField<String>Use with available fluent helpers to apply the ProcurementType field to query operations.static final ProfileDetailsField<String>Use with available fluent helpers to apply the ReplenishmentLeadTimeCode field to query operations.static final ProfileDetailsOneToOneLink<ProfileAssignedToPlant>Use with available fluent helpers to apply the to_ProfileAssignment navigation property to query operations.static final ProfileDetailsField<String>Use with available fluent helpers to apply the VariabilityCode field to query operations.static final ProfileDetailsField<BigDecimal>Use with available fluent helpers to apply the VariabilityFactor field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionProfileDetails(String plant, String procurementType, String variabilityCode, String replenishmentLeadTimeCode, String isMinOrderQtyConsidered, BigDecimal variabilityFactor, BigDecimal leadTimeFactor, ProfileAssignedToPlant toProfileAssignment) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ProfileAssignedToPlant entity (one to one) associated with this entity.static <T,DomainT>
ProfileDetailsField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ProfileDetailsField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected String(Key Field) Constraints: Not nullable, Maximum length: 1getKey()Constraints: Not nullable, Precision: 3, Scale: 2getPlant()(Key Field) Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 1io.vavr.control.Option<ProfileAssignedToPlant>Retrieval of associated ProfileAssignedToPlant entity (one to one).Retrieval of associated ProfileAssignedToPlant entity (one to one).(Key Field) Constraints: Not nullable, Maximum length: 1getType()(Key Field) Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Precision: 3, Scale: 2inthashCode()voidsetIsMinOrderQtyConsidered(String isMinOrderQtyConsidered) (Key Field) Constraints: Not nullable, Maximum length: 1voidsetLeadTimeFactor(BigDecimal leadTimeFactor) Constraints: Not nullable, Precision: 3, Scale: 2void(Key Field) Constraints: Not nullable, Maximum length: 4voidsetProcurementType(String procurementType) (Key Field) Constraints: Not nullable, Maximum length: 1voidOverwrites the associated ProfileAssignedToPlant entity for the loaded navigation property to_ProfileAssignment.voidsetReplenishmentLeadTimeCode(String replenishmentLeadTimeCode) (Key Field) Constraints: Not nullable, Maximum length: 1protected voidsetServicePathForFetch(String servicePathForFetch) voidsetVariabilityCode(String variabilityCode) (Key Field) Constraints: Not nullable, Maximum length: 1voidsetVariabilityFactor(BigDecimal variabilityFactor) Constraints: Not nullable, Precision: 3, Scale: 2toString()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 ProfileDetails. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
PROCUREMENT_TYPE
Use with available fluent helpers to apply the ProcurementType field to query operations. -
VARIABILITY_CODE
Use with available fluent helpers to apply the VariabilityCode field to query operations. -
REPLENISHMENT_LEAD_TIME_CODE
Use with available fluent helpers to apply the ReplenishmentLeadTimeCode field to query operations. -
IS_MIN_ORDER_QTY_CONSIDERED
Use with available fluent helpers to apply the IsMinOrderQtyConsidered field to query operations. -
VARIABILITY_FACTOR
Use with available fluent helpers to apply the VariabilityFactor field to query operations. -
LEAD_TIME_FACTOR
Use with available fluent helpers to apply the LeadTimeFactor field to query operations. -
TO_PROFILE_ASSIGNMENT
Use with available fluent helpers to apply the to_ProfileAssignment navigation property to query operations.
-
-
Constructor Details
-
ProfileDetails
public ProfileDetails() -
ProfileDetails
public ProfileDetails(@Nullable String plant, @Nullable String procurementType, @Nullable String variabilityCode, @Nullable String replenishmentLeadTimeCode, @Nullable String isMinOrderQtyConsidered, @Nullable BigDecimal variabilityFactor, @Nullable BigDecimal leadTimeFactor, @Nullable ProfileAssignedToPlant toProfileAssignment)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProfileDetails>
-
setPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setProcurementType
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProcurementType
- Parameters:
procurementType- Procurement Type
-
setVariabilityCode
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: VariabilityCode
- Parameters:
variabilityCode- Variability Co-efficient Indicator
-
setReplenishmentLeadTimeCode
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ReplenishmentLeadTimeCode
- Parameters:
replenishmentLeadTimeCode- Decoupled Lead Time Indicator
-
setIsMinOrderQtyConsidered
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: IsMinOrderQtyConsidered
- Parameters:
isMinOrderQtyConsidered- Is Minimum Order Quantity Considered
-
setVariabilityFactor
Constraints: Not nullable, Precision: 3, Scale: 2Original property name from the Odata EDM: VariabilityFactor
- Parameters:
variabilityFactor- Variability Factor
-
setLeadTimeFactor
Constraints: Not nullable, Precision: 3, Scale: 2Original property name from the Odata EDM: LeadTimeFactor
- Parameters:
leadTimeFactor- Decoupled Lead Time Factor
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProfileDetails>
-
getKey
- Overrides:
getKeyin classVdmObject<ProfileDetails>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProfileDetails>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProfileDetails>
-
field
@Nonnull public static <T> ProfileDetailsField<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> ProfileDetailsField<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<ProfileDetails>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ProfileDetails>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ProfileDetails>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProfileDetails>
-
fetchProfileAssignment
Fetches the ProfileAssignedToPlant entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProfileAssignment.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated ProfileAssignedToPlant 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.
-
getProfileAssignmentOrFetch
Retrieval of associated ProfileAssignedToPlant entity (one to one). This corresponds to the OData navigation property to_ProfileAssignment.If the navigation property to_ProfileAssignment of a queried ProfileDetails 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 ProfileAssignedToPlant 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.
-
getProfileAssignmentIfPresent
Retrieval of associated ProfileAssignedToPlant entity (one to one). This corresponds to the OData navigation property to_ProfileAssignment.If the navigation property for an entity ProfileDetails 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_ProfileAssignment is already loaded, the result will
contain the ProfileAssignedToPlant entity. If not, an
Optionwith result stateemptyis returned.
-
setProfileAssignment
Overwrites the associated ProfileAssignedToPlant entity for the loaded navigation property to_ProfileAssignment.- Parameters:
value- New ProfileAssignedToPlant entity.
-
builder
-
getPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getProcurementType
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProcurementType
- Returns:
- Procurement Type
-
getVariabilityCode
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: VariabilityCode
- Returns:
- Variability Co-efficient Indicator
-
getReplenishmentLeadTimeCode
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ReplenishmentLeadTimeCode
- Returns:
- Decoupled Lead Time Indicator
-
getIsMinOrderQtyConsidered
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: IsMinOrderQtyConsidered
- Returns:
- Is Minimum Order Quantity Considered
-
getVariabilityFactor
Constraints: Not nullable, Precision: 3, Scale: 2Original property name from the Odata EDM: VariabilityFactor
- Returns:
- Variability Factor
-
getLeadTimeFactor
Constraints: Not nullable, Precision: 3, Scale: 2Original property name from the Odata EDM: LeadTimeFactor
- Returns:
- Decoupled Lead Time Factor
-
toString
- Overrides:
toStringin classVdmObject<ProfileDetails>
-
equals
- Overrides:
equalsin classVdmEntity<ProfileDetails>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProfileDetails>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProfileDetails>
-