Class PMRPFlexibleConstraint
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: PMRPFlexibleConstraintType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of PMRPFlexibleConstraint instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<PMRPFlexibleConstraint,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<PMRPFlexibleConstraint>Selector for all available fields of PMRPFlexibleConstraint.static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final SimpleProperty.String<PMRPFlexibleConstraint>static final NavigationProperty.Collection<PMRPFlexibleConstraint,Period> Use with available request builders to apply the _Period navigation property to query operations.Use with available request builders to apply the _Product navigation property to query operations.static final NavigationProperty.Collection<PMRPFlexibleConstraint,Text> Use with available request builders to apply the _Text navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionPMRPFlexibleConstraint(String pMRPFlexibleConstraint, String pMRPConstraintType, String pMRPConstraintCategory, String pMRPFlexibleConstraintScope, String pMRPConstraintProductSelection, String pMRPConstraintPeriodType, String product, String plant, String productionLine, String supplier, String supplyingPlant, String mRPArea, String materialGroup, String pMRPConstraintBaseUnit, Collection<SAP__Message> _Messages, List<Period> to_Period, List<ConstraintProduct> to_Product, List<Text> to_Text) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated Period entities.voidaddProduct(ConstraintProduct... entity) Adds elements to the list of associated ConstraintProduct entities.voidAdds elements to the list of associated Text entities.builder()protected booleandefinePeriodForDate(LocalDate pMRPFlxblCstrtPerdStrtDte, String pMRPConstraintBaseUnit, BigDecimal pMRPConstraintQtyInBaseUnit) Action that can be applied to any entity object of this class.booleanprotected voidConstraints: Not nullableprotected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 9Constraints: Not nullable, Maximum length: 10Retrieval of associated Period entities (one to many).getPlant()Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 1(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 18io.vavr.control.Option<List<ConstraintProduct>>Retrieval of associated ConstraintProduct entities (one to many).Constraints: Not nullable, Maximum length: 8Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 4Retrieval of associated Text entities (one to many).getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetMaterialGroup(String materialGroup) Constraints: Not nullable, Maximum length: 9voidsetMRPArea(String mRPArea) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated Period entities for the loaded navigation property _Period.voidConstraints: Not nullable, Maximum length: 4voidsetPMRPConstraintBaseUnit(String pMRPConstraintBaseUnit) Constraints: Not nullable, Maximum length: 3voidsetPMRPConstraintCategory(String pMRPConstraintCategory) Constraints: Not nullable, Maximum length: 1voidsetPMRPConstraintPeriodType(String pMRPConstraintPeriodType) Constraints: Not nullable, Maximum length: 1voidsetPMRPConstraintProductSelection(String pMRPConstraintProductSelection) Constraints: Not nullable, Maximum length: 1voidsetPMRPConstraintType(String pMRPConstraintType) Constraints: Not nullable, Maximum length: 1voidsetPMRPFlexibleConstraint(String pMRPFlexibleConstraint) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetPMRPFlexibleConstraintScope(String pMRPFlexibleConstraintScope) Constraints: Not nullable, Maximum length: 1voidsetProduct(String product) Constraints: Not nullable, Maximum length: 18voidsetProduct(List<ConstraintProduct> value) Overwrites the list of associated ConstraintProduct entities for the loaded navigation property _Product.voidsetProductionLine(String productionLine) Constraints: Not nullable, Maximum length: 8voidsetSupplier(String supplier) Constraints: Not nullable, Maximum length: 10voidsetSupplyingPlant(String supplyingPlant) Constraints: Not nullable, Maximum length: 4voidOverwrites the list of associated Text entities for the loaded navigation property _Text.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, 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 PMRPFlexibleConstraint. -
PMRP_FLEXIBLE_CONSTRAINT
-
PMRP_CONSTRAINT_TYPE
-
PMRP_CONSTRAINT_CATEGORY
-
PMRP_FLEXIBLE_CONSTRAINT_SCOPE
-
PMRP_CONSTRAINT_PRODUCT_SELECTION
-
PMRP_CONSTRAINT_PERIOD_TYPE
-
PRODUCT
-
PLANT
-
PRODUCTION_LINE
-
SUPPLIER
-
SUPPLYING_PLANT
-
MRP_AREA
-
MATERIAL_GROUP
-
PMRP_CONSTRAINT_BASE_UNIT
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__PERIOD
Use with available request builders to apply the _Period navigation property to query operations. -
TO__PRODUCT
public static final NavigationProperty.Collection<PMRPFlexibleConstraint,ConstraintProduct> TO__PRODUCTUse with available request builders to apply the _Product navigation property to query operations. -
TO__TEXT
Use with available request builders to apply the _Text navigation property to query operations.
-
-
Constructor Details
-
PMRPFlexibleConstraint
public PMRPFlexibleConstraint() -
PMRPFlexibleConstraint
public PMRPFlexibleConstraint(@Nullable String pMRPFlexibleConstraint, @Nullable String pMRPConstraintType, @Nullable String pMRPConstraintCategory, @Nullable String pMRPFlexibleConstraintScope, @Nullable String pMRPConstraintProductSelection, @Nullable String pMRPConstraintPeriodType, @Nullable String product, @Nullable String plant, @Nullable String productionLine, @Nullable String supplier, @Nullable String supplyingPlant, @Nullable String mRPArea, @Nullable String materialGroup, @Nullable String pMRPConstraintBaseUnit, @Nullable Collection<SAP__Message> _Messages, List<Period> to_Period, List<ConstraintProduct> to_Product, List<Text> to_Text)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<PMRPFlexibleConstraint>
-
setPMRPFlexibleConstraint
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PMRPFlexibleConstraint
- Parameters:
pMRPFlexibleConstraint- pMRP Unique ID for Flexible Constraints
-
setPMRPConstraintType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintType
- Parameters:
pMRPConstraintType- The pMRPConstraintType to set.
-
setPMRPConstraintCategory
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintCategory
- Parameters:
pMRPConstraintCategory- The pMRPConstraintCategory to set.
-
setPMRPFlexibleConstraintScope
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPFlexibleConstraintScope
- Parameters:
pMRPFlexibleConstraintScope- Scope of a Constraint (Single or Multiple Materials)
-
setPMRPConstraintProductSelection
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintProductSelection
- Parameters:
pMRPConstraintProductSelection- Type of Selection Products for a PMRP Constraint
-
setPMRPConstraintPeriodType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintPeriodType
- Parameters:
pMRPConstraintPeriodType- The pMRPConstraintPeriodType to set.
-
setProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Material Number
-
setPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setProductionLine
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProductionLine
- Parameters:
productionLine- Production Line for Repetitive Manufacturing
-
setSupplier
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Supplier
- Parameters:
supplier- Account Number of Supplier
-
setSupplyingPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SupplyingPlant
- Parameters:
supplyingPlant- Supplying (issuing) plant in case of stock transport order
-
setMRPArea
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MRPArea
- Parameters:
mRPArea- MRP Area
-
setMaterialGroup
Constraints: Not nullable, Maximum length: 9Original property name from the Odata EDM: MaterialGroup
- Parameters:
materialGroup- Material Group
-
setPMRPConstraintBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PMRPConstraintBaseUnit
- Parameters:
pMRPConstraintBaseUnit- The pMRPConstraintBaseUnit to set.
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<PMRPFlexibleConstraint>
-
getKey
- Overrides:
getKeyin classVdmObject<PMRPFlexibleConstraint>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<PMRPFlexibleConstraint>
-
fromMap
- Overrides:
fromMapin classVdmObject<PMRPFlexibleConstraint>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<PMRPFlexibleConstraint>
-
getPeriodIfPresent
Retrieval of associated Period entities (one to many). This corresponds to the OData navigation property _Period.If the navigation property for an entity PMRPFlexibleConstraint 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 _Period is already loaded, the result will contain the
Period entities. If not, an
Optionwith result stateemptyis returned.
-
setPeriod
Overwrites the list of associated Period entities for the loaded navigation property _Period.If the navigation property _Period of a queried PMRPFlexibleConstraint 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 Period entities.
-
addPeriod
Adds elements to the list of associated Period entities. This corresponds to the OData navigation property _Period.If the navigation property _Period of a queried PMRPFlexibleConstraint 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 Period entities.
-
getProductIfPresent
Retrieval of associated ConstraintProduct entities (one to many). This corresponds to the OData navigation property _Product.If the navigation property for an entity PMRPFlexibleConstraint 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 _Product is already loaded, the result will contain the
ConstraintProduct entities. If not, an
Optionwith result stateemptyis returned.
-
setProduct
Overwrites the list of associated ConstraintProduct entities for the loaded navigation property _Product.If the navigation property _Product of a queried PMRPFlexibleConstraint 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 ConstraintProduct entities.
-
addProduct
Adds elements to the list of associated ConstraintProduct entities. This corresponds to the OData navigation property _Product.If the navigation property _Product of a queried PMRPFlexibleConstraint 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 ConstraintProduct entities.
-
getTextIfPresent
Retrieval of associated Text entities (one to many). This corresponds to the OData navigation property _Text.If the navigation property for an entity PMRPFlexibleConstraint 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 _Text is already loaded, the result will contain the
Text entities. If not, an
Optionwith result stateemptyis returned.
-
setText
Overwrites the list of associated Text entities for the loaded navigation property _Text.If the navigation property _Text of a queried PMRPFlexibleConstraint 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 Text entities.
-
addText
Adds elements to the list of associated Text entities. This corresponds to the OData navigation property _Text.If the navigation property _Text of a queried PMRPFlexibleConstraint 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 Text entities.
-
definePeriodForDate
@Nonnull public static BoundAction.SingleToSingle<PMRPFlexibleConstraint,Period> definePeriodForDate(@Nullable LocalDate pMRPFlxblCstrtPerdStrtDte, @Nonnull String pMRPConstraintBaseUnit, @Nonnull BigDecimal pMRPConstraintQtyInBaseUnit) Action that can be applied to any entity object of this class.- Parameters:
pMRPConstraintBaseUnit- Constraints: Not nullable, Maximum length: 3Original parameter name from the Odata EDM: PMRPConstraintBaseUnit
pMRPConstraintQtyInBaseUnit- Constraints: Not nullable, Precision: 13, Scale: 3Original parameter name from the Odata EDM: PMRPConstraintQtyInBaseUnit
pMRPFlxblCstrtPerdStrtDte- Constraints: NullableOriginal parameter name from the Odata EDM: PMRPFlxblCstrtPerdStrtDte
- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getPMRPFlexibleConstraint
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PMRPFlexibleConstraint
- Returns:
- pMRP Unique ID for Flexible Constraints
-
getPMRPConstraintType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintType
- Returns:
- The pMRPConstraintType contained in this
VdmEntity.
-
getPMRPConstraintCategory
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintCategory
- Returns:
- The pMRPConstraintCategory contained in this
VdmEntity.
-
getPMRPFlexibleConstraintScope
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPFlexibleConstraintScope
- Returns:
- Scope of a Constraint (Single or Multiple Materials)
-
getPMRPConstraintProductSelection
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintProductSelection
- Returns:
- Type of Selection Products for a PMRP Constraint
-
getPMRPConstraintPeriodType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PMRPConstraintPeriodType
- Returns:
- The pMRPConstraintPeriodType contained in this
VdmEntity.
-
getProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Material Number
-
getPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getProductionLine
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProductionLine
- Returns:
- Production Line for Repetitive Manufacturing
-
getSupplier
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Supplier
- Returns:
- Account Number of Supplier
-
getSupplyingPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SupplyingPlant
- Returns:
- Supplying (issuing) plant in case of stock transport order
-
getMRPArea
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MRPArea
- Returns:
- MRP Area
-
getMaterialGroup
Constraints: Not nullable, Maximum length: 9Original property name from the Odata EDM: MaterialGroup
- Returns:
- Material Group
-
getPMRPConstraintBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PMRPConstraintBaseUnit
- Returns:
- The pMRPConstraintBaseUnit contained in this
VdmEntity.
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<PMRPFlexibleConstraint>
-
equals
- Overrides:
equalsin classVdmEntity<PMRPFlexibleConstraint>
-
canEqual
- Overrides:
canEqualin classVdmEntity<PMRPFlexibleConstraint>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<PMRPFlexibleConstraint>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<PMRPFlexibleConstraint>
-