Class FixedAssetUsageObjectPeriod
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: FixedAssetUsageObjectPeriodType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of FixedAssetUsageObjectPeriod instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<FixedAssetUsageObjectPeriod>Selector for all available fields of FixedAssetUsageObjectPeriod.static final SimpleProperty.String<FixedAssetUsageObjectPeriod>static final SimpleProperty.String<FixedAssetUsageObjectPeriod>static final SimpleProperty.String<FixedAssetUsageObjectPeriod>static final SimpleProperty.NumericDecimal<FixedAssetUsageObjectPeriod>Use with available request builders to apply the _UsageObject navigation property to query operations.static final SimpleProperty.Date<FixedAssetUsageObjectPeriod>static final SimpleProperty.Date<FixedAssetUsageObjectPeriod>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionFixedAssetUsageObjectPeriod(String companyCode, String fixedAssetUsageObject, LocalDate validityEndDate, LocalDate validityStartDate, BigDecimal periodPlannedQtyInProdnUnit, String baseUnit, FixedAssetUsageObject to_UsageObject) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanprotected voidConstraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 4protected Stringprotected String(Key Field) Constraints: Not nullable, Maximum length: 12protected ODataEntityKeygetKey()Constraints: Not nullable, Precision: 18, Scale: 3getType()io.vavr.control.Option<FixedAssetUsageObject>Retrieval of associated FixedAssetUsageObject entity (one to one).(Key Field) Constraints: Not nullableConstraints: NullableinthashCode()voidsetBaseUnit(String baseUnit) Constraints: Not nullable, Maximum length: 3voidsetCompanyCode(String companyCode) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetFixedAssetUsageObject(String fixedAssetUsageObject) (Key Field) Constraints: Not nullable, Maximum length: 12voidsetPeriodPlannedQtyInProdnUnit(BigDecimal periodPlannedQtyInProdnUnit) Constraints: Not nullable, Precision: 18, Scale: 3voidOverwrites the associated FixedAssetUsageObject entity for the loaded navigation property _UsageObject.voidsetValidityEndDate(LocalDate validityEndDate) (Key Field) Constraints: Not nullablevoidsetValidityStartDate(LocalDate validityStartDate) Constraints: NullabletoString()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 FixedAssetUsageObjectPeriod. -
COMPANY_CODE
-
FIXED_ASSET_USAGE_OBJECT
-
VALIDITY_END_DATE
-
VALIDITY_START_DATE
-
PERIOD_PLANNED_QTY_IN_PRODN_UNIT
public static final SimpleProperty.NumericDecimal<FixedAssetUsageObjectPeriod> PERIOD_PLANNED_QTY_IN_PRODN_UNIT -
BASE_UNIT
-
TO__USAGE_OBJECT
public static final NavigationProperty.Single<FixedAssetUsageObjectPeriod,FixedAssetUsageObject> TO__USAGE_OBJECTUse with available request builders to apply the _UsageObject navigation property to query operations.
-
-
Constructor Details
-
FixedAssetUsageObjectPeriod
public FixedAssetUsageObjectPeriod() -
FixedAssetUsageObjectPeriod
public FixedAssetUsageObjectPeriod(@Nullable String companyCode, @Nullable String fixedAssetUsageObject, @Nullable LocalDate validityEndDate, @Nullable LocalDate validityStartDate, @Nullable BigDecimal periodPlannedQtyInProdnUnit, @Nullable String baseUnit, @Nullable FixedAssetUsageObject to_UsageObject)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<FixedAssetUsageObjectPeriod>
-
setCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setFixedAssetUsageObject
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: FixedAssetUsageObject
- Parameters:
fixedAssetUsageObject- Usage Object
-
setValidityEndDate
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ValidityEndDate
- Parameters:
validityEndDate- Date Validity Ends
-
setValidityStartDate
Constraints: NullableOriginal property name from the Odata EDM: ValidityStartDate
- Parameters:
validityStartDate- Date for Beginning of Validity
-
setPeriodPlannedQtyInProdnUnit
Constraints: Not nullable, Precision: 18, Scale: 3Original property name from the Odata EDM: PeriodPlannedQtyInProdnUnit
- Parameters:
periodPlannedQtyInProdnUnit- Planned Number of Units in the Period
-
setBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Parameters:
baseUnit- Base Unit of Measure
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<FixedAssetUsageObjectPeriod>
-
getKey
- Overrides:
getKeyin classVdmObject<FixedAssetUsageObjectPeriod>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<FixedAssetUsageObjectPeriod>
-
fromMap
- Overrides:
fromMapin classVdmObject<FixedAssetUsageObjectPeriod>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<FixedAssetUsageObjectPeriod>
-
getUsageObjectIfPresent
Retrieval of associated FixedAssetUsageObject entity (one to one). This corresponds to the OData navigation property _UsageObject.If the navigation property for an entity FixedAssetUsageObjectPeriod 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 _UsageObject is already loaded, the result will contain
the FixedAssetUsageObject entity. If not, an
Optionwith result stateemptyis returned.
-
setUsageObject
Overwrites the associated FixedAssetUsageObject entity for the loaded navigation property _UsageObject.- Parameters:
value- New FixedAssetUsageObject entity.
-
builder
-
getCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getFixedAssetUsageObject
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: FixedAssetUsageObject
- Returns:
- Usage Object
-
getValidityEndDate
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ValidityEndDate
- Returns:
- Date Validity Ends
-
getValidityStartDate
Constraints: NullableOriginal property name from the Odata EDM: ValidityStartDate
- Returns:
- Date for Beginning of Validity
-
getPeriodPlannedQtyInProdnUnit
Constraints: Not nullable, Precision: 18, Scale: 3Original property name from the Odata EDM: PeriodPlannedQtyInProdnUnit
- Returns:
- Planned Number of Units in the Period
-
getBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Returns:
- Base Unit of Measure
-
toString
- Overrides:
toStringin classVdmObject<FixedAssetUsageObjectPeriod>
-
equals
- Overrides:
equalsin classVdmEntity<FixedAssetUsageObjectPeriod>
-
canEqual
- Overrides:
canEqualin classVdmEntity<FixedAssetUsageObjectPeriod>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<FixedAssetUsageObjectPeriod>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<FixedAssetUsageObjectPeriod>
-