Class WorkCenterCapacityInterval
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: WorkCenterCapacityIntervalType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of WorkCenterCapacityInterval instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<WorkCenterCapacityInterval>Selector for all available fields of WorkCenterCapacityInterval.static final SimpleProperty.String<WorkCenterCapacityInterval>static final SimpleProperty.String<WorkCenterCapacityInterval>static final SimpleProperty.String<WorkCenterCapacityInterval>static final SimpleProperty.DateTime<WorkCenterCapacityInterval>static final SimpleProperty.NumericInteger<WorkCenterCapacityInterval>static final SimpleProperty.String<WorkCenterCapacityInterval>static final SimpleProperty.String<WorkCenterCapacityInterval>static final SimpleProperty.Date<WorkCenterCapacityInterval>static final SimpleProperty.Date<WorkCenterCapacityInterval>static final SimpleProperty.String<WorkCenterCapacityInterval>static final SimpleProperty.Boolean<WorkCenterCapacityInterval>Use with available request builders to apply the _Header navigation property to query operations.Use with available request builders to apply the _Shift navigation property to query operations.static final SimpleProperty.String<WorkCenterCapacityInterval>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionWorkCenterCapacityInterval(String capacityInternalID, String capacityActiveVersion, LocalDate intervalEndDate, LocalDate intervalStartDate, Boolean stdAvailableCapacityIsValid, String availableCapacityIntervalDurn, String shiftSequence, String workDayRule, String capacityNumberOfShifts, Short capacityNumberOfCapacities, String capacityPlanUtilizationPercent, OffsetDateTime capacityLastChangeDateTime, WorkCenterCapacity to_Header, List<WorkCenterCapacityShift> to_Shift) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddShift(WorkCenterCapacityShift... entity) Adds elements to the list of associated WorkCenterCapacityShift entities.builder()protected booleanbooleanprotected voidConstraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullable, Maximum length: 8Constraints: Nullable, Precision: 7Constraints: Not nullableConstraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 3protected Stringprotected Stringio.vavr.control.Option<WorkCenterCapacity>Retrieval of associated WorkCenterCapacity entity (one to one).(Key Field) Constraints: Not nullableConstraints: Not nullableprotected ODataEntityKeygetKey()io.vavr.control.Option<List<WorkCenterCapacityShift>>Retrieval of associated WorkCenterCapacityShift entities (one to many).Constraints: Not nullable, Maximum length: 4Constraints: Not nullablegetType()Constraints: Not nullable, Maximum length: 1inthashCode()voidsetAvailableCapacityIntervalDurn(String availableCapacityIntervalDurn) Constraints: Not nullable, Maximum length: 2voidsetCapacityActiveVersion(String capacityActiveVersion) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetCapacityInternalID(String capacityInternalID) (Key Field) Constraints: Not nullable, Maximum length: 8voidsetCapacityLastChangeDateTime(OffsetDateTime capacityLastChangeDateTime) Constraints: Nullable, Precision: 7voidsetCapacityNumberOfCapacities(Short capacityNumberOfCapacities) Constraints: Not nullablevoidsetCapacityNumberOfShifts(String capacityNumberOfShifts) Constraints: Not nullable, Maximum length: 1voidsetCapacityPlanUtilizationPercent(String capacityPlanUtilizationPercent) Constraints: Not nullable, Maximum length: 3voidsetHeader(WorkCenterCapacity value) Overwrites the associated WorkCenterCapacity entity for the loaded navigation property _Header.voidsetIntervalEndDate(LocalDate intervalEndDate) (Key Field) Constraints: Not nullablevoidsetIntervalStartDate(LocalDate intervalStartDate) Constraints: Not nullablevoidsetShift(List<WorkCenterCapacityShift> value) Overwrites the list of associated WorkCenterCapacityShift entities for the loaded navigation property _Shift.voidsetShiftSequence(String shiftSequence) Constraints: Not nullable, Maximum length: 4voidsetStdAvailableCapacityIsValid(Boolean stdAvailableCapacityIsValid) Constraints: Not nullablevoidsetWorkDayRule(String workDayRule) Constraints: Not nullable, Maximum length: 1toString()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 WorkCenterCapacityInterval. -
CAPACITY_INTERNAL_ID
-
CAPACITY_ACTIVE_VERSION
-
INTERVAL_END_DATE
-
INTERVAL_START_DATE
-
STD_AVAILABLE_CAPACITY_IS_VALID
public static final SimpleProperty.Boolean<WorkCenterCapacityInterval> STD_AVAILABLE_CAPACITY_IS_VALID -
AVAILABLE_CAPACITY_INTERVAL_DURN
public static final SimpleProperty.String<WorkCenterCapacityInterval> AVAILABLE_CAPACITY_INTERVAL_DURN -
SHIFT_SEQUENCE
-
WORK_DAY_RULE
-
CAPACITY_NUMBER_OF_SHIFTS
-
CAPACITY_NUMBER_OF_CAPACITIES
public static final SimpleProperty.NumericInteger<WorkCenterCapacityInterval> CAPACITY_NUMBER_OF_CAPACITIES -
CAPACITY_PLAN_UTILIZATION_PERCENT
public static final SimpleProperty.String<WorkCenterCapacityInterval> CAPACITY_PLAN_UTILIZATION_PERCENT -
CAPACITY_LAST_CHANGE_DATE_TIME
public static final SimpleProperty.DateTime<WorkCenterCapacityInterval> CAPACITY_LAST_CHANGE_DATE_TIME -
TO__HEADER
public static final NavigationProperty.Single<WorkCenterCapacityInterval,WorkCenterCapacity> TO__HEADERUse with available request builders to apply the _Header navigation property to query operations. -
TO__SHIFT
public static final NavigationProperty.Collection<WorkCenterCapacityInterval,WorkCenterCapacityShift> TO__SHIFTUse with available request builders to apply the _Shift navigation property to query operations.
-
-
Constructor Details
-
WorkCenterCapacityInterval
public WorkCenterCapacityInterval() -
WorkCenterCapacityInterval
public WorkCenterCapacityInterval(@Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDate intervalEndDate, @Nullable LocalDate intervalStartDate, @Nullable Boolean stdAvailableCapacityIsValid, @Nullable String availableCapacityIntervalDurn, @Nullable String shiftSequence, @Nullable String workDayRule, @Nullable String capacityNumberOfShifts, @Nullable Short capacityNumberOfCapacities, @Nullable String capacityPlanUtilizationPercent, @Nullable OffsetDateTime capacityLastChangeDateTime, @Nullable WorkCenterCapacity to_Header, List<WorkCenterCapacityShift> to_Shift)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<WorkCenterCapacityInterval>
-
setCapacityInternalID
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: CapacityInternalID
- Parameters:
capacityInternalID- Capacity ID
-
setCapacityActiveVersion
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: CapacityActiveVersion
- Parameters:
capacityActiveVersion- The capacityActiveVersion to set.
-
setIntervalEndDate
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: IntervalEndDate
- Parameters:
intervalEndDate- The intervalEndDate to set.
-
setIntervalStartDate
Constraints: Not nullableOriginal property name from the Odata EDM: IntervalStartDate
- Parameters:
intervalStartDate- Valid-From Date
-
setStdAvailableCapacityIsValid
Constraints: Not nullableOriginal property name from the Odata EDM: StdAvailableCapacityIsValid
- Parameters:
stdAvailableCapacityIsValid- Ind.: Standard Available Capacity is Valid for this Interval
-
setAvailableCapacityIntervalDurn
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: AvailableCapacityIntervalDurn
- Parameters:
availableCapacityIntervalDurn- Duration of an Available Capacity Interval
-
setShiftSequence
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ShiftSequence
- Parameters:
shiftSequence- The shiftSequence to set.
-
setWorkDayRule
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkDayRule
- Parameters:
workDayRule- The workDayRule to set.
-
setCapacityNumberOfShifts
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CapacityNumberOfShifts
- Parameters:
capacityNumberOfShifts- The capacityNumberOfShifts to set.
-
setCapacityNumberOfCapacities
Constraints: Not nullableOriginal property name from the Odata EDM: CapacityNumberOfCapacities
- Parameters:
capacityNumberOfCapacities- Number of Individual Capacities
-
setCapacityPlanUtilizationPercent
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CapacityPlanUtilizationPercent
- Parameters:
capacityPlanUtilizationPercent- Capacity Utilization Ratio in Percent
-
setCapacityLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CapacityLastChangeDateTime
- Parameters:
capacityLastChangeDateTime- Capacity Last Change Date Time
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<WorkCenterCapacityInterval>
-
getKey
- Overrides:
getKeyin classVdmObject<WorkCenterCapacityInterval>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<WorkCenterCapacityInterval>
-
fromMap
- Overrides:
fromMapin classVdmObject<WorkCenterCapacityInterval>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<WorkCenterCapacityInterval>
-
getHeaderIfPresent
Retrieval of associated WorkCenterCapacity entity (one to one). This corresponds to the OData navigation property _Header.If the navigation property for an entity WorkCenterCapacityInterval 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 _Header is already loaded, the result will contain the
WorkCenterCapacity entity. If not, an
Optionwith result stateemptyis returned.
-
setHeader
Overwrites the associated WorkCenterCapacity entity for the loaded navigation property _Header.- Parameters:
value- New WorkCenterCapacity entity.
-
getShiftIfPresent
Retrieval of associated WorkCenterCapacityShift entities (one to many). This corresponds to the OData navigation property _Shift.If the navigation property for an entity WorkCenterCapacityInterval 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 _Shift is already loaded, the result will contain the
WorkCenterCapacityShift entities. If not, an
Optionwith result stateemptyis returned.
-
setShift
Overwrites the list of associated WorkCenterCapacityShift entities for the loaded navigation property _Shift.If the navigation property _Shift of a queried WorkCenterCapacityInterval 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 WorkCenterCapacityShift entities.
-
addShift
Adds elements to the list of associated WorkCenterCapacityShift entities. This corresponds to the OData navigation property _Shift.If the navigation property _Shift of a queried WorkCenterCapacityInterval 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 WorkCenterCapacityShift entities.
-
builder
-
getCapacityInternalID
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: CapacityInternalID
- Returns:
- Capacity ID
-
getCapacityActiveVersion
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: CapacityActiveVersion
- Returns:
- The capacityActiveVersion contained in this
VdmEntity.
-
getIntervalEndDate
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: IntervalEndDate
- Returns:
- The intervalEndDate contained in this
VdmEntity.
-
getIntervalStartDate
Constraints: Not nullableOriginal property name from the Odata EDM: IntervalStartDate
- Returns:
- Valid-From Date
-
getStdAvailableCapacityIsValid
Constraints: Not nullableOriginal property name from the Odata EDM: StdAvailableCapacityIsValid
- Returns:
- Ind.: Standard Available Capacity is Valid for this Interval
-
getAvailableCapacityIntervalDurn
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: AvailableCapacityIntervalDurn
- Returns:
- Duration of an Available Capacity Interval
-
getShiftSequence
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ShiftSequence
- Returns:
- The shiftSequence contained in this
VdmEntity.
-
getWorkDayRule
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkDayRule
- Returns:
- The workDayRule contained in this
VdmEntity.
-
getCapacityNumberOfShifts
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CapacityNumberOfShifts
- Returns:
- The capacityNumberOfShifts contained in this
VdmEntity.
-
getCapacityNumberOfCapacities
Constraints: Not nullableOriginal property name from the Odata EDM: CapacityNumberOfCapacities
- Returns:
- Number of Individual Capacities
-
getCapacityPlanUtilizationPercent
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CapacityPlanUtilizationPercent
- Returns:
- Capacity Utilization Ratio in Percent
-
getCapacityLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CapacityLastChangeDateTime
- Returns:
- Capacity Last Change Date Time
-
toString
- Overrides:
toStringin classVdmObject<WorkCenterCapacityInterval>
-
equals
- Overrides:
equalsin classVdmEntity<WorkCenterCapacityInterval>
-
canEqual
- Overrides:
canEqualin classVdmEntity<WorkCenterCapacityInterval>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<WorkCenterCapacityInterval>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<WorkCenterCapacityInterval>
-