Class Period
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: PeriodType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Period instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<Period>Selector for all available fields of Period.static final SimpleProperty.NumericInteger<Period>static final SimpleProperty.String<Period>static final SimpleProperty.NumericDecimal<Period>static final SimpleProperty.String<Period>static final NavigationProperty.Single<Period,PMRPFlexibleConstraint> Use with available request builders to apply the _Constraint 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
ConstructorsConstructorDescriptionPeriod()Period(String pMRPFlexibleConstraint, Integer bucketInternalID, String pMRPConstraintBaseUnit, BigDecimal pMRPConstraintQtyInBaseUnit, PMRPFlexibleConstraint to_Constraint) -
Method Summary
Modifier and TypeMethodDescriptionstatic Period.PeriodBuilderbuilder()protected booleanbooleanprotected void(Key Field) Constraints: Not nullableio.vavr.control.Option<PMRPFlexibleConstraint>Retrieval of associated PMRPFlexibleConstraint entity (one to one).protected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Precision: 13, Scale: 3(Key Field) Constraints: Not nullable, Maximum length: 10getType()inthashCode()voidsetBucketInternalID(Integer bucketInternalID) (Key Field) Constraints: Not nullablevoidOverwrites the associated PMRPFlexibleConstraint entity for the loaded navigation property _Constraint.voidsetPMRPConstraintBaseUnit(String pMRPConstraintBaseUnit) Constraints: Not nullable, Maximum length: 3voidsetPMRPConstraintQtyInBaseUnit(BigDecimal pMRPConstraintQtyInBaseUnit) Constraints: Not nullable, Precision: 13, Scale: 3voidsetPMRPFlexibleConstraint(String pMRPFlexibleConstraint) (Key Field) Constraints: Not nullable, Maximum length: 10toString()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 Period. -
PMRP_FLEXIBLE_CONSTRAINT
-
BUCKET_INTERNAL_ID
-
PMRP_CONSTRAINT_BASE_UNIT
-
PMRP_CONSTRAINT_QTY_IN_BASE_UNIT
-
TO__CONSTRAINT
Use with available request builders to apply the _Constraint navigation property to query operations.
-
-
Constructor Details
-
Period
public Period() -
Period
public Period(@Nullable String pMRPFlexibleConstraint, @Nullable Integer bucketInternalID, @Nullable String pMRPConstraintBaseUnit, @Nullable BigDecimal pMRPConstraintQtyInBaseUnit, @Nullable PMRPFlexibleConstraint to_Constraint)
-
-
Method Details
-
getType
-
setPMRPFlexibleConstraint
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PMRPFlexibleConstraint
- Parameters:
pMRPFlexibleConstraint- pMRP Unique ID for Flexible Constraints
-
setBucketInternalID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: BucketInternalID
- Parameters:
bucketInternalID- pMRP Evaluation Bucket ID
-
setPMRPConstraintBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PMRPConstraintBaseUnit
- Parameters:
pMRPConstraintBaseUnit- The pMRPConstraintBaseUnit to set.
-
setPMRPConstraintQtyInBaseUnit
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: PMRPConstraintQtyInBaseUnit
- Parameters:
pMRPConstraintQtyInBaseUnit- The pMRPConstraintQtyInBaseUnit to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Period>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Period>
-
fromMap
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Period>
-
getConstraintIfPresent
Retrieval of associated PMRPFlexibleConstraint entity (one to one). This corresponds to the OData navigation property _Constraint.If the navigation property for an entity Period 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 _Constraint is already loaded, the result will contain
the PMRPFlexibleConstraint entity. If not, an
Optionwith result stateemptyis returned.
-
setConstraint
Overwrites the associated PMRPFlexibleConstraint entity for the loaded navigation property _Constraint.- Parameters:
value- New PMRPFlexibleConstraint entity.
-
builder
-
getPMRPFlexibleConstraint
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PMRPFlexibleConstraint
- Returns:
- pMRP Unique ID for Flexible Constraints
-
getBucketInternalID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: BucketInternalID
- Returns:
- pMRP Evaluation Bucket ID
-
getPMRPConstraintBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PMRPConstraintBaseUnit
- Returns:
- The pMRPConstraintBaseUnit contained in this
VdmEntity.
-
getPMRPConstraintQtyInBaseUnit
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: PMRPConstraintQtyInBaseUnit
- Returns:
- The pMRPConstraintQtyInBaseUnit contained in this
VdmEntity.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getOdataType
- Specified by:
getOdataTypein classVdmObject<Period>
-