Class WorkCenterCapacityInterval
Original entity name from the Odata EDM: A_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 WorkCenterCapacityIntervalSelectableSelector for all available fields of WorkCenterCapacityInterval.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the AvailableCapacityIntervalDurn field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the CapacityActiveVersion field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the CapacityCategoryAllocation field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the CapacityInternalID field to query operations.static final WorkCenterCapacityIntervalField<LocalDateTime>Use with available fluent helpers to apply the IntervalEndDate field to query operations.static final WorkCenterCapacityIntervalField<LocalDateTime>Use with available fluent helpers to apply the IntervalStartDate field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the Plant field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the ShiftSequence field to query operations.static final WorkCenterCapacityIntervalField<Boolean>Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations.static final WorkCenterCapacityIntervalLink<WorkCenterCapacityShift>Use with available fluent helpers to apply the to_WorkCenterShift navigation property to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the WorkCenter field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the WorkCenterInternalID field to query operations.static final WorkCenterCapacityIntervalField<String>Use with available fluent helpers to apply the WorkCenterTypeCode field to query operations.static final WorkCenterCapacityIntervalField<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(String workCenterInternalID, String workCenterTypeCode, String capacityCategoryAllocation, String capacityInternalID, String capacityActiveVersion, LocalDateTime intervalEndDate, LocalDateTime intervalStartDate, String workCenter, String plant, String workDayRule, String availableCapacityIntervalDurn, String shiftSequence, Boolean stdAvailableCapacityIsValid, List<WorkCenterCapacityShift> toWorkCenterShift) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWorkCenterShift(WorkCenterCapacityShift... entity) Adds elements to the list of associated WorkCenterCapacityShift entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the WorkCenterCapacityShift entities (one to many) associated with this entity.static <T,DomainT>
WorkCenterCapacityIntervalField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> WorkCenterCapacityIntervalField<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: 4(Key Field) Constraints: Not nullable, Maximum length: 8protected Stringprotected String(Key Field) Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0getKey()getPlant()Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 4Constraints: nonegetType()Constraints: Not nullable, Maximum length: 8(Key Field) Constraints: Not nullable, Maximum length: 8io.vavr.control.Option<List<WorkCenterCapacityShift>>Retrieval of associated WorkCenterCapacityShift entities (one to many).Retrieval of associated WorkCenterCapacityShift entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 1inthashCode()voidsetAvailableCapacityIntervalDurn(String availableCapacityIntervalDurn) Constraints: Not nullable, Maximum length: 2voidsetCapacityActiveVersion(String capacityActiveVersion) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetCapacityCategoryAllocation(String capacityCategoryAllocation) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetCapacityInternalID(String capacityInternalID) (Key Field) Constraints: Not nullable, Maximum length: 8voidsetIntervalEndDate(LocalDateTime intervalEndDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetIntervalStartDate(LocalDateTime intervalStartDate) Constraints: Not nullable, Precision: 0voidConstraints: Not nullable, Maximum length: 4protected voidsetServicePathForFetch(String servicePathForFetch) voidsetShiftSequence(String shiftSequence) Constraints: Not nullable, Maximum length: 4voidsetStdAvailableCapacityIsValid(Boolean stdAvailableCapacityIsValid) Constraints: nonevoidsetWorkCenter(String workCenter) Constraints: Not nullable, Maximum length: 8voidsetWorkCenterInternalID(String workCenterInternalID) (Key Field) Constraints: Not nullable, Maximum length: 8voidOverwrites the list of associated WorkCenterCapacityShift entities for the loaded navigation property to_WorkCenterShift.voidsetWorkCenterTypeCode(String workCenterTypeCode) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetWorkDayRule(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. -
WORK_CENTER_INTERNAL_ID
Use with available fluent helpers to apply the WorkCenterInternalID field to query operations. -
WORK_CENTER_TYPE_CODE
Use with available fluent helpers to apply the WorkCenterTypeCode field to query operations. -
CAPACITY_CATEGORY_ALLOCATION
Use with available fluent helpers to apply the CapacityCategoryAllocation field to query operations. -
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. -
WORK_CENTER
Use with available fluent helpers to apply the WorkCenter field to query operations. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
WORK_DAY_RULE
Use with available fluent helpers to apply the WorkDayRule 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. -
STD_AVAILABLE_CAPACITY_IS_VALID
Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations. -
TO_WORK_CENTER_SHIFT
Use with available fluent helpers to apply the to_WorkCenterShift navigation property to query operations.
-
-
Constructor Details
-
WorkCenterCapacityInterval
public WorkCenterCapacityInterval() -
WorkCenterCapacityInterval
public WorkCenterCapacityInterval(@Nullable String workCenterInternalID, @Nullable String workCenterTypeCode, @Nullable String capacityCategoryAllocation, @Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDateTime intervalEndDate, @Nullable LocalDateTime intervalStartDate, @Nullable String workCenter, @Nullable String plant, @Nullable String workDayRule, @Nullable String availableCapacityIntervalDurn, @Nullable String shiftSequence, @Nullable Boolean stdAvailableCapacityIsValid, List<WorkCenterCapacityShift> toWorkCenterShift)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<WorkCenterCapacityInterval>
-
setWorkCenterInternalID
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: WorkCenterInternalID
- Parameters:
workCenterInternalID- Object ID of the resource
-
setWorkCenterTypeCode
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: WorkCenterTypeCode
- Parameters:
workCenterTypeCode- Object types of the CIM resource
-
setCapacityCategoryAllocation
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CapacityCategoryAllocation
- Parameters:
capacityCategoryAllocation- Capacity Category Allocation
-
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- The intervalStartDate to set.
-
setWorkCenter
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: WorkCenter
- Parameters:
workCenter- Work Center
-
setPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setWorkDayRule
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkDayRule
- Parameters:
workDayRule- The workDayRule to set.
-
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.
-
setStdAvailableCapacityIsValid
Constraints: noneOriginal property name from the Odata EDM: StdAvailableCapacityIsValid
- Parameters:
stdAvailableCapacityIsValid- Ind.: Standard Available Capacity is Valid for this Interval
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<WorkCenterCapacityInterval>
-
getKey
- Overrides:
getKeyin classVdmObject<WorkCenterCapacityInterval>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<WorkCenterCapacityInterval>
-
fromMap
- Overrides:
fromMapin classVdmObject<WorkCenterCapacityInterval>
-
field
@Nonnull public static <T> WorkCenterCapacityIntervalField<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> WorkCenterCapacityIntervalField<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>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<WorkCenterCapacityInterval>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<WorkCenterCapacityInterval>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<WorkCenterCapacityInterval>
-
fetchWorkCenterShift
Fetches the WorkCenterCapacityShift entities (one to many) associated with this entity. This corresponds to the OData navigation property to_WorkCenterShift.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated WorkCenterCapacityShift 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.
-
getWorkCenterShiftOrFetch
Retrieval of associated WorkCenterCapacityShift entities (one to many). This corresponds to the OData navigation property to_WorkCenterShift.If the navigation property to_WorkCenterShift 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.
- Returns:
- List of associated WorkCenterCapacityShift 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.
-
getWorkCenterShiftIfPresent
Retrieval of associated WorkCenterCapacityShift entities (one to many). This corresponds to the OData navigation property to_WorkCenterShift.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 to_WorkCenterShift is already loaded, the result will
contain the WorkCenterCapacityShift entities. If not, an
Optionwith result stateemptyis returned.
-
setWorkCenterShift
Overwrites the list of associated WorkCenterCapacityShift entities for the loaded navigation property to_WorkCenterShift.If the navigation property to_WorkCenterShift 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.
-
addWorkCenterShift
Adds elements to the list of associated WorkCenterCapacityShift entities. This corresponds to the OData navigation property to_WorkCenterShift.If the navigation property to_WorkCenterShift 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
-
getWorkCenterInternalID
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: WorkCenterInternalID
- Returns:
- Object ID of the resource
-
getWorkCenterTypeCode
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: WorkCenterTypeCode
- Returns:
- Object types of the CIM resource
-
getCapacityCategoryAllocation
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CapacityCategoryAllocation
- Returns:
- Capacity Category Allocation
-
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:
- The intervalStartDate contained in this entity.
-
getWorkCenter
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: WorkCenter
- Returns:
- Work Center
-
getPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getWorkDayRule
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkDayRule
- Returns:
- The workDayRule contained in this entity.
-
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.
-
getStdAvailableCapacityIsValid
Constraints: noneOriginal property name from the Odata EDM: StdAvailableCapacityIsValid
- Returns:
- Ind.: Standard Available Capacity is Valid for this Interval
-
toString
- Overrides:
toStringin classVdmObject<WorkCenterCapacityInterval>
-
equals
- Overrides:
equalsin classVdmEntity<WorkCenterCapacityInterval>
-
canEqual
- Overrides:
canEqualin classVdmEntity<WorkCenterCapacityInterval>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<WorkCenterCapacityInterval>
-