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

public class PhaseDef extends VdmEntity<PhaseDef> implements VdmEntitySet
Statutory Reporting Phase Definition

Original entity name from the Odata EDM: PhaseDef_Type

  • Field Details

  • Constructor Details

    • PhaseDef

      public PhaseDef()
    • PhaseDef

      public PhaseDef(@Nullable String statryRptCategory, @Nullable String statryRptCatPhase, @Nullable LocalDate statryRptCatPhaseValidFromDate, @Nullable String statryRptCatPhaseOccurrence, @Nullable CategoryDef to_CategoryDef)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: StatryRptCategory

      Parameters:
      statryRptCategory - Report Category ID
    • setStatryRptCatPhase

      public void setStatryRptCatPhase(@Nullable String statryRptCatPhase)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptCatPhase

      Parameters:
      statryRptCatPhase - Report Category Phase
    • setStatryRptCatPhaseValidFromDate

      public void setStatryRptCatPhaseValidFromDate(@Nullable LocalDate statryRptCatPhaseValidFromDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptCatPhaseValidFromDate

      Parameters:
      statryRptCatPhaseValidFromDate - Valid From Date
    • setStatryRptCatPhaseOccurrence

      public void setStatryRptCatPhaseOccurrence(@Nullable String statryRptCatPhaseOccurrence)
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: StatryRptCatPhaseOccurrence

      Parameters:
      statryRptCatPhaseOccurrence - Phase Occurrence
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity PhaseDef 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 _CategoryDef is already loaded, the result will contain the CategoryDef entity. If not, an Option with result state empty is returned.
    • setCategoryDef

      public void setCategoryDef(CategoryDef value)
      Overwrites the associated CategoryDef entity for the loaded navigation property _CategoryDef.
      Parameters:
      value - New CategoryDef entity.
    • builder

      @Nonnull public static PhaseDef.PhaseDefBuilder builder()
    • getStatryRptCategory

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

      Original property name from the Odata EDM: StatryRptCategory

      Returns:
      Report Category ID
    • getStatryRptCatPhase

      @Nullable public String getStatryRptCatPhase()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: StatryRptCatPhase

      Returns:
      Report Category Phase
    • getStatryRptCatPhaseValidFromDate

      @Nullable public LocalDate getStatryRptCatPhaseValidFromDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StatryRptCatPhaseValidFromDate

      Returns:
      Valid From Date
    • getStatryRptCatPhaseOccurrence

      @Nullable public String getStatryRptCatPhaseOccurrence()
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: StatryRptCatPhaseOccurrence

      Returns:
      Phase Occurrence
    • toString

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

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

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

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

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