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
Helper class to allow for fluent creation of WorkCenterCapacityInterval instances.
|
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,
List<WorkCenterCapacityShift> toWorkCenterShift) |
Modifier and Type | Method and Description |
---|---|
void |
addWorkCenterShift(WorkCenterCapacityShift... entity)
Adds elements to the list of associated WorkCenterCapacityShift entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
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 |
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 |
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
|
io.vavr.control.Option<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 |
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
|
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 |
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() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, 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, 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
- The capacityActiveVersion to set.public void setIntervalEndDate(@Nullable LocalDateTime intervalEndDate)
Original property name from the Odata EDM: IntervalEndDate
intervalEndDate
- The intervalEndDate to set.public void setIntervalStartDate(@Nullable LocalDateTime intervalStartDate)
Original property name from the Odata EDM: IntervalStartDate
intervalStartDate
- The intervalStartDate to set.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
- The workDayRule to set.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
shiftSequence
- The shiftSequence to set.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()
VdmEntity
getEntityCollection
in class VdmEntity<WorkCenterCapacityInterval>
@Nonnull 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)
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> WorkCenterCapacityIntervalField<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>
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>
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>
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>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull 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 io.vavr.control.Option<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 Option
result state will be
empty
.
Option
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
@Nullable public Boolean getStdAvailableCapacityIsValid()
Original property name from the Odata EDM: StdAvailableCapacityIsValid
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 © 2020 SAP SE. All rights reserved.