public class ZoneAdjustments extends VdmEntity<ZoneAdjustments>
Original entity name from the Odata EDM: A_ZoneAdjustmentsType
Modifier and Type | Class and Description |
---|---|
static class |
ZoneAdjustments.ZoneAdjustmentsBuilder
Helper class to allow for fluent creation of ZoneAdjustments instances.
|
Modifier and Type | Field and Description |
---|---|
static ZoneAdjustmentsSelectable |
ALL_FIELDS
Selector for all available fields of ZoneAdjustments.
|
static ZoneAdjustmentsField<LocalDateTime> |
BUF_PRPSL_ZONE_ADJMT_FCTR_END_DATE
Use with available fluent helpers to apply the BufPrpslZoneAdjmtFctrEndDate field to query operations.
|
static ZoneAdjustmentsField<LocalDateTime> |
BUF_PRPSL_ZONE_ADJMT_FCTR_START_DATE
Use with available fluent helpers to apply the BufPrpslZoneAdjmtFctrStartDate field to query operations.
|
static ZoneAdjustmentsField<BigDecimal> |
GREEN_ZONE_ADJUSTMENT_FACTOR
Use with available fluent helpers to apply the GreenZoneAdjustmentFactor field to query operations.
|
static ZoneAdjustmentsField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static ZoneAdjustmentsField<String> |
MRP_AREA
Use with available fluent helpers to apply the MRPArea field to query operations.
|
static ZoneAdjustmentsField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static ZoneAdjustmentsField<LocalDateTime> |
PROPOSAL_START_DATE
Use with available fluent helpers to apply the ProposalStartDate field to query operations.
|
static ZoneAdjustmentsField<String> |
PROPOSAL_VERSION
Use with available fluent helpers to apply the ProposalVersion field to query operations.
|
static ZoneAdjustmentsField<BigDecimal> |
RED_ZONE_ADJUSTMENT_FACTOR
Use with available fluent helpers to apply the RedZoneAdjustmentFactor field to query operations.
|
static ZoneAdjustmentsOneToOneLink<ProposalHeader> |
TO_PROPOSAL_HDR
Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
|
static ZoneAdjustmentsField<BigDecimal> |
YELLOW_ZONE_ADJUSTMENT_FACTOR
Use with available fluent helpers to apply the YellowZoneAdjustmentFactor field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ZoneAdjustments() |
ZoneAdjustments(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
LocalDateTime bufPrpslZoneAdjmtFctrStartDate,
LocalDateTime bufPrpslZoneAdjmtFctrEndDate,
BigDecimal redZoneAdjustmentFactor,
BigDecimal yellowZoneAdjustmentFactor,
BigDecimal greenZoneAdjustmentFactor,
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 ZoneAdjustments.ZoneAdjustmentsBuilder |
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> ZoneAdjustmentsField<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) |
LocalDateTime |
getBufPrpslZoneAdjmtFctrEndDate()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getBufPrpslZoneAdjmtFctrStartDate()
(Key Field) Constraints: Not nullable, Precision: 0
|
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.
|
BigDecimal |
getGreenZoneAdjustmentFactor()
Constraints: Not nullable, Precision: 4, Scale: 2
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
(Key Field) Constraints: Not nullable, Maximum length: 18
|
String |
getMRPArea()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
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
|
BigDecimal |
getRedZoneAdjustmentFactor()
Constraints: Not nullable, Precision: 4, Scale: 2
|
Class<ZoneAdjustments> |
getType() |
BigDecimal |
getYellowZoneAdjustmentFactor()
Constraints: Not nullable, Precision: 4, Scale: 2
|
int |
hashCode() |
void |
setBufPrpslZoneAdjmtFctrEndDate(LocalDateTime bufPrpslZoneAdjmtFctrEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setBufPrpslZoneAdjmtFctrStartDate(LocalDateTime bufPrpslZoneAdjmtFctrStartDate)
(Key Field) Constraints: Not nullable, Precision: 0
|
void |
setGreenZoneAdjustmentFactor(BigDecimal greenZoneAdjustmentFactor)
Constraints: Not nullable, Precision: 4, Scale: 2
|
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 |
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
|
void |
setRedZoneAdjustmentFactor(BigDecimal redZoneAdjustmentFactor)
Constraints: Not nullable, Precision: 4, Scale: 2
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setYellowZoneAdjustmentFactor(BigDecimal yellowZoneAdjustmentFactor)
Constraints: Not nullable, Precision: 4, 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 ZoneAdjustmentsSelectable ALL_FIELDS
public static final ZoneAdjustmentsField<String> MATERIAL
public static final ZoneAdjustmentsField<String> PLANT
public static final ZoneAdjustmentsField<String> MRP_AREA
public static final ZoneAdjustmentsField<LocalDateTime> PROPOSAL_START_DATE
public static final ZoneAdjustmentsField<String> PROPOSAL_VERSION
public static final ZoneAdjustmentsField<LocalDateTime> BUF_PRPSL_ZONE_ADJMT_FCTR_START_DATE
public static final ZoneAdjustmentsField<LocalDateTime> BUF_PRPSL_ZONE_ADJMT_FCTR_END_DATE
public static final ZoneAdjustmentsField<BigDecimal> RED_ZONE_ADJUSTMENT_FACTOR
public static final ZoneAdjustmentsField<BigDecimal> YELLOW_ZONE_ADJUSTMENT_FACTOR
public static final ZoneAdjustmentsField<BigDecimal> GREEN_ZONE_ADJUSTMENT_FACTOR
public static final ZoneAdjustmentsOneToOneLink<ProposalHeader> TO_PROPOSAL_HDR
public ZoneAdjustments()
public ZoneAdjustments(@Nullable String material, @Nullable String plant, @Nullable String mRPArea, @Nullable LocalDateTime proposalStartDate, @Nullable String proposalVersion, @Nullable LocalDateTime bufPrpslZoneAdjmtFctrStartDate, @Nullable LocalDateTime bufPrpslZoneAdjmtFctrEndDate, @Nullable BigDecimal redZoneAdjustmentFactor, @Nullable BigDecimal yellowZoneAdjustmentFactor, @Nullable BigDecimal greenZoneAdjustmentFactor, @Nullable ProposalHeader toProposalHdr)
@Nonnull public Class<ZoneAdjustments> getType()
getType
in class VdmObject<ZoneAdjustments>
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 setBufPrpslZoneAdjmtFctrStartDate(@Nullable LocalDateTime bufPrpslZoneAdjmtFctrStartDate)
Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrStartDate
bufPrpslZoneAdjmtFctrStartDate
- Proposal Zones Valid Frompublic void setBufPrpslZoneAdjmtFctrEndDate(@Nullable LocalDateTime bufPrpslZoneAdjmtFctrEndDate)
Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrEndDate
bufPrpslZoneAdjmtFctrEndDate
- Proposal Zones Valid Topublic void setRedZoneAdjustmentFactor(@Nullable BigDecimal redZoneAdjustmentFactor)
Original property name from the Odata EDM: RedZoneAdjustmentFactor
redZoneAdjustmentFactor
- Adjustment Factor for Red Zonepublic void setYellowZoneAdjustmentFactor(@Nullable BigDecimal yellowZoneAdjustmentFactor)
Original property name from the Odata EDM: YellowZoneAdjustmentFactor
yellowZoneAdjustmentFactor
- Adjustment Factor for Yellow Zonepublic void setGreenZoneAdjustmentFactor(@Nullable BigDecimal greenZoneAdjustmentFactor)
Original property name from the Odata EDM: GreenZoneAdjustmentFactor
greenZoneAdjustmentFactor
- Adjustment Factor for Green Zoneprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ZoneAdjustments>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ZoneAdjustments>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ZoneAdjustments>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ZoneAdjustments>
@Nonnull public static <T> ZoneAdjustmentsField<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> ZoneAdjustmentsField<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<ZoneAdjustments>
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<ZoneAdjustments>
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<ZoneAdjustments>
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<ZoneAdjustments>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<ZoneAdjustments>
@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 ZoneAdjustments 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 ZoneAdjustments 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 ZoneAdjustments.ZoneAdjustmentsBuilder 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 LocalDateTime getBufPrpslZoneAdjmtFctrStartDate()
Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrStartDate
@Nullable public LocalDateTime getBufPrpslZoneAdjmtFctrEndDate()
Original property name from the Odata EDM: BufPrpslZoneAdjmtFctrEndDate
@Nullable public BigDecimal getRedZoneAdjustmentFactor()
Original property name from the Odata EDM: RedZoneAdjustmentFactor
@Nullable public BigDecimal getYellowZoneAdjustmentFactor()
Original property name from the Odata EDM: YellowZoneAdjustmentFactor
@Nullable public BigDecimal getGreenZoneAdjustmentFactor()
Original property name from the Odata EDM: GreenZoneAdjustmentFactor
public String toString()
toString
in class VdmObject<ZoneAdjustments>
public boolean equals(Object o)
equals
in class VdmObject<ZoneAdjustments>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<ZoneAdjustments>
public int hashCode()
hashCode
in class VdmObject<ZoneAdjustments>
Copyright © 2020 SAP SE. All rights reserved.