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

public class DebitCreditCode extends VdmEntity<DebitCreditCode>
Debit/Credit Code (Master Data)

Original entity name from the Odata EDM: DebitCreditCode

  • Field Details

    • ALL_FIELDS

      public static final DebitCreditCodeSelectable ALL_FIELDS
      Selector for all available fields of DebitCreditCode.
    • DEBIT_CREDIT_CODE_ID

      public static final DebitCreditCodeField<String> DEBIT_CREDIT_CODE_ID
      Use with available fluent helpers to apply the DebitCreditCode_ID field to query operations.
    • DEBIT_CREDIT_CODE_TEXT

      public static final DebitCreditCodeField<String> DEBIT_CREDIT_CODE_TEXT
      Use with available fluent helpers to apply the DebitCreditCodeText field to query operations.
  • Constructor Details

    • DebitCreditCode

      public DebitCreditCode()
    • DebitCreditCode

      public DebitCreditCode(@Nullable String debitCreditCode_ID, @Nullable String debitCreditCodeText)
  • Method Details

    • getType

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

      public void setDebitCreditCode_ID(@Nullable String debitCreditCode_ID)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: DebitCreditCode_ID

      Parameters:
      debitCreditCode_ID - Debit/Credit Code
    • setDebitCreditCodeText

      public void setDebitCreditCodeText(@Nullable String debitCreditCodeText)
      Constraints: none

      Original property name from the Odata EDM: DebitCreditCodeText

      Parameters:
      debitCreditCodeText - Debit/Credit Code (Description)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> DebitCreditCodeField<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> DebitCreditCodeField<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<DebitCreditCode>
    • setServicePathForFetch

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

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

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

      @Nonnull public static DebitCreditCode.DebitCreditCodeBuilder builder()
    • getDebitCreditCode_ID

      @Nullable public String getDebitCreditCode_ID()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: DebitCreditCode_ID

      Returns:
      Debit/Credit Code
    • getDebitCreditCodeText

      @Nullable public String getDebitCreditCodeText()
      Constraints: none

      Original property name from the Odata EDM: DebitCreditCodeText

      Returns:
      Debit/Credit Code (Description)
    • toString

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

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

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

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