public class WorkCenterCapacityInterval extends VdmEntity<WorkCenterCapacityInterval>
Original entity name from the Odata EDM: A_WorkCenterCapacityIntervalType
Modifier and Type | Class and Description |
---|---|
static class |
WorkCenterCapacityInterval.WorkCenterCapacityIntervalBuilder |
Modifier and Type | Field and Description |
---|---|
static WorkCenterCapacityIntervalSelectable |
ALL_FIELDS
Selector for all available fields of WorkCenterCapacityInterval.
|
static WorkCenterCapacityIntervalField<String> |
AVAILABLE_CAPACITY_INTERVAL_DURN
Use with available fluent helpers to apply the AvailableCapacityIntervalDurn field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
CAPACITY_ACTIVE_VERSION
Use with available fluent helpers to apply the CapacityActiveVersion field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
CAPACITY_CATEGORY_ALLOCATION
Use with available fluent helpers to apply the CapacityCategoryAllocation field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
CAPACITY_INTERNAL_ID
Use with available fluent helpers to apply the CapacityInternalID field to query operations.
|
static WorkCenterCapacityIntervalField<LocalDateTime> |
INTERVAL_END_DATE
Use with available fluent helpers to apply the IntervalEndDate field to query operations.
|
static WorkCenterCapacityIntervalField<LocalDateTime> |
INTERVAL_START_DATE
Use with available fluent helpers to apply the IntervalStartDate field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
SHIFT_SEQUENCE
Use with available fluent helpers to apply the ShiftSequence field to query operations.
|
static WorkCenterCapacityIntervalField<Boolean> |
STD_AVAILABLE_CAPACITY_IS_VALID
Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations.
|
static WorkCenterCapacityIntervalLink<WorkCenterCapacityShift> |
TO_WORK_CENTER_SHIFT
Use with available fluent helpers to apply the to_WorkCenterShift navigation property to query operations.
|
static WorkCenterCapacityIntervalField<String> |
WORK_CENTER
Use with available fluent helpers to apply the WorkCenter field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
WORK_CENTER_INTERNAL_ID
Use with available fluent helpers to apply the WorkCenterInternalID field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
WORK_CENTER_TYPE_CODE
Use with available fluent helpers to apply the WorkCenterTypeCode field to query operations.
|
static WorkCenterCapacityIntervalField<String> |
WORK_DAY_RULE
Use with available fluent helpers to apply the WorkDayRule field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
WorkCenterCapacityInterval() |
WorkCenterCapacityInterval(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,
ErpConfigContext erpConfigContext,
List<WorkCenterCapacityShift> toWorkCenterShift) |
Modifier and Type | Method and Description |
---|---|
void |
addWorkCenterShift(WorkCenterCapacityShift... entity)
Adds elements to the list of associated WorkCenterCapacityShift entities.
|
static WorkCenterCapacityInterval.WorkCenterCapacityIntervalBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<WorkCenterCapacityShift> |
fetchWorkCenterShift()
Fetches the WorkCenterCapacityShift entities (one to many) associated with this entity.
|
static <T> WorkCenterCapacityIntervalField<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 |
getCapacityCategoryAllocation()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getCapacityInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
LocalDateTime |
getIntervalEndDate()
(Key Field) Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getIntervalStartDate()
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
getKey() |
String |
getPlant()
Constraints: Not nullable, Maximum length: 4
|
String |
getShiftSequence()
Constraints: Not nullable, Maximum length: 4
|
Boolean |
getStdAvailableCapacityIsValid()
Constraints: none
|
Class<WorkCenterCapacityInterval> |
getType() |
String |
getWorkCenter()
Constraints: Not nullable, Maximum length: 8
|
String |
getWorkCenterInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
Optional<List<WorkCenterCapacityShift>> |
getWorkCenterShiftIfPresent()
Retrieval of associated WorkCenterCapacityShift entities (one to many).
|
List<WorkCenterCapacityShift> |
getWorkCenterShiftOrFetch()
Retrieval of associated WorkCenterCapacityShift entities (one to many).
|
String |
getWorkCenterTypeCode()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
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 |
setCapacityCategoryAllocation(String capacityCategoryAllocation)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setCapacityInternalID(String capacityInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setIntervalEndDate(LocalDateTime intervalEndDate)
(Key Field) Constraints: Not nullable, Precision: 0
|
void |
setIntervalStartDate(LocalDateTime intervalStartDate)
Constraints: Not nullable, Precision: 0
|
void |
setPlant(String plant)
Constraints: Not nullable, Maximum length: 4
|
void |
setShiftSequence(String shiftSequence)
Constraints: Not nullable, Maximum length: 4
|
void |
setStdAvailableCapacityIsValid(Boolean stdAvailableCapacityIsValid)
Constraints: none
|
void |
setWorkCenter(String workCenter)
Constraints: Not nullable, Maximum length: 8
|
void |
setWorkCenterInternalID(String workCenterInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
void |
setWorkCenterShift(List<WorkCenterCapacityShift> value)
Overwrites the list of associated WorkCenterCapacityShift entities for the loaded navigation property to_WorkCenterShift.
|
void |
setWorkCenterTypeCode(String workCenterTypeCode)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setWorkDayRule(String workDayRule)
Constraints: Not nullable, Maximum length: 1
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, getVersionIdentifier, setServicePathForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final WorkCenterCapacityIntervalSelectable ALL_FIELDS
public static final WorkCenterCapacityIntervalField<String> WORK_CENTER_INTERNAL_ID
public static final WorkCenterCapacityIntervalField<String> WORK_CENTER_TYPE_CODE
public static final WorkCenterCapacityIntervalField<String> CAPACITY_CATEGORY_ALLOCATION
public static final WorkCenterCapacityIntervalField<String> CAPACITY_INTERNAL_ID
public static final WorkCenterCapacityIntervalField<String> CAPACITY_ACTIVE_VERSION
public static final WorkCenterCapacityIntervalField<LocalDateTime> INTERVAL_END_DATE
public static final WorkCenterCapacityIntervalField<LocalDateTime> INTERVAL_START_DATE
public static final WorkCenterCapacityIntervalField<String> WORK_CENTER
public static final WorkCenterCapacityIntervalField<String> PLANT
public static final WorkCenterCapacityIntervalField<String> WORK_DAY_RULE
public static final WorkCenterCapacityIntervalField<String> AVAILABLE_CAPACITY_INTERVAL_DURN
public static final WorkCenterCapacityIntervalField<String> SHIFT_SEQUENCE
public static final WorkCenterCapacityIntervalField<Boolean> STD_AVAILABLE_CAPACITY_IS_VALID
public static final WorkCenterCapacityIntervalLink<WorkCenterCapacityShift> TO_WORK_CENTER_SHIFT
public 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, @Nullable ErpConfigContext erpConfigContext, List<WorkCenterCapacityShift> toWorkCenterShift)
@Nonnull public Class<WorkCenterCapacityInterval> getType()
getType
in class VdmObject<WorkCenterCapacityInterval>
public void setWorkCenterInternalID(@Nullable String workCenterInternalID)
Original property name from the Odata EDM: WorkCenterInternalID
The number is only used internally but the system displays it within matchcode selection for technical reasons. You do not have to make an entry.
workCenterInternalID
- This internally used number and the object type identify the operating resource (for example, the work center or production resource/tool).public void setWorkCenterTypeCode(@Nullable String workCenterTypeCode)
Original property name from the Odata EDM: WorkCenterTypeCode
A - a work centerFH - a production resource/tool.The key is only used internally but it is displayed within matchcode selection on technical grounds. You do not have to make an entry.
workCenterTypeCode
- Internally used key which identifies the type of operating resource. For example, the following indicators represent:public void setCapacityCategoryAllocation(@Nullable String capacityCategoryAllocation)
Original property name from the Odata EDM: CapacityCategoryAllocation
capacityCategoryAllocation
- Capacity Category Allocationpublic 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
capacityActiveVersion
- public void setIntervalEndDate(@Nullable LocalDateTime intervalEndDate)
Original property name from the Odata EDM: IntervalEndDate
intervalEndDate
- public void setIntervalStartDate(@Nullable LocalDateTime intervalStartDate)
Original property name from the Odata EDM: IntervalStartDate
intervalStartDate
- public void setWorkCenter(@Nullable String workCenter)
Original property name from the Odata EDM: WorkCenter
workCenter
- Work Centerpublic void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Key uniquely identifying a plant.public void setWorkDayRule(@Nullable String workDayRule)
Original property name from the Odata EDM: WorkDayRule
workDayRule
- public void setAvailableCapacityIntervalDurn(@Nullable String availableCapacityIntervalDurn)
Original property name from the Odata EDM: AvailableCapacityIntervalDurn
availableCapacityIntervalDurn
- public 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 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.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<WorkCenterCapacityInterval>
protected Map<String,Object> getKey()
getKey
in class VdmObject<WorkCenterCapacityInterval>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<WorkCenterCapacityInterval>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<WorkCenterCapacityInterval>
@Nonnull public static <T> WorkCenterCapacityIntervalField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
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> WorkCenterCapacityIntervalField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<WorkCenterCapacityInterval>
@Nonnull public List<WorkCenterCapacityShift> fetchWorkCenterShift() 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> getWorkCenterShiftOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
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 Optional<List<WorkCenterCapacityShift>> getWorkCenterShiftIfPresent()
If the navigation property for an entity WorkCenterCapacityInterval has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setWorkCenterShift(@Nonnull List<WorkCenterCapacityShift> value)
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.
value
- List of WorkCenterCapacityShift entities.public void addWorkCenterShift(WorkCenterCapacityShift... entity)
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.
entity
- Array of WorkCenterCapacityShift entities.public static WorkCenterCapacityInterval.WorkCenterCapacityIntervalBuilder builder()
@Nullable public String getWorkCenterInternalID()
Original property name from the Odata EDM: WorkCenterInternalID
The number is only used internally but the system displays it within matchcode selection for technical reasons. You do not have to make an entry.
@Nullable public String getWorkCenterTypeCode()
Original property name from the Odata EDM: WorkCenterTypeCode
A - a work centerFH - a production resource/tool.The key is only used internally but it is displayed within matchcode selection on technical grounds. You do not have to make an entry.
@Nullable public String getCapacityCategoryAllocation()
Original property name from the Odata EDM: CapacityCategoryAllocation
@Nullable public String getCapacityInternalID()
Original property name from the Odata EDM: CapacityInternalID
@Nullable public String getCapacityActiveVersion()
Original property name from the Odata EDM: CapacityActiveVersion
@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 String getWorkCenter()
Original property name from the Odata EDM: WorkCenter
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getWorkDayRule()
Original property name from the Odata EDM: WorkDayRule
@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 Boolean getStdAvailableCapacityIsValid()
Original property name from the Odata EDM: StdAvailableCapacityIsValid
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
setErpConfigContext
in class VdmEntity<WorkCenterCapacityInterval>
erpConfigContext
- public String toString()
toString
in class VdmObject<WorkCenterCapacityInterval>
public boolean equals(Object o)
equals
in class VdmObject<WorkCenterCapacityInterval>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<WorkCenterCapacityInterval>
public int hashCode()
hashCode
in class VdmObject<WorkCenterCapacityInterval>
Copyright © 2018 SAP SE. All rights reserved.