Class WorkCenterCapacityInterval_2
Original entity name from the Odata EDM: A_WorkCenterCapacityInterval_2Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of WorkCenterCapacityInterval_2 instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorkCenterCapacityInterval_2SelectableSelector for all available fields of WorkCenterCapacityInterval_2.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the AvailableCapacityIntervalDurn field to query operations.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the CapacityActiveVersion field to query operations.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the CapacityInternalID field to query operations.static final WorkCenterCapacityInterval_2Field<ZonedDateTime>Use with available fluent helpers to apply the CapacityLastChangeDateTime field to query operations.static final WorkCenterCapacityInterval_2Field<Short>Use with available fluent helpers to apply the CapacityNumberOfCapacities field to query operations.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the CapacityNumberOfShifts field to query operations.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the CapacityPlanUtilizationPercent field to query operations.static final WorkCenterCapacityInterval_2Field<LocalDateTime>Use with available fluent helpers to apply the IntervalEndDate field to query operations.static final WorkCenterCapacityInterval_2Field<LocalDateTime>Use with available fluent helpers to apply the IntervalStartDate field to query operations.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the ShiftSequence field to query operations.static final WorkCenterCapacityInterval_2Field<Boolean>Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations.static final WorkCenterCapacityInterval_2Link<WorkCenterCapacityShift_2>Use with available fluent helpers to apply the to_CapacityShift navigation property to query operations.static final WorkCenterCapacityInterval_2Field<String>Use with available fluent helpers to apply the WorkDayRule field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionWorkCenterCapacityInterval_2(String capacityInternalID, String capacityActiveVersion, LocalDateTime intervalEndDate, LocalDateTime intervalStartDate, Boolean stdAvailableCapacityIsValid, String availableCapacityIntervalDurn, String shiftSequence, String workDayRule, String capacityNumberOfShifts, Short capacityNumberOfCapacities, String capacityPlanUtilizationPercent, ZonedDateTime capacityLastChangeDateTime, List<WorkCenterCapacityShift_2> toCapacityShift) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapacityShift(WorkCenterCapacityShift_2... entity) Adds elements to the list of associated WorkCenterCapacityShift_2 entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the WorkCenterCapacityShift_2 entities (one to many) associated with this entity.static <T,DomainT>
WorkCenterCapacityInterval_2Field<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> WorkCenterCapacityInterval_2Field<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullable, Maximum length: 8Constraints: Not nullable, Precision: 7Constraints: noneConstraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 3io.vavr.control.Option<List<WorkCenterCapacityShift_2>>Retrieval of associated WorkCenterCapacityShift_2 entities (one to many).Retrieval of associated WorkCenterCapacityShift_2 entities (one to many).protected Stringprotected String(Key Field) Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0getKey()Constraints: Not nullable, Maximum length: 4Constraints: nonegetType()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(ZonedDateTime capacityLastChangeDateTime) Constraints: Not nullable, Precision: 7voidsetCapacityNumberOfCapacities(Short capacityNumberOfCapacities) Constraints: nonevoidsetCapacityNumberOfShifts(String capacityNumberOfShifts) Constraints: Not nullable, Maximum length: 1voidsetCapacityPlanUtilizationPercent(String capacityPlanUtilizationPercent) Constraints: Not nullable, Maximum length: 3voidOverwrites the list of associated WorkCenterCapacityShift_2 entities for the loaded navigation property to_CapacityShift.voidsetIntervalEndDate(LocalDateTime intervalEndDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetIntervalStartDate(LocalDateTime intervalStartDate) Constraints: Not nullable, Precision: 0protected voidsetServicePathForFetch(String servicePathForFetch) voidsetShiftSequence(String shiftSequence) Constraints: Not nullable, Maximum length: 4voidsetStdAvailableCapacityIsValid(Boolean stdAvailableCapacityIsValid) Constraints: nonevoidsetWorkDayRule(String workDayRule) Constraints: Not nullable, Maximum length: 1toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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_2. -
CAPACITY_INTERNAL_ID
Use with available fluent helpers to apply the CapacityInternalID field to query operations. -
CAPACITY_ACTIVE_VERSION
Use with available fluent helpers to apply the CapacityActiveVersion field to query operations. -
INTERVAL_END_DATE
Use with available fluent helpers to apply the IntervalEndDate field to query operations. -
INTERVAL_START_DATE
Use with available fluent helpers to apply the IntervalStartDate field to query operations. -
STD_AVAILABLE_CAPACITY_IS_VALID
Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations. -
AVAILABLE_CAPACITY_INTERVAL_DURN
Use with available fluent helpers to apply the AvailableCapacityIntervalDurn field to query operations. -
SHIFT_SEQUENCE
Use with available fluent helpers to apply the ShiftSequence field to query operations. -
WORK_DAY_RULE
Use with available fluent helpers to apply the WorkDayRule field to query operations. -
CAPACITY_NUMBER_OF_SHIFTS
Use with available fluent helpers to apply the CapacityNumberOfShifts field to query operations. -
CAPACITY_NUMBER_OF_CAPACITIES
Use with available fluent helpers to apply the CapacityNumberOfCapacities field to query operations. -
CAPACITY_PLAN_UTILIZATION_PERCENT
Use with available fluent helpers to apply the CapacityPlanUtilizationPercent field to query operations. -
CAPACITY_LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the CapacityLastChangeDateTime field to query operations. -
TO_CAPACITY_SHIFT
Use with available fluent helpers to apply the to_CapacityShift navigation property to query operations.
-
-
Constructor Details
-
WorkCenterCapacityInterval_2
public WorkCenterCapacityInterval_2() -
WorkCenterCapacityInterval_2
public WorkCenterCapacityInterval_2(@Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDateTime intervalEndDate, @Nullable LocalDateTime intervalStartDate, @Nullable Boolean stdAvailableCapacityIsValid, @Nullable String availableCapacityIntervalDurn, @Nullable String shiftSequence, @Nullable String workDayRule, @Nullable String capacityNumberOfShifts, @Nullable Short capacityNumberOfCapacities, @Nullable String capacityPlanUtilizationPercent, @Nullable ZonedDateTime capacityLastChangeDateTime, List<WorkCenterCapacityShift_2> toCapacityShift)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<WorkCenterCapacityInterval_2>
-
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 nullable, Precision: 0Original property name from the Odata EDM: IntervalEndDate
- Parameters:
intervalEndDate- The intervalEndDate to set.
-
setIntervalStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: IntervalStartDate
- Parameters:
intervalStartDate- Valid-From Date
-
setStdAvailableCapacityIsValid
Constraints: noneOriginal 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: noneOriginal 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: Not nullable, Precision: 7Original property name from the Odata EDM: CapacityLastChangeDateTime
- Parameters:
capacityLastChangeDateTime- Capacity Last Change Date Time
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<WorkCenterCapacityInterval_2>
-
getKey
- Overrides:
getKeyin classVdmObject<WorkCenterCapacityInterval_2>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<WorkCenterCapacityInterval_2>
-
fromMap
- Overrides:
fromMapin classVdmObject<WorkCenterCapacityInterval_2>
-
field
@Nonnull public static <T> WorkCenterCapacityInterval_2Field<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
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.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> WorkCenterCapacityInterval_2Field<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<WorkCenterCapacityInterval_2>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<WorkCenterCapacityInterval_2>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<WorkCenterCapacityInterval_2>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<WorkCenterCapacityInterval_2>
-
fetchCapacityShift
Fetches the WorkCenterCapacityShift_2 entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CapacityShift.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated WorkCenterCapacityShift_2 entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getCapacityShiftOrFetch
Retrieval of associated WorkCenterCapacityShift_2 entities (one to many). This corresponds to the OData navigation property to_CapacityShift.If the navigation property to_CapacityShift of a queried WorkCenterCapacityInterval_2 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.
- Returns:
- List of associated WorkCenterCapacityShift_2 entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getCapacityShiftIfPresent
Retrieval of associated WorkCenterCapacityShift_2 entities (one to many). This corresponds to the OData navigation property to_CapacityShift.If the navigation property for an entity WorkCenterCapacityInterval_2 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 to_CapacityShift is already loaded, the result will
contain the WorkCenterCapacityShift_2 entities. If not, an
Optionwith result stateemptyis returned.
-
setCapacityShift
Overwrites the list of associated WorkCenterCapacityShift_2 entities for the loaded navigation property to_CapacityShift.If the navigation property to_CapacityShift of a queried WorkCenterCapacityInterval_2 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_2 entities.
-
addCapacityShift
Adds elements to the list of associated WorkCenterCapacityShift_2 entities. This corresponds to the OData navigation property to_CapacityShift.If the navigation property to_CapacityShift of a queried WorkCenterCapacityInterval_2 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_2 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 entity.
-
getIntervalEndDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: IntervalEndDate
- Returns:
- The intervalEndDate contained in this entity.
-
getIntervalStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: IntervalStartDate
- Returns:
- Valid-From Date
-
getStdAvailableCapacityIsValid
Constraints: noneOriginal 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 entity.
-
getWorkDayRule
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkDayRule
- Returns:
- The workDayRule contained in this entity.
-
getCapacityNumberOfShifts
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CapacityNumberOfShifts
- Returns:
- The capacityNumberOfShifts contained in this entity.
-
getCapacityNumberOfCapacities
Constraints: noneOriginal 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: Not nullable, Precision: 7Original property name from the Odata EDM: CapacityLastChangeDateTime
- Returns:
- Capacity Last Change Date Time
-
toString
- Overrides:
toStringin classVdmObject<WorkCenterCapacityInterval_2>
-
equals
- Overrides:
equalsin classVdmEntity<WorkCenterCapacityInterval_2>
-
canEqual
- Overrides:
canEqualin classVdmEntity<WorkCenterCapacityInterval_2>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<WorkCenterCapacityInterval_2>
-