public class ProfileDetails extends VdmEntity<ProfileDetails>
Original entity name from the Odata EDM: A_ProfileDetailsType
Modifier and Type | Class and Description |
---|---|
static class |
ProfileDetails.ProfileDetailsBuilder
Helper class to allow for fluent creation of ProfileDetails instances.
|
Modifier and Type | Field and Description |
---|---|
static ProfileDetailsSelectable |
ALL_FIELDS
Selector for all available fields of ProfileDetails.
|
static ProfileDetailsField<String> |
IS_MIN_ORDER_QTY_CONSIDERED
Use with available fluent helpers to apply the IsMinOrderQtyConsidered field to query operations.
|
static ProfileDetailsField<BigDecimal> |
LEAD_TIME_FACTOR
Use with available fluent helpers to apply the LeadTimeFactor field to query operations.
|
static ProfileDetailsField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static ProfileDetailsField<String> |
PROCUREMENT_TYPE
Use with available fluent helpers to apply the ProcurementType field to query operations.
|
static ProfileDetailsField<String> |
REPLENISHMENT_LEAD_TIME_CODE
Use with available fluent helpers to apply the ReplenishmentLeadTimeCode field to query operations.
|
static ProfileDetailsOneToOneLink<ProfileAssignedToPlant> |
TO_PROFILE_ASSIGNMENT
Use with available fluent helpers to apply the to_ProfileAssignment navigation property to query
operations.
|
static ProfileDetailsField<String> |
VARIABILITY_CODE
Use with available fluent helpers to apply the VariabilityCode field to query operations.
|
static ProfileDetailsField<BigDecimal> |
VARIABILITY_FACTOR
Use with available fluent helpers to apply the VariabilityFactor field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ProfileDetails() |
ProfileDetails(String plant,
String procurementType,
String variabilityCode,
String replenishmentLeadTimeCode,
String isMinOrderQtyConsidered,
BigDecimal variabilityFactor,
BigDecimal leadTimeFactor,
ProfileAssignedToPlant toProfileAssignment) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static ProfileDetails.ProfileDetailsBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ProfileAssignedToPlant |
fetchProfileAssignment()
Fetches the ProfileAssignedToPlant entity (one to one) associated with this entity.
|
static <T> ProfileDetailsField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
String |
getIsMinOrderQtyConsidered()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
protected Map<String,Object> |
getKey() |
BigDecimal |
getLeadTimeFactor()
Constraints: Not nullable, Precision: 3, Scale: 2
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getProcurementType()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
io.vavr.control.Option<ProfileAssignedToPlant> |
getProfileAssignmentIfPresent()
Retrieval of associated ProfileAssignedToPlant entity (one to one).
|
ProfileAssignedToPlant |
getProfileAssignmentOrFetch()
Retrieval of associated ProfileAssignedToPlant entity (one to one).
|
String |
getReplenishmentLeadTimeCode()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
Class<ProfileDetails> |
getType() |
String |
getVariabilityCode()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
BigDecimal |
getVariabilityFactor()
Constraints: Not nullable, Precision: 3, Scale: 2
|
int |
hashCode() |
void |
setIsMinOrderQtyConsidered(String isMinOrderQtyConsidered)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setLeadTimeFactor(BigDecimal leadTimeFactor)
Constraints: Not nullable, Precision: 3, Scale: 2
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setProcurementType(String procurementType)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setProfileAssignment(ProfileAssignedToPlant value)
Overwrites the associated ProfileAssignedToPlant entity for the loaded navigation property
to_ProfileAssignment.
|
void |
setReplenishmentLeadTimeCode(String replenishmentLeadTimeCode)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setVariabilityCode(String variabilityCode)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setVariabilityFactor(BigDecimal variabilityFactor)
Constraints: Not nullable, Precision: 3, Scale: 2
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final ProfileDetailsSelectable ALL_FIELDS
public static final ProfileDetailsField<String> PLANT
public static final ProfileDetailsField<String> PROCUREMENT_TYPE
public static final ProfileDetailsField<String> VARIABILITY_CODE
public static final ProfileDetailsField<String> REPLENISHMENT_LEAD_TIME_CODE
public static final ProfileDetailsField<String> IS_MIN_ORDER_QTY_CONSIDERED
public static final ProfileDetailsField<BigDecimal> VARIABILITY_FACTOR
public static final ProfileDetailsField<BigDecimal> LEAD_TIME_FACTOR
public static final ProfileDetailsOneToOneLink<ProfileAssignedToPlant> TO_PROFILE_ASSIGNMENT
public 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)
@Nonnull public Class<ProfileDetails> getType()
getType
in class VdmObject<ProfileDetails>
public void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Key uniquely identifying a plant.public void setProcurementType(@Nullable String procurementType)
Original property name from the Odata EDM: ProcurementType
procurementType
- Categories which specify how a DD-relevant product or component is procured. Typically, products are
categorized as Make, Buy or Transfer.public void setVariabilityCode(@Nullable String variabilityCode)
Original property name from the Odata EDM: VariabilityCode
variabilityCode
- Classifying a product or component into type X, Y or Z based on the variation in its usage, with
products classified as type X having the lowest variation and products classified as type Z having the
highest variation.public void setReplenishmentLeadTimeCode(@Nullable String replenishmentLeadTimeCode)
Original property name from the Odata EDM: ReplenishmentLeadTimeCode
replenishmentLeadTimeCode
- Classifying a product or component into type E, F or G based on its lead time, with products
classified as type E having the shortest lead time and products classified as type G having the
longest lead time. An EFG classification is typically used together with the procurement type for a
product or component.public void setIsMinOrderQtyConsidered(@Nullable String isMinOrderQtyConsidered)
Original property name from the Odata EDM: IsMinOrderQtyConsidered
Select to consider Minimum Order Quantity.
isMinOrderQtyConsidered
- The lowest product quantity for which an order can be placed to replenish the stock buffer, decided by
logistical, contractual or cost considerations.public void setVariabilityFactor(@Nullable BigDecimal variabilityFactor)
Original property name from the Odata EDM: VariabilityFactor
variabilityFactor
- A factor that is part of a buffer profile and that helps define the buffer levels for a group of
products based on their variability (XYZ) classification.public void setLeadTimeFactor(@Nullable BigDecimal leadTimeFactor)
Original property name from the Odata EDM: LeadTimeFactor
leadTimeFactor
- A factor that is part of a buffer profile and that helps define the buffer levels for a group of
products based on their lead time classification.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ProfileDetails>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ProfileDetails>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ProfileDetails>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ProfileDetails>
@Nonnull public static <T> ProfileDetailsField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> ProfileDetailsField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<ProfileDetails>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<ProfileDetails>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<ProfileDetails>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<ProfileDetails>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<ProfileDetails>
@Nullable public ProfileAssignedToPlant fetchProfileAssignment() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not
associated.com.sap.cloud.sdk.odatav2.connectivity.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.@Nullable public ProfileAssignedToPlant getProfileAssignmentOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<ProfileAssignedToPlant> getProfileAssignmentIfPresent()
If the navigation property for an entity ProfileDetails has not been resolved yet, this method will not
query further information. Instead its Option
result state will be empty
.
Option
with result state
empty
is returned.public void setProfileAssignment(ProfileAssignedToPlant value)
value
- New ProfileAssignedToPlant entity.public static ProfileDetails.ProfileDetailsBuilder builder()
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getProcurementType()
Original property name from the Odata EDM: ProcurementType
@Nullable public String getVariabilityCode()
Original property name from the Odata EDM: VariabilityCode
@Nullable public String getReplenishmentLeadTimeCode()
Original property name from the Odata EDM: ReplenishmentLeadTimeCode
@Nullable public String getIsMinOrderQtyConsidered()
Original property name from the Odata EDM: IsMinOrderQtyConsidered
Select to consider Minimum Order Quantity.
@Nullable public BigDecimal getVariabilityFactor()
Original property name from the Odata EDM: VariabilityFactor
@Nullable public BigDecimal getLeadTimeFactor()
Original property name from the Odata EDM: LeadTimeFactor
public String toString()
toString
in class VdmObject<ProfileDetails>
public boolean equals(Object o)
equals
in class VdmObject<ProfileDetails>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<ProfileDetails>
public int hashCode()
hashCode
in class VdmObject<ProfileDetails>
Copyright © 2020 SAP SE. All rights reserved.