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

public class Task extends VdmEntity<Task> implements VdmEntitySet
Statutory Reporting Task

Original entity name from the Odata EDM: Task_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setStatryRptTaskUUID(@Nullable UUID statryRptTaskUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskUUID

      Parameters:
      statryRptTaskUUID - NodeID
    • setStatryRptgEntity

      public void setStatryRptgEntity(@Nullable String statryRptgEntity)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: StatryRptgEntity

      Parameters:
      statryRptgEntity - Reporting Entity
    • setStatryRptCategory

      public void setStatryRptCategory(@Nullable String statryRptCategory)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptCategory

      Parameters:
      statryRptCategory - Report Category ID
    • setCountry

      public void setCountry(@Nullable String country)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Parameters:
      country - Country/Region Key
    • setStatryRptTaskStatus

      public void setStatryRptTaskStatus(@Nullable String statryRptTaskStatus)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: StatryRptTaskStatus

      Parameters:
      statryRptTaskStatus - Overall Report Status
    • setStatryRptTaskDueDate

      public void setStatryRptTaskDueDate(@Nullable LocalDate statryRptTaskDueDate)
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskDueDate

      Parameters:
      statryRptTaskDueDate - Due Date
    • setStatryRptTaskPeriodStartDate

      public void setStatryRptTaskPeriodStartDate(@Nullable LocalDate statryRptTaskPeriodStartDate)
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskPeriodStartDate

      Parameters:
      statryRptTaskPeriodStartDate - Reporting Period Start Date
    • setStatryRptTaskPeriodEndDate

      public void setStatryRptTaskPeriodEndDate(@Nullable LocalDate statryRptTaskPeriodEndDate)
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskPeriodEndDate

      Parameters:
      statryRptTaskPeriodEndDate - Reporting Period End Date
    • setReportingYear

      public void setReportingYear(@Nullable String reportingYear)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ReportingYear

      Parameters:
      reportingYear - Reporting Year
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity Task 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 _Phase is already loaded, the result will contain the Phase entities. If not, an Option with result state empty is returned.
    • setPhase

      public void setPhase(@Nonnull List<Phase> value)
      Overwrites the list of associated Phase entities for the loaded navigation property _Phase.

      If the navigation property _Phase of a queried Task 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 Phase entities.
    • addPhase

      public void addPhase(Phase... entity)
      Adds elements to the list of associated Phase entities. This corresponds to the OData navigation property _Phase.

      If the navigation property _Phase of a queried Task 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 Phase entities.
    • builder

      @Nonnull public static Task.TaskBuilder builder()
    • getStatryRptTaskUUID

      @Nullable public UUID getStatryRptTaskUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskUUID

      Returns:
      NodeID
    • getStatryRptgEntity

      @Nullable public String getStatryRptgEntity()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: StatryRptgEntity

      Returns:
      Reporting Entity
    • getStatryRptCategory

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

      Original property name from the Odata EDM: StatryRptCategory

      Returns:
      Report Category ID
    • getCountry

      @Nullable public String getCountry()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Returns:
      Country/Region Key
    • getStatryRptTaskStatus

      @Nullable public String getStatryRptTaskStatus()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: StatryRptTaskStatus

      Returns:
      Overall Report Status
    • getStatryRptTaskDueDate

      @Nullable public LocalDate getStatryRptTaskDueDate()
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskDueDate

      Returns:
      Due Date
    • getStatryRptTaskPeriodStartDate

      @Nullable public LocalDate getStatryRptTaskPeriodStartDate()
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskPeriodStartDate

      Returns:
      Reporting Period Start Date
    • getStatryRptTaskPeriodEndDate

      @Nullable public LocalDate getStatryRptTaskPeriodEndDate()
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptTaskPeriodEndDate

      Returns:
      Reporting Period End Date
    • getReportingYear

      @Nullable public String getReportingYear()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ReportingYear

      Returns:
      Reporting Year
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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