public class MaintenanceItemReasonText extends VdmEntity<MaintenanceItemReasonText>
Original entity name from the Odata EDM: MaintenanceItemReasonTextType
Modifier and Type | Class and Description |
---|---|
static class |
MaintenanceItemReasonText.MaintenanceItemReasonTextBuilder
Helper class to allow for fluent creation of MaintenanceItemReasonText instances.
|
Modifier and Type | Field and Description |
---|---|
static MaintenanceItemReasonTextSelectable |
ALL_FIELDS
Selector for all available fields of MaintenanceItemReasonText.
|
static MaintenanceItemReasonTextField<String> |
LANGUAGE
Use with available fluent helpers to apply the Language field to query operations.
|
static MaintenanceItemReasonTextField<String> |
MAINTENANCE_ITEM
Use with available fluent helpers to apply the MaintenanceItem field to query operations.
|
static MaintenanceItemReasonTextField<String> |
NMBR_OF_MAINT_COMPLIANCE_ITEMS
Use with available fluent helpers to apply the NmbrOfMaintComplianceItems field to query operations.
|
static MaintenanceItemReasonTextField<String> |
PLAIN_LONG_TEXT
Use with available fluent helpers to apply the PlainLongText field to query operations.
|
static MaintenanceItemReasonTextOneToOneLink<MaintenanceItem> |
TO_MAINTENANCE_ITEM
Use with available fluent helpers to apply the to_MaintenanceItem navigation property to query operations.
|
static MaintenanceItemReasonTextOneToOneLink<MaintenanceItemReason> |
TO_MAINTENANCE_ITEM_REASON
Use with available fluent helpers to apply the to_MaintenanceItemReason navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
MaintenanceItemReasonText() |
MaintenanceItemReasonText(String maintenanceItem,
String nmbrOfMaintComplianceItems,
String language,
String plainLongText,
MaintenanceItemReason toMaintenanceItemReason,
MaintenanceItem toMaintenanceItem) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination) |
static MaintenanceItemReasonText.MaintenanceItemReasonTextBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
MaintenanceItem |
fetchMaintenanceItem()
Fetches the MaintenanceItem entity (one to one) associated with this entity.
|
MaintenanceItemReason |
fetchMaintenanceItemReason()
Fetches the MaintenanceItemReason entity (one to one) associated with this entity.
|
static <T> MaintenanceItemReasonTextField<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) |
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch() |
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
String |
getLanguage()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
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<MaintenanceItemReason> |
getMaintenanceItemReasonIfPresent()
Retrieval of associated MaintenanceItemReason entity (one to one).
|
MaintenanceItemReason |
getMaintenanceItemReasonOrFetch()
Retrieval of associated MaintenanceItemReason entity (one to one).
|
String |
getNmbrOfMaintComplianceItems()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getPlainLongText()
Constraints: none
|
Class<MaintenanceItemReasonText> |
getType() |
int |
hashCode() |
void |
setLanguage(String language)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
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 |
setMaintenanceItemReason(MaintenanceItemReason value)
Overwrites the associated MaintenanceItemReason entity for the loaded navigation property
to_MaintenanceItemReason.
|
void |
setNmbrOfMaintComplianceItems(String nmbrOfMaintComplianceItems)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPlainLongText(String plainLongText)
Constraints: none
|
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 MaintenanceItemReasonTextSelectable ALL_FIELDS
public static final MaintenanceItemReasonTextField<String> MAINTENANCE_ITEM
public static final MaintenanceItemReasonTextField<String> NMBR_OF_MAINT_COMPLIANCE_ITEMS
public static final MaintenanceItemReasonTextField<String> LANGUAGE
public static final MaintenanceItemReasonTextField<String> PLAIN_LONG_TEXT
public static final MaintenanceItemReasonTextOneToOneLink<MaintenanceItemReason> TO_MAINTENANCE_ITEM_REASON
public static final MaintenanceItemReasonTextOneToOneLink<MaintenanceItem> TO_MAINTENANCE_ITEM
@Nonnull public Class<MaintenanceItemReasonText> getType()
getType
in class VdmObject<MaintenanceItemReasonText>
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 setLanguage(@Nullable String language)
Original property name from the Odata EDM: Language
language
- Language Keypublic void setPlainLongText(@Nullable String plainLongText)
Original property name from the Odata EDM: PlainLongText
plainLongText
- Long Textprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<MaintenanceItemReasonText>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<MaintenanceItemReasonText>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<MaintenanceItemReasonText>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<MaintenanceItemReasonText>
@Nonnull public static <T> MaintenanceItemReasonTextField<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> MaintenanceItemReasonTextField<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<MaintenanceItemReasonText>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
setServicePathForFetch
in class VdmEntity<MaintenanceItemReasonText>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
attachToService
in class VdmEntity<MaintenanceItemReasonText>
protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<MaintenanceItemReasonText>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<MaintenanceItemReasonText>
@Nullable public MaintenanceItemReason fetchMaintenanceItemReason()
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 MaintenanceItemReason getMaintenanceItemReasonOrFetch()
If the navigation property to_MaintenanceItemReason of a queried MaintenanceItemReasonText 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<MaintenanceItemReason> getMaintenanceItemReasonIfPresent()
If the navigation property for an entity MaintenanceItemReasonText 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 setMaintenanceItemReason(MaintenanceItemReason value)
value
- New MaintenanceItemReason entity.@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 MaintenanceItemReasonText 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 MaintenanceItemReasonText 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 static MaintenanceItemReasonText.MaintenanceItemReasonTextBuilder 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 getLanguage()
Original property name from the Odata EDM: Language
@Nullable public String getPlainLongText()
Original property name from the Odata EDM: PlainLongText
@Nonnull public String toString()
toString
in class VdmObject<MaintenanceItemReasonText>
public boolean equals(@Nullable Object o)
equals
in class VdmEntity<MaintenanceItemReasonText>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmEntity<MaintenanceItemReasonText>
public int hashCode()
hashCode
in class VdmEntity<MaintenanceItemReasonText>
Copyright © 2022 SAP SE. All rights reserved.