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

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

Original entity name from the Odata EDM: Activity_Type

  • Field Details

  • Constructor Details

    • Activity

      public Activity()
    • Activity

      public Activity(@Nullable UUID statryRptActivityUUID, @Nullable UUID statryRptPhaseUUID, @Nullable UUID statryRptTaskUUID, @Nullable String statryRptgEntity, @Nullable String statryRptCategory, @Nullable String statryRptActivityId, @Nullable String statryRptActivityType, @Nullable String statryRptActivityPhase, @Nullable String statryRptActivityStatus, @Nullable LocalDate statryRptTaskDueDate, @Nullable Collection<SAP__Message> _Messages, @Nullable Phase to_Phase, List<Run> to_Run, @Nullable Task to_Task)
  • Method Details

    • getType

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

      public void setStatryRptActivityUUID(@Nullable UUID statryRptActivityUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptActivityUUID

      Parameters:
      statryRptActivityUUID - NodeID
    • setStatryRptPhaseUUID

      public void setStatryRptPhaseUUID(@Nullable UUID statryRptPhaseUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptPhaseUUID

      Parameters:
      statryRptPhaseUUID - NodeID
    • setStatryRptTaskUUID

      public void setStatryRptTaskUUID(@Nullable UUID statryRptTaskUUID)
      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
    • setStatryRptActivityId

      public void setStatryRptActivityId(@Nullable String statryRptActivityId)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptActivityId

      Parameters:
      statryRptActivityId - Activity ID
    • setStatryRptActivityType

      public void setStatryRptActivityType(@Nullable String statryRptActivityType)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptActivityType

      Parameters:
      statryRptActivityType - Activity Type
    • setStatryRptActivityPhase

      public void setStatryRptActivityPhase(@Nullable String statryRptActivityPhase)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptActivityPhase

      Parameters:
      statryRptActivityPhase - Report Category Phase
    • setStatryRptActivityStatus

      public void setStatryRptActivityStatus(@Nullable String statryRptActivityStatus)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptActivityStatus

      Parameters:
      statryRptActivityStatus - Activity Status
    • setStatryRptTaskDueDate

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

      Original property name from the Odata EDM: StatryRptTaskDueDate

      Parameters:
      statryRptTaskDueDate - Due Date
    • 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<Activity>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity Activity 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 entity. If not, an Option with result state empty is returned.
    • setPhase

      public void setPhase(Phase value)
      Overwrites the associated Phase entity for the loaded navigation property _Phase.
      Parameters:
      value - New Phase entity.
    • getRunIfPresent

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

      If the navigation property for an entity Activity 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 _Run is already loaded, the result will contain the Run entities. If not, an Option with result state empty is returned.
    • setRun

      public void setRun(@Nonnull List<Run> value)
      Overwrites the list of associated Run entities for the loaded navigation property _Run.

      If the navigation property _Run of a queried Activity 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 Run entities.
    • addRun

      public void addRun(Run... entity)
      Adds elements to the list of associated Run entities. This corresponds to the OData navigation property _Run.

      If the navigation property _Run of a queried Activity 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 Run entities.
    • getTaskIfPresent

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

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

      public void setTask(Task value)
      Overwrites the associated Task entity for the loaded navigation property _Task.
      Parameters:
      value - New Task entity.
    • skipStatryRptActivity

      @Nonnull public static BoundAction.SingleToSingle<Activity,Activity> skipStatryRptActivity()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static Activity.ActivityBuilder builder()
    • getStatryRptActivityUUID

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

      Original property name from the Odata EDM: StatryRptActivityUUID

      Returns:
      NodeID
    • getStatryRptPhaseUUID

      @Nullable public UUID getStatryRptPhaseUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptPhaseUUID

      Returns:
      NodeID
    • getStatryRptTaskUUID

      @Nullable public UUID getStatryRptTaskUUID()
      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
    • getStatryRptActivityId

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

      Original property name from the Odata EDM: StatryRptActivityId

      Returns:
      Activity ID
    • getStatryRptActivityType

      @Nullable public String getStatryRptActivityType()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptActivityType

      Returns:
      Activity Type
    • getStatryRptActivityPhase

      @Nullable public String getStatryRptActivityPhase()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptActivityPhase

      Returns:
      Report Category Phase
    • getStatryRptActivityStatus

      @Nullable public String getStatryRptActivityStatus()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptActivityStatus

      Returns:
      Activity Status
    • getStatryRptTaskDueDate

      @Nullable public LocalDate getStatryRptTaskDueDate()
      Constraints: Nullable

      Original property name from the Odata EDM: StatryRptTaskDueDate

      Returns:
      Due Date
    • 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<Activity>
    • equals

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

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

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

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