public class LongestPathInBOM extends VdmEntity<LongestPathInBOM>
Original entity name from the Odata EDM: A_LongestPathInBOMType
Modifier and Type | Class and Description |
---|---|
static class |
LongestPathInBOM.LongestPathInBOMBuilder
Helper class to allow for fluent creation of LongestPathInBOM instances.
|
Modifier and Type | Field and Description |
---|---|
static LongestPathInBOMSelectable |
ALL_FIELDS
Selector for all available fields of LongestPathInBOM.
|
static LongestPathInBOMField<String> |
BILL_OF_MATERIAL_COMPONENT
Use with available fluent helpers to apply the BillOfMaterialComponent field to query operations.
|
static LongestPathInBOMField<UUID> |
BILL_OF_MATERIAL_UUID
Use with available fluent helpers to apply the BillOfMaterialUUID field to query operations.
|
static LongestPathInBOMField<BigDecimal> |
COMPONENT_LEAD_TIME
Use with available fluent helpers to apply the ComponentLeadTime field to query operations.
|
static LongestPathInBOMField<String> |
COMPONENT_MRP_AREA
Use with available fluent helpers to apply the ComponentMRPArea field to query operations.
|
static LongestPathInBOMField<String> |
COMPONENT_PLANT
Use with available fluent helpers to apply the ComponentPlant field to query operations.
|
static LongestPathInBOMField<String> |
COMPONENT_SOS
Use with available fluent helpers to apply the ComponentSOS field to query operations.
|
static LongestPathInBOMField<String> |
COMPONENT_SOS_TYPE
Use with available fluent helpers to apply the ComponentSOSType field to query operations.
|
static LongestPathInBOMField<String> |
LEAD_TIME_CALCULATION_METHOD
Use with available fluent helpers to apply the LeadTimeCalculationMethod field to query operations.
|
static LongestPathInBOMField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static LongestPathInBOMField<String> |
MRP_AREA
Use with available fluent helpers to apply the MRPArea field to query operations.
|
static LongestPathInBOMField<String> |
PARENT_COMPONENT
Use with available fluent helpers to apply the ParentComponent field to query operations.
|
static LongestPathInBOMField<String> |
PARENT_MRP_AREA
Use with available fluent helpers to apply the ParentMRPArea field to query operations.
|
static LongestPathInBOMField<String> |
PARENT_PLANT
Use with available fluent helpers to apply the ParentPlant field to query operations.
|
static LongestPathInBOMField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static LongestPathInBOMField<LocalDateTime> |
PROPOSAL_START_DATE
Use with available fluent helpers to apply the ProposalStartDate field to query operations.
|
static LongestPathInBOMField<String> |
PROPOSAL_VERSION
Use with available fluent helpers to apply the ProposalVersion field to query operations.
|
static LongestPathInBOMField<String> |
SOS_TYPE_DESCRIPTION
Use with available fluent helpers to apply the SOSTypeDescription field to query operations.
|
static LongestPathInBOMOneToOneLink<ProposalHeader> |
TO_PROPOSAL_HDR
Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
|
changedOriginalFields
Constructor and Description |
---|
LongestPathInBOM() |
LongestPathInBOM(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
UUID billOfMaterialUUID,
String parentComponent,
String parentPlant,
String billOfMaterialComponent,
String componentPlant,
String parentMRPArea,
String componentMRPArea,
BigDecimal componentLeadTime,
String leadTimeCalculationMethod,
String componentSOS,
String componentSOSType,
String sOSTypeDescription,
ProposalHeader toProposalHdr) |
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 LongestPathInBOM.LongestPathInBOMBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ProposalHeader |
fetchProposalHdr()
Fetches the ProposalHeader entity (one to one) associated with this entity.
|
static <T> LongestPathInBOMField<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) |
String |
getBillOfMaterialComponent()
(Key Field) Constraints: Not nullable, Maximum length: 18
|
UUID |
getBillOfMaterialUUID()
(Key Field) Constraints: Not nullable
|
BigDecimal |
getComponentLeadTime()
Constraints: Not nullable, Precision: 7, Scale: 2
|
String |
getComponentMRPArea()
Constraints: Not nullable, Maximum length: 10
|
String |
getComponentPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getComponentSOS()
Constraints: Not nullable, Maximum length: 20
|
String |
getComponentSOSType()
Constraints: Not nullable, Maximum length: 5
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
String |
getLeadTimeCalculationMethod()
Constraints: Not nullable, Maximum length: 8
|
String |
getMaterial()
(Key Field) Constraints: Not nullable, Maximum length: 18
|
String |
getMRPArea()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getParentComponent()
(Key Field) Constraints: Not nullable, Maximum length: 18
|
String |
getParentMRPArea()
Constraints: Not nullable, Maximum length: 10
|
String |
getParentPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
io.vavr.control.Option<ProposalHeader> |
getProposalHdrIfPresent()
Retrieval of associated ProposalHeader entity (one to one).
|
ProposalHeader |
getProposalHdrOrFetch()
Retrieval of associated ProposalHeader entity (one to one).
|
LocalDateTime |
getProposalStartDate()
(Key Field) Constraints: Not nullable, Precision: 0
|
String |
getProposalVersion()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
String |
getSOSTypeDescription()
Constraints: Not nullable, Maximum length: 60
|
Class<LongestPathInBOM> |
getType() |
int |
hashCode() |
void |
setBillOfMaterialComponent(String billOfMaterialComponent)
(Key Field) Constraints: Not nullable, Maximum length: 18
|
void |
setBillOfMaterialUUID(UUID billOfMaterialUUID)
(Key Field) Constraints: Not nullable
|
void |
setComponentLeadTime(BigDecimal componentLeadTime)
Constraints: Not nullable, Precision: 7, Scale: 2
|
void |
setComponentMRPArea(String componentMRPArea)
Constraints: Not nullable, Maximum length: 10
|
void |
setComponentPlant(String componentPlant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setComponentSOS(String componentSOS)
Constraints: Not nullable, Maximum length: 20
|
void |
setComponentSOSType(String componentSOSType)
Constraints: Not nullable, Maximum length: 5
|
void |
setLeadTimeCalculationMethod(String leadTimeCalculationMethod)
Constraints: Not nullable, Maximum length: 8
|
void |
setMaterial(String material)
(Key Field) Constraints: Not nullable, Maximum length: 18
|
void |
setMRPArea(String mRPArea)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setParentComponent(String parentComponent)
(Key Field) Constraints: Not nullable, Maximum length: 18
|
void |
setParentMRPArea(String parentMRPArea)
Constraints: Not nullable, Maximum length: 10
|
void |
setParentPlant(String parentPlant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setProposalHdr(ProposalHeader value)
Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.
|
void |
setProposalStartDate(LocalDateTime proposalStartDate)
(Key Field) Constraints: Not nullable, Precision: 0
|
void |
setProposalVersion(String proposalVersion)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setSOSTypeDescription(String sOSTypeDescription)
Constraints: Not nullable, Maximum length: 60
|
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 LongestPathInBOMSelectable ALL_FIELDS
public static final LongestPathInBOMField<String> MATERIAL
public static final LongestPathInBOMField<String> PLANT
public static final LongestPathInBOMField<String> MRP_AREA
public static final LongestPathInBOMField<LocalDateTime> PROPOSAL_START_DATE
public static final LongestPathInBOMField<String> PROPOSAL_VERSION
public static final LongestPathInBOMField<UUID> BILL_OF_MATERIAL_UUID
public static final LongestPathInBOMField<String> PARENT_COMPONENT
public static final LongestPathInBOMField<String> PARENT_PLANT
public static final LongestPathInBOMField<String> BILL_OF_MATERIAL_COMPONENT
public static final LongestPathInBOMField<String> COMPONENT_PLANT
public static final LongestPathInBOMField<String> PARENT_MRP_AREA
public static final LongestPathInBOMField<String> COMPONENT_MRP_AREA
public static final LongestPathInBOMField<BigDecimal> COMPONENT_LEAD_TIME
public static final LongestPathInBOMField<String> LEAD_TIME_CALCULATION_METHOD
public static final LongestPathInBOMField<String> COMPONENT_SOS
public static final LongestPathInBOMField<String> COMPONENT_SOS_TYPE
public static final LongestPathInBOMField<String> SOS_TYPE_DESCRIPTION
public static final LongestPathInBOMOneToOneLink<ProposalHeader> TO_PROPOSAL_HDR
public LongestPathInBOM()
public LongestPathInBOM(@Nullable String material, @Nullable String plant, @Nullable String mRPArea, @Nullable LocalDateTime proposalStartDate, @Nullable String proposalVersion, @Nullable UUID billOfMaterialUUID, @Nullable String parentComponent, @Nullable String parentPlant, @Nullable String billOfMaterialComponent, @Nullable String componentPlant, @Nullable String parentMRPArea, @Nullable String componentMRPArea, @Nullable BigDecimal componentLeadTime, @Nullable String leadTimeCalculationMethod, @Nullable String componentSOS, @Nullable String componentSOSType, @Nullable String sOSTypeDescription, @Nullable ProposalHeader toProposalHdr)
@Nonnull public Class<LongestPathInBOM> getType()
getType
in class VdmObject<LongestPathInBOM>
public void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Alphanumeric key uniquely identifying the material.public void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Key uniquely identifying a plant.public void setMRPArea(@Nullable String mRPArea)
Original property name from the Odata EDM: MRPArea
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.public void setProposalStartDate(@Nullable LocalDateTime proposalStartDate)
Original property name from the Odata EDM: ProposalStartDate
proposalStartDate
- Proposal Validity From Datepublic void setProposalVersion(@Nullable String proposalVersion)
Original property name from the Odata EDM: ProposalVersion
proposalVersion
- Proposal Versionpublic void setBillOfMaterialUUID(@Nullable UUID billOfMaterialUUID)
Original property name from the Odata EDM: BillOfMaterialUUID
billOfMaterialUUID
- Internal Key for BOMIDpublic void setParentComponent(@Nullable String parentComponent)
Original property name from the Odata EDM: ParentComponent
parentComponent
- Parent BOM Componentpublic void setParentPlant(@Nullable String parentPlant)
Original property name from the Odata EDM: ParentPlant
parentPlant
- Parent Plantpublic void setBillOfMaterialComponent(@Nullable String billOfMaterialComponent)
Original property name from the Odata EDM: BillOfMaterialComponent
A master record is usually maintained in the system for a component.
billOfMaterialComponent
- Material number of the components that you enter, change or display as part of the BOM.public void setComponentPlant(@Nullable String componentPlant)
Original property name from the Odata EDM: ComponentPlant
componentPlant
- Component Plantpublic void setParentMRPArea(@Nullable String parentMRPArea)
Original property name from the Odata EDM: ParentMRPArea
parentMRPArea
- Parent MRP Areapublic void setComponentMRPArea(@Nullable String componentMRPArea)
Original property name from the Odata EDM: ComponentMRPArea
componentMRPArea
- Component MRP Areapublic void setComponentLeadTime(@Nullable BigDecimal componentLeadTime)
Original property name from the Odata EDM: ComponentLeadTime
componentLeadTime
- Individual Lead Time in Dayspublic void setLeadTimeCalculationMethod(@Nullable String leadTimeCalculationMethod)
Original property name from the Odata EDM: LeadTimeCalculationMethod
leadTimeCalculationMethod
- Indicator to show method of Lead Time calculationpublic void setComponentSOS(@Nullable String componentSOS)
Original property name from the Odata EDM: ComponentSOS
componentSOS
- Source of Supplypublic void setComponentSOSType(@Nullable String componentSOSType)
Original property name from the Odata EDM: ComponentSOSType
componentSOSType
- Source Typepublic void setSOSTypeDescription(@Nullable String sOSTypeDescription)
Original property name from the Odata EDM: SOSTypeDescription
SeeTask-Oriented InstructionsReference Documentation for Semantic Properties of Domains
sOSTypeDescription
- This text appears when fixed values are displayed in the F4 help. It explains the possible input
values.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<LongestPathInBOM>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<LongestPathInBOM>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<LongestPathInBOM>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<LongestPathInBOM>
@Nonnull public static <T> LongestPathInBOMField<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> LongestPathInBOMField<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<LongestPathInBOM>
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<LongestPathInBOM>
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<LongestPathInBOM>
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()
getDefaultServicePath
in class VdmEntity<LongestPathInBOM>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<LongestPathInBOM>
@Nullable public ProposalHeader fetchProposalHdr() 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 ProposalHeader getProposalHdrOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_ProposalHdr of a queried LongestPathInBOM 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<ProposalHeader> getProposalHdrIfPresent()
If the navigation property for an entity LongestPathInBOM 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 setProposalHdr(ProposalHeader value)
value
- New ProposalHeader entity.public static LongestPathInBOM.LongestPathInBOMBuilder builder()
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getMRPArea()
Original property name from the Odata EDM: MRPArea
@Nullable public LocalDateTime getProposalStartDate()
Original property name from the Odata EDM: ProposalStartDate
@Nullable public String getProposalVersion()
Original property name from the Odata EDM: ProposalVersion
@Nullable public UUID getBillOfMaterialUUID()
Original property name from the Odata EDM: BillOfMaterialUUID
@Nullable public String getParentComponent()
Original property name from the Odata EDM: ParentComponent
@Nullable public String getParentPlant()
Original property name from the Odata EDM: ParentPlant
@Nullable public String getBillOfMaterialComponent()
Original property name from the Odata EDM: BillOfMaterialComponent
A master record is usually maintained in the system for a component.
@Nullable public String getComponentPlant()
Original property name from the Odata EDM: ComponentPlant
@Nullable public String getParentMRPArea()
Original property name from the Odata EDM: ParentMRPArea
@Nullable public String getComponentMRPArea()
Original property name from the Odata EDM: ComponentMRPArea
@Nullable public BigDecimal getComponentLeadTime()
Original property name from the Odata EDM: ComponentLeadTime
@Nullable public String getLeadTimeCalculationMethod()
Original property name from the Odata EDM: LeadTimeCalculationMethod
@Nullable public String getComponentSOS()
Original property name from the Odata EDM: ComponentSOS
@Nullable public String getComponentSOSType()
Original property name from the Odata EDM: ComponentSOSType
@Nullable public String getSOSTypeDescription()
Original property name from the Odata EDM: SOSTypeDescription
SeeTask-Oriented InstructionsReference Documentation for Semantic Properties of Domains
public String toString()
toString
in class VdmObject<LongestPathInBOM>
public boolean equals(Object o)
equals
in class VdmObject<LongestPathInBOM>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<LongestPathInBOM>
public int hashCode()
hashCode
in class VdmObject<LongestPathInBOM>
Copyright © 2020 SAP SE. All rights reserved.