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

public class WorkItem extends VdmEntity<WorkItem>
Work Items

Original entity name from the Odata EDM: WorkItem

  • Field Details

    • ALL_FIELDS

      public static final WorkItemSelectable ALL_FIELDS
      Selector for all available fields of WorkItem.
    • WORKITEM

      public static final WorkItemField<String> WORKITEM
      Use with available fluent helpers to apply the Workitem field to query operations.
    • WORKPACKAGE_ID

      public static final WorkItemField<String> WORKPACKAGE_ID
      Use with available fluent helpers to apply the WorkpackageID field to query operations.
    • WORKITEMNAME

      public static final WorkItemField<String> WORKITEMNAME
      Use with available fluent helpers to apply the Workitemname field to query operations.
    • WORKITEMISINACTIVE

      public static final WorkItemField<String> WORKITEMISINACTIVE
      Use with available fluent helpers to apply the Workitemisinactive field to query operations.
  • Constructor Details

    • WorkItem

      public WorkItem()
    • WorkItem

      public WorkItem(@Nullable String workitem, @Nullable String workpackageID, @Nullable String workitemname, @Nullable String workitemisinactive)
  • Method Details

    • getType

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

      public void setWorkitem(@Nullable String workitem)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Workitem

      Parameters:
      workitem - Work Item ID
    • setWorkpackageID

      public void setWorkpackageID(@Nullable String workpackageID)
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: WorkpackageID

      Parameters:
      workpackageID - Work Package ID
    • setWorkitemname

      public void setWorkitemname(@Nullable String workitemname)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Workitemname

      Parameters:
      workitemname - Work Item Desc.
    • setWorkitemisinactive

      public void setWorkitemisinactive(@Nullable String workitemisinactive)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: Workitemisinactive

      Parameters:
      workitemisinactive - Work Item is Inactive
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> WorkItemField<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> WorkItemField<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<WorkItem>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<WorkItem>
    • builder

      @Nonnull public static WorkItem.WorkItemBuilder builder()
    • getWorkitem

      @Nullable public String getWorkitem()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Workitem

      Returns:
      Work Item ID
    • getWorkpackageID

      @Nullable public String getWorkpackageID()
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: WorkpackageID

      Returns:
      Work Package ID
    • getWorkitemname

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

      Original property name from the Odata EDM: Workitemname

      Returns:
      Work Item Desc.
    • getWorkitemisinactive

      @Nullable public String getWorkitemisinactive()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: Workitemisinactive

      Returns:
      Work Item is Inactive
    • toString

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

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

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

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