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

public class Ledger extends VdmEntity<Ledger>
Ledger

Original entity name from the Odata EDM: Ledger

  • Field Details

    • ALL_FIELDS

      public static final LedgerSelectable ALL_FIELDS
      Selector for all available fields of Ledger.
    • LEDGER

      public static final LedgerField<String> LEDGER
      Use with available fluent helpers to apply the Ledger field to query operations.
    • LEDGER_TEXT

      public static final LedgerField<String> LEDGER_TEXT
      Use with available fluent helpers to apply the LedgerText field to query operations.
  • Constructor Details

    • Ledger

      public Ledger()
    • Ledger

      public Ledger(@Nullable String ledger, @Nullable String ledgerText)
  • Method Details

    • getType

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

      public void setLedger(@Nullable String ledger)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: Ledger

      Parameters:
      ledger - Ledger
    • setLedgerText

      public void setLedgerText(@Nullable String ledgerText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: LedgerText

      Parameters:
      ledgerText - Ledger (Description)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> LedgerField<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> LedgerField<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<Ledger>
    • setServicePathForFetch

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

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

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

      @Nonnull public static Ledger.LedgerBuilder builder()
    • getLedger

      @Nullable public String getLedger()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: Ledger

      Returns:
      Ledger
    • getLedgerText

      @Nullable public String getLedgerText()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: LedgerText

      Returns:
      Ledger (Description)
    • toString

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

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

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

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