java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<FiscalYear>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.trialbalance.FiscalYear

public class FiscalYear extends VdmEntity<FiscalYear>
Fiscal Year (Master Data)

Original entity name from the Odata EDM: FiscalYear

  • Field Details

    • ALL_FIELDS

      public static final FiscalYearSelectable ALL_FIELDS
      Selector for all available fields of FiscalYear.
    • FISCAL_YEAR_ID

      public static final FiscalYearField<String> FISCAL_YEAR_ID
      Use with available fluent helpers to apply the FiscalYear_ID field to query operations.
    • COMPANY_CODE

      public static final FiscalYearField<String> COMPANY_CODE
      Use with available fluent helpers to apply the CompanyCode field to query operations.
    • COMPANY_CODE_NAME

      public static final FiscalYearField<String> COMPANY_CODE_NAME
      Use with available fluent helpers to apply the CompanyCodeName field to query operations.
  • Constructor Details

    • FiscalYear

      public FiscalYear()
    • FiscalYear

      public FiscalYear(@Nullable String fiscalYear_ID, @Nullable String companyCode, @Nullable String companyCodeName)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: FiscalYear_ID

      Parameters:
      fiscalYear_ID - Fiscal Year
    • setCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Fiscal Year (Company Code)
    • setCompanyCodeName

      public void setCompanyCodeName(@Nullable String companyCodeName)
      Constraints: none

      Original property name from the Odata EDM: CompanyCodeName

      Parameters:
      companyCodeName - Company Code (Description) (Parent Description)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> FiscalYearField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> FiscalYearField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<FiscalYear>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<FiscalYear>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<FiscalYear>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<FiscalYear>
    • builder

      @Nonnull public static FiscalYear.FiscalYearBuilder builder()
    • getFiscalYear_ID

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

      Original property name from the Odata EDM: FiscalYear_ID

      Returns:
      Fiscal Year
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Fiscal Year (Company Code)
    • getCompanyCodeName

      @Nullable public String getCompanyCodeName()
      Constraints: none

      Original property name from the Odata EDM: CompanyCodeName

      Returns:
      Company Code (Description) (Parent Description)
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<FiscalYear>