Class CostCenter
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
Cost Center (Master Data)
Original entity name from the Odata EDM: CostCenter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CostCenterSelectableSelector for all available fields of CostCenter.static final CostCenterField<String>Use with available fluent helpers to apply the ControllingArea field to query operations.static final CostCenterField<String>Use with available fluent helpers to apply the ControllingAreaName field to query operations.static final CostCenterField<String>Use with available fluent helpers to apply the CostCenter_ID field to query operations.static final CostCenterField<String>Use with available fluent helpers to apply the CostCenterText field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionCostCenter(String costCenter_ID, String costCenterText, String controllingArea, String controllingAreaName) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) static CostCenter.CostCenterBuilderbuilder()protected booleanbooleanstatic <T,DomainT>
CostCenterField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> CostCenterField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: none(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: noneprotected Stringprotected StringgetKey()getType()inthashCode()voidsetControllingArea(String controllingArea) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetControllingAreaName(String controllingAreaName) Constraints: nonevoidsetCostCenter_ID(String costCenter_ID) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetCostCenterText(String costCenterText) Constraints: noneprotected voidsetServicePathForFetch(String servicePathForFetch) toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
-
Field Details
-
ALL_FIELDS
Selector for all available fields of CostCenter. -
COST_CENTER_ID
Use with available fluent helpers to apply the CostCenter_ID field to query operations. -
COST_CENTER_TEXT
Use with available fluent helpers to apply the CostCenterText field to query operations. -
CONTROLLING_AREA
Use with available fluent helpers to apply the ControllingArea field to query operations. -
CONTROLLING_AREA_NAME
Use with available fluent helpers to apply the ControllingAreaName field to query operations.
-
-
Constructor Details
-
CostCenter
public CostCenter() -
CostCenter
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<CostCenter>
-
setCostCenter_ID
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter_ID
- Parameters:
costCenter_ID- Cost Center
-
setCostCenterText
Constraints: noneOriginal property name from the Odata EDM: CostCenterText
- Parameters:
costCenterText- Cost Center (Description)
-
setControllingArea
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ControllingArea
- Parameters:
controllingArea- Cost Center (Controlling Area)
-
setControllingAreaName
Constraints: noneOriginal property name from the Odata EDM: ControllingAreaName
- Parameters:
controllingAreaName- Controlling Area (Description) (Parent Description)
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<CostCenter>
-
getKey
- Overrides:
getKeyin classVdmObject<CostCenter>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<CostCenter>
-
fromMap
- Overrides:
fromMapin classVdmObject<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 fieldfieldName- 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
- Overrides:
getDestinationForFetchin classVdmEntity<CostCenter>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<CostCenter>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<CostCenter>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<CostCenter>
-
builder
-
getCostCenter_ID
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter_ID
- Returns:
- Cost Center
-
getCostCenterText
Constraints: noneOriginal property name from the Odata EDM: CostCenterText
- Returns:
- Cost Center (Description)
-
getControllingArea
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ControllingArea
- Returns:
- Cost Center (Controlling Area)
-
getControllingAreaName
Constraints: noneOriginal property name from the Odata EDM: ControllingAreaName
- Returns:
- Controlling Area (Description) (Parent Description)
-
toString
- Overrides:
toStringin classVdmObject<CostCenter>
-
equals
- Overrides:
equalsin classVdmEntity<CostCenter>
-
canEqual
- Overrides:
canEqualin classVdmEntity<CostCenter>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<CostCenter>
-