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

public class CostCenter extends VdmEntity<CostCenter>
Cost Center (Master Data)

Original entity name from the Odata EDM: CostCenter

  • Field Details

    • ALL_FIELDS

      public static final CostCenterSelectable ALL_FIELDS
      Selector for all available fields of CostCenter.
    • COST_CENTER_ID

      public static final CostCenterField<String> COST_CENTER_ID
      Use with available fluent helpers to apply the CostCenter_ID field to query operations.
    • COST_CENTER_TEXT

      public static final CostCenterField<String> COST_CENTER_TEXT
      Use with available fluent helpers to apply the CostCenterText field to query operations.
    • CONTROLLING_AREA

      public static final CostCenterField<String> CONTROLLING_AREA
      Use with available fluent helpers to apply the ControllingArea field to query operations.
    • CONTROLLING_AREA_NAME

      public static final CostCenterField<String> CONTROLLING_AREA_NAME
      Use with available fluent helpers to apply the ControllingAreaName field to query operations.
  • Constructor Details

    • CostCenter

      public CostCenter()
    • CostCenter

      public CostCenter(@Nullable String costCenter_ID, @Nullable String costCenterText, @Nullable String controllingArea, @Nullable String controllingAreaName)
  • Method Details

    • getType

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

      public void setCostCenter_ID(@Nullable String costCenter_ID)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CostCenter_ID

      Parameters:
      costCenter_ID - Cost Center
    • setCostCenterText

      public void setCostCenterText(@Nullable String costCenterText)
      Constraints: none

      Original property name from the Odata EDM: CostCenterText

      Parameters:
      costCenterText - Cost Center (Description)
    • setControllingArea

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

      Original property name from the Odata EDM: ControllingArea

      Parameters:
      controllingArea - Cost Center (Controlling Area)
    • setControllingAreaName

      public void setControllingAreaName(@Nullable String controllingAreaName)
      Constraints: none

      Original property name from the Odata EDM: ControllingAreaName

      Parameters:
      controllingAreaName - Controlling Area (Description) (Parent Description)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CostCenterField<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> CostCenterField<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<CostCenter>
    • setServicePathForFetch

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

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

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

      @Nonnull public static CostCenter.CostCenterBuilder builder()
    • getCostCenter_ID

      @Nullable public String getCostCenter_ID()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CostCenter_ID

      Returns:
      Cost Center
    • getCostCenterText

      @Nullable public String getCostCenterText()
      Constraints: none

      Original property name from the Odata EDM: CostCenterText

      Returns:
      Cost Center (Description)
    • getControllingArea

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

      Original property name from the Odata EDM: ControllingArea

      Returns:
      Cost Center (Controlling Area)
    • getControllingAreaName

      @Nullable public String getControllingAreaName()
      Constraints: none

      Original property name from the Odata EDM: ControllingAreaName

      Returns:
      Controlling Area (Description) (Parent Description)
    • toString

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

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

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

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