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

public class MaintItemObjectListItem extends VdmEntity<MaintItemObjectListItem>
Maintenance Item Object List Item

Original entity name from the Odata EDM: MaintItemObjectListItemType

  • Field Details

    • ALL_FIELDS

      public static final MaintItemObjectListItemSelectable ALL_FIELDS
      Selector for all available fields of MaintItemObjectListItem.
    • MAINTENANCE_ITEM

      public static final MaintItemObjectListItemField<String> MAINTENANCE_ITEM
      Use with available fluent helpers to apply the MaintenanceItem field to query operations.
    • MAINTENANCE_ITEM_OBJECT_LIST

      public static final MaintItemObjectListItemField<Long> MAINTENANCE_ITEM_OBJECT_LIST
      Use with available fluent helpers to apply the MaintenanceItemObjectList field to query operations.
    • MAINTENANCE_OBJECT_LIST_ITEM

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

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

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

      public static final MaintItemObjectListItemField<String> FUNCTIONAL_LOCATION_LABEL_NAME
      Use with available fluent helpers to apply the FunctionalLocationLabelName field to query operations.
    • ASSEMBLY

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

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

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

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

      public static final MaintItemObjectListItemField<String> SERVICE_REFERENCE_PRODUCT
      Use with available fluent helpers to apply the ServiceReferenceProduct field to query operations.
    • MAINT_OBJ_LIST_ENTRY_IS_PROCESSED

      public static final MaintItemObjectListItemField<Boolean> MAINT_OBJ_LIST_ENTRY_IS_PROCESSED
      Use with available fluent helpers to apply the MaintObjListEntryIsProcessed field to query operations.
    • CREATION_DATE

      public static final MaintItemObjectListItemField<LocalDateTime> CREATION_DATE
      Use with available fluent helpers to apply the CreationDate field to query operations.
    • TO_MAINTENANCE_ITEM_TP

      public static final MaintItemObjectListItemOneToOneLink<MaintenanceItem> TO_MAINTENANCE_ITEM_TP
      Use with available fluent helpers to apply the to_MaintenanceItemTP navigation property to query operations.
  • Constructor Details

    • MaintItemObjectListItem

      public MaintItemObjectListItem()
    • MaintItemObjectListItem

      public MaintItemObjectListItem(@Nullable String maintenanceItem, @Nullable Long maintenanceItemObjectList, @Nullable Integer maintenanceObjectListItem, @Nullable String maintObjectListItemSequence, @Nullable String equipment, @Nullable String functionalLocationLabelName, @Nullable String assembly, @Nullable String material, @Nullable String serialNumber, @Nullable String uniqueItemIdentifier, @Nullable String serviceReferenceProduct, @Nullable Boolean maintObjListEntryIsProcessed, @Nullable LocalDateTime creationDate, @Nullable MaintenanceItem toMaintenanceItemTP)
  • Method Details

    • getType

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

      public void setMaintenanceItem(@Nullable String maintenanceItem)
      (Key Field) Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: MaintenanceItem

      Parameters:
      maintenanceItem - Maintenance Item
    • setMaintenanceItemObjectList

      public void setMaintenanceItemObjectList(@Nullable Long maintenanceItemObjectList)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: MaintenanceItemObjectList

      Parameters:
      maintenanceItemObjectList - 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
    • 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
    • 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
    • setFunctionalLocationLabelName

      public void setFunctionalLocationLabelName(@Nullable String functionalLocationLabelName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: FunctionalLocationLabelName

      Parameters:
      functionalLocationLabelName - Functional Location Label
    • 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
    • setServiceReferenceProduct

      public void setServiceReferenceProduct(@Nullable String serviceReferenceProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ServiceReferenceProduct

      Parameters:
      serviceReferenceProduct - Product Number
    • setMaintObjListEntryIsProcessed

      public void setMaintObjListEntryIsProcessed(@Nullable Boolean maintObjListEntryIsProcessed)
      Constraints: none

      Original property name from the Odata EDM: MaintObjListEntryIsProcessed

      Parameters:
      maintObjListEntryIsProcessed - Checkbox
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Date
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> MaintItemObjectListItemField<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> MaintItemObjectListItemField<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<MaintItemObjectListItem>
    • setServicePathForFetch

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

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

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

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

      @Nullable public MaintenanceItem fetchMaintenanceItemTP()
      Fetches the MaintenanceItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_MaintenanceItemTP.

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

      Returns:
      The single associated MaintenanceItem 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.
    • getMaintenanceItemTPOrFetch

      @Nullable public MaintenanceItem getMaintenanceItemTPOrFetch()
      Retrieval of associated MaintenanceItem entity (one to one). This corresponds to the OData navigation property to_MaintenanceItemTP.

      If the navigation property to_MaintenanceItemTP of a queried MaintItemObjectListItem 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 MaintenanceItem 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.
    • getMaintenanceItemTPIfPresent

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

      If the navigation property for an entity MaintItemObjectListItem 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_MaintenanceItemTP is already loaded, the result will contain the MaintenanceItem entity. If not, an Option with result state empty is returned.
    • setMaintenanceItemTP

      public void setMaintenanceItemTP(MaintenanceItem value)
      Overwrites the associated MaintenanceItem entity for the loaded navigation property to_MaintenanceItemTP.
      Parameters:
      value - New MaintenanceItem entity.
    • builder

    • getMaintenanceItem

      @Nullable public String getMaintenanceItem()
      (Key Field) Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: MaintenanceItem

      Returns:
      Maintenance Item
    • getMaintenanceItemObjectList

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

      Original property name from the Odata EDM: MaintenanceItemObjectList

      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
    • getMaintObjectListItemSequence

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

      Original property name from the Odata EDM: MaintObjectListItemSequence

      Returns:
      Object list sort field
    • getEquipment

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

      Original property name from the Odata EDM: Equipment

      Returns:
      Equipment Number
    • getFunctionalLocationLabelName

      @Nullable public String getFunctionalLocationLabelName()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: FunctionalLocationLabelName

      Returns:
      Functional Location Label
    • 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
    • getServiceReferenceProduct

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

      Original property name from the Odata EDM: ServiceReferenceProduct

      Returns:
      Product Number
    • getMaintObjListEntryIsProcessed

      @Nullable public Boolean getMaintObjListEntryIsProcessed()
      Constraints: none

      Original property name from the Odata EDM: MaintObjListEntryIsProcessed

      Returns:
      Checkbox
    • getCreationDate

      @Nullable public LocalDateTime getCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Returns:
      Date
    • toString

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

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

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

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