public class WorkCenterCapacityInterval_2 extends VdmEntity<WorkCenterCapacityInterval_2>
Original entity name from the Odata EDM: A_WorkCenterCapacityInterval_2Type
Modifier and Type | Class and Description |
---|---|
static class |
WorkCenterCapacityInterval_2.WorkCenterCapacityInterval_2Builder
Helper class to allow for fluent creation of WorkCenterCapacityInterval_2 instances.
|
Modifier and Type | Field and Description |
---|---|
static WorkCenterCapacityInterval_2Selectable |
ALL_FIELDS
Selector for all available fields of WorkCenterCapacityInterval_2.
|
static WorkCenterCapacityInterval_2Field<String> |
AVAILABLE_CAPACITY_INTERVAL_DURN
Use with available fluent helpers to apply the AvailableCapacityIntervalDurn field to query operations.
|
static WorkCenterCapacityInterval_2Field<String> |
CAPACITY_ACTIVE_VERSION
Use with available fluent helpers to apply the CapacityActiveVersion field to query operations.
|
static WorkCenterCapacityInterval_2Field<String> |
CAPACITY_INTERNAL_ID
Use with available fluent helpers to apply the CapacityInternalID field to query operations.
|
static WorkCenterCapacityInterval_2Field<ZonedDateTime> |
CAPACITY_LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the CapacityLastChangeDateTime field to query operations.
|
static WorkCenterCapacityInterval_2Field<Short> |
CAPACITY_NUMBER_OF_CAPACITIES
Use with available fluent helpers to apply the CapacityNumberOfCapacities field to query operations.
|
static WorkCenterCapacityInterval_2Field<String> |
CAPACITY_NUMBER_OF_SHIFTS
Use with available fluent helpers to apply the CapacityNumberOfShifts field to query operations.
|
static WorkCenterCapacityInterval_2Field<String> |
CAPACITY_PLAN_UTILIZATION_PERCENT
Use with available fluent helpers to apply the CapacityPlanUtilizationPercent field to query operations.
|
static WorkCenterCapacityInterval_2Field<LocalDateTime> |
INTERVAL_END_DATE
Use with available fluent helpers to apply the IntervalEndDate field to query operations.
|
static WorkCenterCapacityInterval_2Field<LocalDateTime> |
INTERVAL_START_DATE
Use with available fluent helpers to apply the IntervalStartDate field to query operations.
|
static WorkCenterCapacityInterval_2Field<String> |
SHIFT_SEQUENCE
Use with available fluent helpers to apply the ShiftSequence field to query operations.
|
static WorkCenterCapacityInterval_2Field<Boolean> |
STD_AVAILABLE_CAPACITY_IS_VALID
Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations.
|
static WorkCenterCapacityInterval_2Link<WorkCenterCapacityShift_2> |
TO_CAPACITY_SHIFT
Use with available fluent helpers to apply the to_CapacityShift navigation property to query operations.
|
static WorkCenterCapacityInterval_2Field<String> |
WORK_DAY_RULE
Use with available fluent helpers to apply the WorkDayRule field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
WorkCenterCapacityInterval_2() |
WorkCenterCapacityInterval_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) |
Modifier and Type | Method and Description |
---|---|
void |
addCapacityShift(WorkCenterCapacityShift_2... entity)
Adds elements to the list of associated WorkCenterCapacityShift_2 entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static WorkCenterCapacityInterval_2.WorkCenterCapacityInterval_2Builder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<WorkCenterCapacityShift_2> |
fetchCapacityShift()
Fetches the WorkCenterCapacityShift_2 entities (one to many) associated with this entity.
|
static <T> WorkCenterCapacityInterval_2Field<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getAvailableCapacityIntervalDurn()
Constraints: Not nullable, Maximum length: 2
|
String |
getCapacityActiveVersion()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
String |
getCapacityInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
ZonedDateTime |
getCapacityLastChangeDateTime()
Constraints: Not nullable, Precision: 7
|
Short |
getCapacityNumberOfCapacities()
Constraints: none
|
String |
getCapacityNumberOfShifts()
Constraints: Not nullable, Maximum length: 1
|
String |
getCapacityPlanUtilizationPercent()
Constraints: Not nullable, Maximum length: 3
|
io.vavr.control.Option<List<WorkCenterCapacityShift_2>> |
getCapacityShiftIfPresent()
Retrieval of associated WorkCenterCapacityShift_2 entities (one to many).
|
List<WorkCenterCapacityShift_2> |
getCapacityShiftOrFetch()
Retrieval of associated WorkCenterCapacityShift_2 entities (one to many).
|
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
LocalDateTime |
getIntervalEndDate()
(Key Field) Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getIntervalStartDate()
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
getKey() |
String |
getShiftSequence()
Constraints: Not nullable, Maximum length: 4
|
Boolean |
getStdAvailableCapacityIsValid()
Constraints: none
|
Class<WorkCenterCapacityInterval_2> |
getType() |
String |
getWorkDayRule()
Constraints: Not nullable, Maximum length: 1
|
int |
hashCode() |
void |
setAvailableCapacityIntervalDurn(String availableCapacityIntervalDurn)
Constraints: Not nullable, Maximum length: 2
|
void |
setCapacityActiveVersion(String capacityActiveVersion)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setCapacityInternalID(String capacityInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
void |
setCapacityLastChangeDateTime(ZonedDateTime capacityLastChangeDateTime)
Constraints: Not nullable, Precision: 7
|
void |
setCapacityNumberOfCapacities(Short capacityNumberOfCapacities)
Constraints: none
|
void |
setCapacityNumberOfShifts(String capacityNumberOfShifts)
Constraints: Not nullable, Maximum length: 1
|
void |
setCapacityPlanUtilizationPercent(String capacityPlanUtilizationPercent)
Constraints: Not nullable, Maximum length: 3
|
void |
setCapacityShift(List<WorkCenterCapacityShift_2> value)
Overwrites the list of associated WorkCenterCapacityShift_2 entities for the loaded navigation property
to_CapacityShift.
|
void |
setIntervalEndDate(LocalDateTime intervalEndDate)
(Key Field) Constraints: Not nullable, Precision: 0
|
void |
setIntervalStartDate(LocalDateTime intervalStartDate)
Constraints: Not nullable, Precision: 0
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setShiftSequence(String shiftSequence)
Constraints: Not nullable, Maximum length: 4
|
void |
setStdAvailableCapacityIsValid(Boolean stdAvailableCapacityIsValid)
Constraints: none
|
void |
setWorkDayRule(String workDayRule)
Constraints: Not nullable, Maximum length: 1
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final WorkCenterCapacityInterval_2Selectable ALL_FIELDS
public static final WorkCenterCapacityInterval_2Field<String> CAPACITY_INTERNAL_ID
public static final WorkCenterCapacityInterval_2Field<String> CAPACITY_ACTIVE_VERSION
public static final WorkCenterCapacityInterval_2Field<LocalDateTime> INTERVAL_END_DATE
public static final WorkCenterCapacityInterval_2Field<LocalDateTime> INTERVAL_START_DATE
public static final WorkCenterCapacityInterval_2Field<Boolean> STD_AVAILABLE_CAPACITY_IS_VALID
public static final WorkCenterCapacityInterval_2Field<String> AVAILABLE_CAPACITY_INTERVAL_DURN
public static final WorkCenterCapacityInterval_2Field<String> SHIFT_SEQUENCE
public static final WorkCenterCapacityInterval_2Field<String> WORK_DAY_RULE
public static final WorkCenterCapacityInterval_2Field<String> CAPACITY_NUMBER_OF_SHIFTS
public static final WorkCenterCapacityInterval_2Field<Short> CAPACITY_NUMBER_OF_CAPACITIES
public static final WorkCenterCapacityInterval_2Field<String> CAPACITY_PLAN_UTILIZATION_PERCENT
public static final WorkCenterCapacityInterval_2Field<ZonedDateTime> CAPACITY_LAST_CHANGE_DATE_TIME
public static final WorkCenterCapacityInterval_2Link<WorkCenterCapacityShift_2> TO_CAPACITY_SHIFT
public 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)
@Nonnull public Class<WorkCenterCapacityInterval_2> getType()
getType
in class VdmObject<WorkCenterCapacityInterval_2>
public void setCapacityInternalID(@Nullable String capacityInternalID)
Original property name from the Odata EDM: CapacityInternalID
capacityInternalID
- Capacity IDpublic void setCapacityActiveVersion(@Nullable String capacityActiveVersion)
Original property name from the Odata EDM: CapacityActiveVersion
with which you are workingto which you are referring.Can be used to maintain several versions of available capacity at the same time.
capacityActiveVersion
- The number which identifies the version of available capacity:public void setIntervalEndDate(@Nullable LocalDateTime intervalEndDate)
Original property name from the Odata EDM: IntervalEndDate
intervalEndDate
- End of validity period of an object (such as material, BOM, or routing) in the SAP System.public void setIntervalStartDate(@Nullable LocalDateTime intervalStartDate)
Original property name from the Odata EDM: IntervalStartDate
intervalStartDate
- Specifies the start date for the validity period of an object (such as material, BOM, or routing).public void setStdAvailableCapacityIsValid(@Nullable Boolean stdAvailableCapacityIsValid)
Original property name from the Odata EDM: StdAvailableCapacityIsValid
stdAvailableCapacityIsValid
- Indicator which shows that the available capacity in this interval corresponds to the standard
available capacity.public void setAvailableCapacityIntervalDurn(@Nullable String availableCapacityIntervalDurn)
Original property name from the Odata EDM: AvailableCapacityIntervalDurn
availableCapacityIntervalDurn
- Duration of an Available Capacity Intervalpublic void setShiftSequence(@Nullable String shiftSequence)
Original property name from the Odata EDM: ShiftSequence
The system automatically generates the length of the cycle and the number of shifts using the shift schedule.
shiftSequence
- You can set the shift sequence for one or more days with this key.public void setWorkDayRule(@Nullable String workDayRule)
Original property name from the Odata EDM: WorkDayRule
workDayRule
- Workday Rule Codepublic void setCapacityNumberOfShifts(@Nullable String capacityNumberOfShifts)
Original property name from the Odata EDM: CapacityNumberOfShifts
capacityNumberOfShifts
- Maximum number of shifts per day within the interval.public void setCapacityNumberOfCapacities(@Nullable Short capacityNumberOfCapacities)
Original property name from the Odata EDM: CapacityNumberOfCapacities
For example, a group made up of 5 machines has 5 elements.
capacityNumberOfCapacities
- Number of elements which make up a capacity group.public void setCapacityPlanUtilizationPercent(@Nullable String capacityPlanUtilizationPercent)
Original property name from the Odata EDM: CapacityPlanUtilizationPercent
Enter the average capacity utilization rate of all machines providing that capacity during the shift.The capacity utilization rate, the number of individual capacities and the operating time per shift make up the total capacity for the shift generated by the system.
capacityPlanUtilizationPercent
- The relationship (expressed in percent) between a machine´s actual capacity and it´s theoretical
capacity.public void setCapacityLastChangeDateTime(@Nullable ZonedDateTime capacityLastChangeDateTime)
Original property name from the Odata EDM: CapacityLastChangeDateTime
capacityLastChangeDateTime
- Capacity Last Change Date Timeprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<WorkCenterCapacityInterval_2>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<WorkCenterCapacityInterval_2>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<WorkCenterCapacityInterval_2>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<WorkCenterCapacityInterval_2>
@Nonnull public static <T> WorkCenterCapacityInterval_2Field<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> WorkCenterCapacityInterval_2Field<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<WorkCenterCapacityInterval_2>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<WorkCenterCapacityInterval_2>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<WorkCenterCapacityInterval_2>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<WorkCenterCapacityInterval_2>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<WorkCenterCapacityInterval_2>
@Nonnull public List<WorkCenterCapacityShift_2> fetchCapacityShift() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<WorkCenterCapacityShift_2> getCapacityShiftOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<WorkCenterCapacityShift_2>> getCapacityShiftIfPresent()
If the navigation property for an entity WorkCenterCapacityInterval_2 has not been resolved yet, this
method will not query further information. Instead its Option
result state will be
empty
.
Option
with result state
empty
is returned.public void setCapacityShift(@Nonnull List<WorkCenterCapacityShift_2> value)
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.
value
- List of WorkCenterCapacityShift_2 entities.public void addCapacityShift(WorkCenterCapacityShift_2... entity)
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.
entity
- Array of WorkCenterCapacityShift_2 entities.public static WorkCenterCapacityInterval_2.WorkCenterCapacityInterval_2Builder builder()
@Nullable public String getCapacityInternalID()
Original property name from the Odata EDM: CapacityInternalID
@Nullable public String getCapacityActiveVersion()
Original property name from the Odata EDM: CapacityActiveVersion
with which you are workingto which you are referring.Can be used to maintain several versions of available capacity at the same time.
@Nullable public LocalDateTime getIntervalEndDate()
Original property name from the Odata EDM: IntervalEndDate
@Nullable public LocalDateTime getIntervalStartDate()
Original property name from the Odata EDM: IntervalStartDate
@Nullable public Boolean getStdAvailableCapacityIsValid()
Original property name from the Odata EDM: StdAvailableCapacityIsValid
@Nullable public String getAvailableCapacityIntervalDurn()
Original property name from the Odata EDM: AvailableCapacityIntervalDurn
@Nullable public String getShiftSequence()
Original property name from the Odata EDM: ShiftSequence
The system automatically generates the length of the cycle and the number of shifts using the shift schedule.
@Nullable public String getWorkDayRule()
Original property name from the Odata EDM: WorkDayRule
@Nullable public String getCapacityNumberOfShifts()
Original property name from the Odata EDM: CapacityNumberOfShifts
@Nullable public Short getCapacityNumberOfCapacities()
Original property name from the Odata EDM: CapacityNumberOfCapacities
For example, a group made up of 5 machines has 5 elements.
@Nullable public String getCapacityPlanUtilizationPercent()
Original property name from the Odata EDM: CapacityPlanUtilizationPercent
Enter the average capacity utilization rate of all machines providing that capacity during the shift.The capacity utilization rate, the number of individual capacities and the operating time per shift make up the total capacity for the shift generated by the system.
@Nullable public ZonedDateTime getCapacityLastChangeDateTime()
Original property name from the Odata EDM: CapacityLastChangeDateTime
public String toString()
toString
in class VdmObject<WorkCenterCapacityInterval_2>
public boolean equals(Object o)
equals
in class VdmObject<WorkCenterCapacityInterval_2>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<WorkCenterCapacityInterval_2>
public int hashCode()
hashCode
in class VdmObject<WorkCenterCapacityInterval_2>
Copyright © 2020 SAP SE. All rights reserved.