java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<MaintOrderObjectListItem>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.maintenanceorder.MaintOrderObjectListItem

public class MaintOrderObjectListItem extends VdmEntity<MaintOrderObjectListItem>
Maintenance Order Object List

Original entity name from the Odata EDM: MaintOrderObjectListItemType

  • Field Details

    • ALL_FIELDS

      public static final MaintOrderObjectListItemSelectable ALL_FIELDS
      Selector for all available fields of MaintOrderObjectListItem.
    • MAINTENANCE_ORDER

      public static final MaintOrderObjectListItemField<String> MAINTENANCE_ORDER
      Use with available fluent helpers to apply the MaintenanceOrder field to query operations.
    • MAINTENANCE_ORDER_OBJECT_LIST

      public static final MaintOrderObjectListItemField<Long> MAINTENANCE_ORDER_OBJECT_LIST
      Use with available fluent helpers to apply the MaintenanceOrderObjectList field to query operations.
    • MAINTENANCE_OBJECT_LIST_ITEM

      public static final MaintOrderObjectListItemField<Integer> MAINTENANCE_OBJECT_LIST_ITEM
      Use with available fluent helpers to apply the MaintenanceObjectListItem field to query operations.
    • EQUIPMENT

      public static final MaintOrderObjectListItemField<String> EQUIPMENT
      Use with available fluent helpers to apply the Equipment field to query operations.
    • MAINTENANCE_NOTIFICATION

      public static final MaintOrderObjectListItemField<String> MAINTENANCE_NOTIFICATION
      Use with available fluent helpers to apply the MaintenanceNotification field to query operations.
    • ASSEMBLY

      public static final MaintOrderObjectListItemField<String> ASSEMBLY
      Use with available fluent helpers to apply the Assembly field to query operations.
    • MATERIAL

      public static final MaintOrderObjectListItemField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • SERIAL_NUMBER

      public static final MaintOrderObjectListItemField<String> SERIAL_NUMBER
      Use with available fluent helpers to apply the SerialNumber field to query operations.
    • UNIQUE_ITEM_IDENTIFIER

      public static final MaintOrderObjectListItemField<String> UNIQUE_ITEM_IDENTIFIER
      Use with available fluent helpers to apply the UniqueItemIdentifier field to query operations.
    • FUNCTIONAL_LOCATION

      public static final MaintOrderObjectListItemField<String> FUNCTIONAL_LOCATION
      Use with available fluent helpers to apply the FunctionalLocation field to query operations.
    • MAINT_OBJECT_LIST_ITEM_SEQUENCE

      public static final MaintOrderObjectListItemField<String> MAINT_OBJECT_LIST_ITEM_SEQUENCE
      Use with available fluent helpers to apply the MaintObjectListItemSequence field to query operations.
    • TO_MAINTENANCE_ORDER

      public static final MaintOrderObjectListItemOneToOneLink<MaintenanceOrder> TO_MAINTENANCE_ORDER
      Use with available fluent helpers to apply the to_MaintenanceOrder navigation property to query operations.
  • Constructor Details

    • MaintOrderObjectListItem

      public MaintOrderObjectListItem()
    • MaintOrderObjectListItem

      public MaintOrderObjectListItem(@Nullable String maintenanceOrder, @Nullable Long maintenanceOrderObjectList, @Nullable Integer maintenanceObjectListItem, @Nullable String equipment, @Nullable String maintenanceNotification, @Nullable String assembly, @Nullable String material, @Nullable String serialNumber, @Nullable String uniqueItemIdentifier, @Nullable String functionalLocation, @Nullable String maintObjectListItemSequence, @Nullable MaintenanceOrder toMaintenanceOrder)
  • Method Details

    • getType

      @Nonnull public Class<MaintOrderObjectListItem> getType()
      Specified by:
      getType in class VdmObject<MaintOrderObjectListItem>
    • setMaintenanceOrder

      public void setMaintenanceOrder(@Nullable String maintenanceOrder)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: MaintenanceOrder

      Parameters:
      maintenanceOrder - Order Number
    • setMaintenanceOrderObjectList

      public void setMaintenanceOrderObjectList(@Nullable Long maintenanceOrderObjectList)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MaintenanceOrderObjectList

      Parameters:
      maintenanceOrderObjectList - Object list number
    • setMaintenanceObjectListItem

      public void setMaintenanceObjectListItem(@Nullable Integer maintenanceObjectListItem)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MaintenanceObjectListItem

      Parameters:
      maintenanceObjectListItem - Object list counters
    • setEquipment

      public void setEquipment(@Nullable String equipment)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Equipment

      Parameters:
      equipment - Equipment Number
    • setMaintenanceNotification

      public void setMaintenanceNotification(@Nullable String maintenanceNotification)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: MaintenanceNotification

      Parameters:
      maintenanceNotification - Notification Number
    • setAssembly

      public void setAssembly(@Nullable String assembly)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Assembly

      Parameters:
      assembly - Assembly
    • setMaterial

      public void setMaterial(@Nullable String material)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setSerialNumber

      public void setSerialNumber(@Nullable String serialNumber)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Parameters:
      serialNumber - Serial Number
    • setUniqueItemIdentifier

      public void setUniqueItemIdentifier(@Nullable String uniqueItemIdentifier)
      Constraints: Not nullable, Maximum length: 72

      Original property name from the Odata EDM: UniqueItemIdentifier

      Parameters:
      uniqueItemIdentifier - Unique Item Identifier
    • setFunctionalLocation

      public void setFunctionalLocation(@Nullable String functionalLocation)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: FunctionalLocation

      Parameters:
      functionalLocation - Functional Location
    • setMaintObjectListItemSequence

      public void setMaintObjectListItemSequence(@Nullable String maintObjectListItemSequence)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MaintObjectListItemSequence

      Parameters:
      maintObjectListItemSequence - Object list sort field
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<MaintOrderObjectListItem>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<MaintOrderObjectListItem>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<MaintOrderObjectListItem>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<MaintOrderObjectListItem>
    • field

      @Nonnull public static <T> MaintOrderObjectListItemField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      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.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> MaintOrderObjectListItemField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<MaintOrderObjectListItem>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<MaintOrderObjectListItem>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<MaintOrderObjectListItem>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<MaintOrderObjectListItem>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<MaintOrderObjectListItem>
    • fetchMaintenanceOrder

      @Nullable public MaintenanceOrder fetchMaintenanceOrder()
      Fetches the MaintenanceOrder entity (one to one) associated with this entity. This corresponds to the OData navigation property to_MaintenanceOrder.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated MaintenanceOrder entity, or null if an entity is not associated.
      Throws:
      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.
    • getMaintenanceOrderOrFetch

      @Nullable public MaintenanceOrder getMaintenanceOrderOrFetch()
      Retrieval of associated MaintenanceOrder entity (one to one). This corresponds to the OData navigation property to_MaintenanceOrder.

      If the navigation property to_MaintenanceOrder of a queried MaintOrderObjectListItem 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.

      Returns:
      List of associated MaintenanceOrder entity.
      Throws:
      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.
    • getMaintenanceOrderIfPresent

      @Nonnull public io.vavr.control.Option<MaintenanceOrder> getMaintenanceOrderIfPresent()
      Retrieval of associated MaintenanceOrder entity (one to one). This corresponds to the OData navigation property to_MaintenanceOrder.

      If the navigation property for an entity MaintOrderObjectListItem has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_MaintenanceOrder is already loaded, the result will contain the MaintenanceOrder entity. If not, an Option with result state empty is returned.
    • setMaintenanceOrder

      public void setMaintenanceOrder(MaintenanceOrder value)
      Overwrites the associated MaintenanceOrder entity for the loaded navigation property to_MaintenanceOrder.
      Parameters:
      value - New MaintenanceOrder entity.
    • builder

    • getMaintenanceOrder

      @Nullable public String getMaintenanceOrder()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: MaintenanceOrder

      Returns:
      Order Number
    • getMaintenanceOrderObjectList

      @Nullable public Long getMaintenanceOrderObjectList()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MaintenanceOrderObjectList

      Returns:
      Object list number
    • getMaintenanceObjectListItem

      @Nullable public Integer getMaintenanceObjectListItem()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MaintenanceObjectListItem

      Returns:
      Object list counters
    • getEquipment

      @Nullable public String getEquipment()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Equipment

      Returns:
      Equipment Number
    • getMaintenanceNotification

      @Nullable public String getMaintenanceNotification()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: MaintenanceNotification

      Returns:
      Notification Number
    • getAssembly

      @Nullable public String getAssembly()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Assembly

      Returns:
      Assembly
    • getMaterial

      @Nullable public String getMaterial()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getSerialNumber

      @Nullable public String getSerialNumber()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Returns:
      Serial Number
    • getUniqueItemIdentifier

      @Nullable public String getUniqueItemIdentifier()
      Constraints: Not nullable, Maximum length: 72

      Original property name from the Odata EDM: UniqueItemIdentifier

      Returns:
      Unique Item Identifier
    • getFunctionalLocation

      @Nullable public String getFunctionalLocation()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: FunctionalLocation

      Returns:
      Functional Location
    • getMaintObjectListItemSequence

      @Nullable public String getMaintObjectListItemSequence()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MaintObjectListItemSequence

      Returns:
      Object list sort field
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<MaintOrderObjectListItem>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<MaintOrderObjectListItem>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<MaintOrderObjectListItem>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<MaintOrderObjectListItem>