public class MaintenanceItemReason extends VdmEntity<MaintenanceItemReason>
Original entity name from the Odata EDM: MaintenanceItemReasonType
Modifier and Type | Class and Description |
---|---|
static class |
MaintenanceItemReason.MaintenanceItemReasonBuilder
Helper class to allow for fluent creation of MaintenanceItemReason instances.
|
Modifier and Type | Field and Description |
---|---|
static MaintenanceItemReasonSelectable |
ALL_FIELDS
Selector for all available fields of MaintenanceItemReason.
|
static MaintenanceItemReasonField<String> |
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations.
|
static MaintenanceItemReasonField<LocalDateTime> |
CREATION_DATE
Use with available fluent helpers to apply the CreationDate field to query operations.
|
static MaintenanceItemReasonField<LocalDateTime> |
LAST_CHANGE_DATE
Use with available fluent helpers to apply the LastChangeDate field to query operations.
|
static MaintenanceItemReasonField<ZonedDateTime> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static MaintenanceItemReasonField<String> |
LAST_CHANGED_BY_USER
Use with available fluent helpers to apply the LastChangedByUser field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINT_CMPL_RQ_IS_LEGALLY_BINDING
Use with available fluent helpers to apply the MaintCmplRqIsLegallyBinding field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINT_CMPL_RQ_ORIGIN_CODE
Use with available fluent helpers to apply the MaintCmplRqOriginCode field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINT_COMPLIANCE_CATALOG_CODE
Use with available fluent helpers to apply the MaintComplianceCatalogCode field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINT_COMPLIANCE_DESCRIPTION
Use with available fluent helpers to apply the MaintComplianceDescription field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINTENANCE_COMPLIANCE_CODE
Use with available fluent helpers to apply the MaintenanceComplianceCode field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINTENANCE_COMPLIANCE_GROUP_CODE
Use with available fluent helpers to apply the MaintenanceComplianceGroupCode field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINTENANCE_COMPLIANCE_TYPE_CODE
Use with available fluent helpers to apply the MaintenanceComplianceTypeCode field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINTENANCE_ITEM
Use with available fluent helpers to apply the MaintenanceItem field to query operations.
|
static MaintenanceItemReasonField<String> |
MAINTENANCE_PACKAGE
Use with available fluent helpers to apply the MaintenancePackage field to query operations.
|
static MaintenanceItemReasonField<String> |
NMBR_OF_MAINT_COMPLIANCE_ITEMS
Use with available fluent helpers to apply the NmbrOfMaintComplianceItems field to query operations.
|
static MaintenanceItemReasonOneToOneLink<MaintenanceItem> |
TO_MAINTENANCE_ITEM
Use with available fluent helpers to apply the to_MaintenanceItem navigation property to query operations.
|
static MaintenanceItemReasonLink<MaintenanceItemReasonText> |
TO_MAINTENANCE_ITEM_REASON_TEXT
Use with available fluent helpers to apply the to_MaintenanceItemReasonText navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
MaintenanceItemReason() |
MaintenanceItemReason(String maintenanceItem,
String nmbrOfMaintComplianceItems,
String maintenanceComplianceGroupCode,
String maintenanceComplianceCode,
String maintenanceComplianceTypeCode,
String maintComplianceCatalogCode,
String maintComplianceDescription,
String maintenancePackage,
String maintCmplRqIsLegallyBinding,
String maintCmplRqOriginCode,
String createdByUser,
LocalDateTime creationDate,
String lastChangedByUser,
LocalDateTime lastChangeDate,
ZonedDateTime lastChangeDateTime,
MaintenanceItem toMaintenanceItem,
List<MaintenanceItemReasonText> toMaintenanceItemReasonText) |
Modifier and Type | Method and Description |
---|---|
void |
addMaintenanceItemReasonText(MaintenanceItemReasonText... entity)
Adds elements to the list of associated MaintenanceItemReasonText entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination) |
static MaintenanceItemReason.MaintenanceItemReasonBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
MaintenanceItem |
fetchMaintenanceItem()
Fetches the MaintenanceItem entity (one to one) associated with this entity.
|
List<MaintenanceItemReasonText> |
fetchMaintenanceItemReasonText()
Fetches the MaintenanceItemReasonText entities (one to many) associated with this entity.
|
static <T> MaintenanceItemReasonField<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 |
getCreatedByUser()
Constraints: Not nullable, Maximum length: 12
|
LocalDateTime |
getCreationDate()
Constraints: Not nullable, Precision: 0
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch() |
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
LocalDateTime |
getLastChangeDate()
Constraints: Not nullable, Precision: 0
|
ZonedDateTime |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 0
|
String |
getLastChangedByUser()
Constraints: Not nullable, Maximum length: 12
|
String |
getMaintCmplRqIsLegallyBinding()
Constraints: Not nullable, Maximum length: 1
|
String |
getMaintCmplRqOriginCode()
Constraints: Not nullable, Maximum length: 4
|
String |
getMaintComplianceCatalogCode()
Constraints: Not nullable, Maximum length: 1
|
String |
getMaintComplianceDescription()
Constraints: Not nullable, Maximum length: 40
|
String |
getMaintenanceComplianceCode()
Constraints: Not nullable, Maximum length: 4
|
String |
getMaintenanceComplianceGroupCode()
Constraints: Not nullable, Maximum length: 8
|
String |
getMaintenanceComplianceTypeCode()
Constraints: Not nullable, Maximum length: 1
|
String |
getMaintenanceItem()
(Key Field) Constraints: Not nullable, Maximum length: 16
|
io.vavr.control.Option<MaintenanceItem> |
getMaintenanceItemIfPresent()
Retrieval of associated MaintenanceItem entity (one to one).
|
MaintenanceItem |
getMaintenanceItemOrFetch()
Retrieval of associated MaintenanceItem entity (one to one).
|
io.vavr.control.Option<List<MaintenanceItemReasonText>> |
getMaintenanceItemReasonTextIfPresent()
Retrieval of associated MaintenanceItemReasonText entities (one to many).
|
List<MaintenanceItemReasonText> |
getMaintenanceItemReasonTextOrFetch()
Retrieval of associated MaintenanceItemReasonText entities (one to many).
|
String |
getMaintenancePackage()
Constraints: Not nullable, Maximum length: 2
|
String |
getNmbrOfMaintComplianceItems()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
Class<MaintenanceItemReason> |
getType() |
int |
hashCode() |
void |
setCreatedByUser(String createdByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setCreationDate(LocalDateTime creationDate)
Constraints: Not nullable, Precision: 0
|
void |
setLastChangeDate(LocalDateTime lastChangeDate)
Constraints: Not nullable, Precision: 0
|
void |
setLastChangeDateTime(ZonedDateTime lastChangeDateTime)
Constraints: Not nullable, Precision: 0
|
void |
setLastChangedByUser(String lastChangedByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setMaintCmplRqIsLegallyBinding(String maintCmplRqIsLegallyBinding)
Constraints: Not nullable, Maximum length: 1
|
void |
setMaintCmplRqOriginCode(String maintCmplRqOriginCode)
Constraints: Not nullable, Maximum length: 4
|
void |
setMaintComplianceCatalogCode(String maintComplianceCatalogCode)
Constraints: Not nullable, Maximum length: 1
|
void |
setMaintComplianceDescription(String maintComplianceDescription)
Constraints: Not nullable, Maximum length: 40
|
void |
setMaintenanceComplianceCode(String maintenanceComplianceCode)
Constraints: Not nullable, Maximum length: 4
|
void |
setMaintenanceComplianceGroupCode(String maintenanceComplianceGroupCode)
Constraints: Not nullable, Maximum length: 8
|
void |
setMaintenanceComplianceTypeCode(String maintenanceComplianceTypeCode)
Constraints: Not nullable, Maximum length: 1
|
void |
setMaintenanceItem(MaintenanceItem value)
Overwrites the associated MaintenanceItem entity for the loaded navigation property
to_MaintenanceItem.
|
void |
setMaintenanceItem(String maintenanceItem)
(Key Field) Constraints: Not nullable, Maximum length: 16
|
void |
setMaintenanceItemReasonText(List<MaintenanceItemReasonText> value)
Overwrites the list of associated MaintenanceItemReasonText entities for the loaded navigation property
to_MaintenanceItemReasonText.
|
void |
setMaintenancePackage(String maintenancePackage)
Constraints: Not nullable, Maximum length: 2
|
void |
setNmbrOfMaintComplianceItems(String nmbrOfMaintComplianceItems)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
protected void |
setServicePathForFetch(String servicePathForFetch) |
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final MaintenanceItemReasonSelectable ALL_FIELDS
public static final MaintenanceItemReasonField<String> MAINTENANCE_ITEM
public static final MaintenanceItemReasonField<String> NMBR_OF_MAINT_COMPLIANCE_ITEMS
public static final MaintenanceItemReasonField<String> MAINTENANCE_COMPLIANCE_GROUP_CODE
public static final MaintenanceItemReasonField<String> MAINTENANCE_COMPLIANCE_CODE
public static final MaintenanceItemReasonField<String> MAINTENANCE_COMPLIANCE_TYPE_CODE
public static final MaintenanceItemReasonField<String> MAINT_COMPLIANCE_CATALOG_CODE
public static final MaintenanceItemReasonField<String> MAINT_COMPLIANCE_DESCRIPTION
public static final MaintenanceItemReasonField<String> MAINTENANCE_PACKAGE
public static final MaintenanceItemReasonField<String> MAINT_CMPL_RQ_IS_LEGALLY_BINDING
public static final MaintenanceItemReasonField<String> MAINT_CMPL_RQ_ORIGIN_CODE
public static final MaintenanceItemReasonField<String> CREATED_BY_USER
public static final MaintenanceItemReasonField<LocalDateTime> CREATION_DATE
public static final MaintenanceItemReasonField<String> LAST_CHANGED_BY_USER
public static final MaintenanceItemReasonField<LocalDateTime> LAST_CHANGE_DATE
public static final MaintenanceItemReasonField<ZonedDateTime> LAST_CHANGE_DATE_TIME
public static final MaintenanceItemReasonOneToOneLink<MaintenanceItem> TO_MAINTENANCE_ITEM
public static final MaintenanceItemReasonLink<MaintenanceItemReasonText> TO_MAINTENANCE_ITEM_REASON_TEXT
public MaintenanceItemReason()
public MaintenanceItemReason(@Nullable String maintenanceItem, @Nullable String nmbrOfMaintComplianceItems, @Nullable String maintenanceComplianceGroupCode, @Nullable String maintenanceComplianceCode, @Nullable String maintenanceComplianceTypeCode, @Nullable String maintComplianceCatalogCode, @Nullable String maintComplianceDescription, @Nullable String maintenancePackage, @Nullable String maintCmplRqIsLegallyBinding, @Nullable String maintCmplRqOriginCode, @Nullable String createdByUser, @Nullable LocalDateTime creationDate, @Nullable String lastChangedByUser, @Nullable LocalDateTime lastChangeDate, @Nullable ZonedDateTime lastChangeDateTime, @Nullable MaintenanceItem toMaintenanceItem, List<MaintenanceItemReasonText> toMaintenanceItemReasonText)
@Nonnull public Class<MaintenanceItemReason> getType()
getType
in class VdmObject<MaintenanceItemReason>
public void setMaintenanceItem(@Nullable String maintenanceItem)
Original property name from the Odata EDM: MaintenanceItem
maintenanceItem
- Maintenance Itempublic void setNmbrOfMaintComplianceItems(@Nullable String nmbrOfMaintComplianceItems)
Original property name from the Odata EDM: NmbrOfMaintComplianceItems
nmbrOfMaintComplianceItems
- Sequential Number for Compliancepublic void setMaintenanceComplianceGroupCode(@Nullable String maintenanceComplianceGroupCode)
Original property name from the Odata EDM: MaintenanceComplianceGroupCode
maintenanceComplianceGroupCode
- Compliance Grouppublic void setMaintenanceComplianceCode(@Nullable String maintenanceComplianceCode)
Original property name from the Odata EDM: MaintenanceComplianceCode
maintenanceComplianceCode
- Compliance Codepublic void setMaintenanceComplianceTypeCode(@Nullable String maintenanceComplianceTypeCode)
Original property name from the Odata EDM: MaintenanceComplianceTypeCode
maintenanceComplianceTypeCode
- Compliance Type: 'C'ause or 'R'easonpublic void setMaintComplianceCatalogCode(@Nullable String maintComplianceCatalogCode)
Original property name from the Odata EDM: MaintComplianceCatalogCode
maintComplianceCatalogCode
- Compliance Catalogpublic void setMaintComplianceDescription(@Nullable String maintComplianceDescription)
Original property name from the Odata EDM: MaintComplianceDescription
maintComplianceDescription
- Compliance Descriptionpublic void setMaintenancePackage(@Nullable String maintenancePackage)
Original property name from the Odata EDM: MaintenancePackage
maintenancePackage
- Maintenance Package Numberpublic void setMaintCmplRqIsLegallyBinding(@Nullable String maintCmplRqIsLegallyBinding)
Original property name from the Odata EDM: MaintCmplRqIsLegallyBinding
maintCmplRqIsLegallyBinding
- Legally Binding Requirementpublic void setMaintCmplRqOriginCode(@Nullable String maintCmplRqOriginCode)
Original property name from the Odata EDM: MaintCmplRqOriginCode
maintCmplRqOriginCode
- Origin of Compliance Requirementpublic void setCreatedByUser(@Nullable String createdByUser)
Original property name from the Odata EDM: CreatedByUser
createdByUser
- Name of Person Responsible for Creating the Objectpublic void setCreationDate(@Nullable LocalDateTime creationDate)
Original property name from the Odata EDM: CreationDate
creationDate
- Record Created Onpublic void setLastChangedByUser(@Nullable String lastChangedByUser)
Original property name from the Odata EDM: LastChangedByUser
lastChangedByUser
- Name of Person Who Changed Objectpublic void setLastChangeDate(@Nullable LocalDateTime lastChangeDate)
Original property name from the Odata EDM: LastChangeDate
lastChangeDate
- Last Changed Onpublic void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
Original property name from the Odata EDM: LastChangeDateTime
lastChangeDateTime
- Changed Date and Timeprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<MaintenanceItemReason>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<MaintenanceItemReason>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<MaintenanceItemReason>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<MaintenanceItemReason>
@Nonnull public static <T> MaintenanceItemReasonField<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> MaintenanceItemReasonField<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()
getDestinationForFetch
in class VdmEntity<MaintenanceItemReason>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
setServicePathForFetch
in class VdmEntity<MaintenanceItemReason>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
attachToService
in class VdmEntity<MaintenanceItemReason>
protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<MaintenanceItemReason>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<MaintenanceItemReason>
@Nullable public MaintenanceItem fetchMaintenanceItem()
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.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.@Nullable public MaintenanceItem getMaintenanceItemOrFetch()
If the navigation property to_MaintenanceItem of a queried MaintenanceItemReason 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.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.@Nonnull public io.vavr.control.Option<MaintenanceItem> getMaintenanceItemIfPresent()
If the navigation property for an entity MaintenanceItemReason 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 setMaintenanceItem(MaintenanceItem value)
value
- New MaintenanceItem entity.@Nonnull public List<MaintenanceItemReasonText> fetchMaintenanceItemReasonText()
Please note: This method will not cache or persist the query results.
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.@Nonnull public List<MaintenanceItemReasonText> getMaintenanceItemReasonTextOrFetch()
If the navigation property to_MaintenanceItemReasonText of a queried MaintenanceItemReason 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.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.@Nonnull public io.vavr.control.Option<List<MaintenanceItemReasonText>> getMaintenanceItemReasonTextIfPresent()
If the navigation property for an entity MaintenanceItemReason 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 setMaintenanceItemReasonText(@Nonnull List<MaintenanceItemReasonText> value)
If the navigation property to_MaintenanceItemReasonText of a queried MaintenanceItemReason 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 MaintenanceItemReasonText entities.public void addMaintenanceItemReasonText(MaintenanceItemReasonText... entity)
If the navigation property to_MaintenanceItemReasonText of a queried MaintenanceItemReason 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 MaintenanceItemReasonText entities.@Nonnull public static MaintenanceItemReason.MaintenanceItemReasonBuilder builder()
@Nullable public String getMaintenanceItem()
Original property name from the Odata EDM: MaintenanceItem
@Nullable public String getNmbrOfMaintComplianceItems()
Original property name from the Odata EDM: NmbrOfMaintComplianceItems
@Nullable public String getMaintenanceComplianceGroupCode()
Original property name from the Odata EDM: MaintenanceComplianceGroupCode
@Nullable public String getMaintenanceComplianceCode()
Original property name from the Odata EDM: MaintenanceComplianceCode
@Nullable public String getMaintenanceComplianceTypeCode()
Original property name from the Odata EDM: MaintenanceComplianceTypeCode
@Nullable public String getMaintComplianceCatalogCode()
Original property name from the Odata EDM: MaintComplianceCatalogCode
@Nullable public String getMaintComplianceDescription()
Original property name from the Odata EDM: MaintComplianceDescription
@Nullable public String getMaintenancePackage()
Original property name from the Odata EDM: MaintenancePackage
@Nullable public String getMaintCmplRqIsLegallyBinding()
Original property name from the Odata EDM: MaintCmplRqIsLegallyBinding
@Nullable public String getMaintCmplRqOriginCode()
Original property name from the Odata EDM: MaintCmplRqOriginCode
@Nullable public String getCreatedByUser()
Original property name from the Odata EDM: CreatedByUser
@Nullable public LocalDateTime getCreationDate()
Original property name from the Odata EDM: CreationDate
@Nullable public String getLastChangedByUser()
Original property name from the Odata EDM: LastChangedByUser
@Nullable public LocalDateTime getLastChangeDate()
Original property name from the Odata EDM: LastChangeDate
@Nullable public ZonedDateTime getLastChangeDateTime()
Original property name from the Odata EDM: LastChangeDateTime
@Nonnull public String toString()
toString
in class VdmObject<MaintenanceItemReason>
public boolean equals(@Nullable Object o)
equals
in class VdmEntity<MaintenanceItemReason>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmEntity<MaintenanceItemReason>
public int hashCode()
hashCode
in class VdmEntity<MaintenanceItemReason>
Copyright © 2022 SAP SE. All rights reserved.