java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<TaskCode>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.taskcode.TaskCode
All Implemented Interfaces:
VdmEntitySet

public class TaskCode extends VdmEntity<TaskCode> implements VdmEntitySet
Task Code

Original entity name from the Odata EDM: TaskCode_Type

  • Field Details

  • Constructor Details

    • TaskCode

      public TaskCode()
    • TaskCode

      public TaskCode(@Nullable String taskCodeGroup, @Nullable String taskCode, @Nullable Boolean codeIsInactive, @Nullable Boolean codeGroupIsUsable, List<TaskCodeText> to_TaskCodeText)
  • Method Details

    • getType

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

      public void setTaskCodeGroup(@Nullable String taskCodeGroup)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: TaskCodeGroup

      Parameters:
      taskCodeGroup - Group of Task Codes
    • setTaskCode

      public void setTaskCode(@Nullable String taskCode)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TaskCode

      Parameters:
      taskCode - Code for Classification of a Task
    • setCodeIsInactive

      public void setCodeIsInactive(@Nullable Boolean codeIsInactive)
      Constraints: Not nullable

      Original property name from the Odata EDM: CodeIsInactive

      Parameters:
      codeIsInactive - Code Is Inactive
    • setCodeGroupIsUsable

      public void setCodeGroupIsUsable(@Nullable Boolean codeGroupIsUsable)
      Constraints: Not nullable

      Original property name from the Odata EDM: CodeGroupIsUsable

      Parameters:
      codeGroupIsUsable - Code Group Is Usable
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<TaskCode>
    • toMapOfFields

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

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

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

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

      @Nonnull public io.vavr.control.Option<List<TaskCodeText>> getTaskCodeTextIfPresent()
      Retrieval of associated TaskCodeText entities (one to many). This corresponds to the OData navigation property _TaskCodeText.

      If the navigation property for an entity TaskCode 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 _TaskCodeText is already loaded, the result will contain the TaskCodeText entities. If not, an Option with result state empty is returned.
    • setTaskCodeText

      public void setTaskCodeText(@Nonnull List<TaskCodeText> value)
      Overwrites the list of associated TaskCodeText entities for the loaded navigation property _TaskCodeText.

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

      Parameters:
      value - List of TaskCodeText entities.
    • addTaskCodeText

      public void addTaskCodeText(TaskCodeText... entity)
      Adds elements to the list of associated TaskCodeText entities. This corresponds to the OData navigation property _TaskCodeText.

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

      Parameters:
      entity - Array of TaskCodeText entities.
    • builder

      @Nonnull public static TaskCode.TaskCodeBuilder builder()
    • getTaskCodeGroup

      @Nullable public String getTaskCodeGroup()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: TaskCodeGroup

      Returns:
      Group of Task Codes
    • getTaskCode

      @Nullable public String getTaskCode()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TaskCode

      Returns:
      Code for Classification of a Task
    • getCodeIsInactive

      @Nullable public Boolean getCodeIsInactive()
      Constraints: Not nullable

      Original property name from the Odata EDM: CodeIsInactive

      Returns:
      Code Is Inactive
    • getCodeGroupIsUsable

      @Nullable public Boolean getCodeGroupIsUsable()
      Constraints: Not nullable

      Original property name from the Odata EDM: CodeGroupIsUsable

      Returns:
      Code Group Is Usable
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<TaskCode>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<TaskCode>