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

public class ReportDef extends VdmEntity<ReportDef> implements VdmEntitySet
Statutory Reporting Report Definition

Original entity name from the Odata EDM: ReportDef_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setStatryRptDef(@Nullable String statryRptDef)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptDef

      Parameters:
      statryRptDef - Report Definition
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ReportDef 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 _DocumentDef is already loaded, the result will contain the DocumentDef entities. If not, an Option with result state empty is returned.
    • setDocumentDef

      public void setDocumentDef(@Nonnull List<DocumentDef> value)
      Overwrites the list of associated DocumentDef entities for the loaded navigation property _DocumentDef.

      If the navigation property _DocumentDef of a queried ReportDef 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 DocumentDef entities.
    • addDocumentDef

      public void addDocumentDef(DocumentDef... entity)
      Adds elements to the list of associated DocumentDef entities. This corresponds to the OData navigation property _DocumentDef.

      If the navigation property _DocumentDef of a queried ReportDef 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 DocumentDef entities.
    • getReportParameterDefIfPresent

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

      If the navigation property for an entity ReportDef 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 _ReportParameterDef is already loaded, the result will contain the ReportParameterDef entities. If not, an Option with result state empty is returned.
    • setReportParameterDef

      public void setReportParameterDef(@Nonnull List<ReportParameterDef> value)
      Overwrites the list of associated ReportParameterDef entities for the loaded navigation property _ReportParameterDef.

      If the navigation property _ReportParameterDef of a queried ReportDef 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 ReportParameterDef entities.
    • addReportParameterDef

      public void addReportParameterDef(ReportParameterDef... entity)
      Adds elements to the list of associated ReportParameterDef entities. This corresponds to the OData navigation property _ReportParameterDef.

      If the navigation property _ReportParameterDef of a queried ReportDef 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 ReportParameterDef entities.
    • builder

      @Nonnull public static ReportDef.ReportDefBuilder builder()
    • getStatryRptDef

      @Nullable public String getStatryRptDef()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptDef

      Returns:
      Report Definition
    • toString

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

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

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

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

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