public class StatisticalKeyFigure extends VdmEntity<StatisticalKeyFigure>
Modifier and Type | Class and Description |
---|---|
static class |
StatisticalKeyFigure.StatisticalKeyFigureBuilder |
Modifier and Type | Field and Description |
---|---|
static StatisticalKeyFigureSelectable |
ALL_FIELDS
Selector for all available fields of StatisticalKeyFigure.
|
static StatisticalKeyFigureField<String> |
CONTROLLING_AREA
Use with available fluent helpers to apply the ControllingArea field to query operations.
|
static StatisticalKeyFigureField<String> |
STATISTICAL_KEY_FIGURE
Use with available fluent helpers to apply the StatisticalKeyFigure field to query operations.
|
static StatisticalKeyFigureField<String> |
STSTC_KEY_FIG_CATEGORY
Use with available fluent helpers to apply the StstcKeyFigCategory field to query operations.
|
static StatisticalKeyFigureField<String> |
STSTC_KEY_FIG_QUANTITY_UNIT
Use with available fluent helpers to apply the StstcKeyFigQuantityUnit field to query operations.
|
static StatisticalKeyFigureLink<StatisticalKeyFigureText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
Constructor and Description |
---|
StatisticalKeyFigure() |
StatisticalKeyFigure(String statisticalKeyFigure,
String controllingArea,
String ststcKeyFigQuantityUnit,
String ststcKeyFigCategory,
ErpConfigContext erpConfigContext,
List<StatisticalKeyFigureText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(StatisticalKeyFigureText... entity)
Adds elements to the list of associated StatisticalKeyFigureText entities.
|
static StatisticalKeyFigure.StatisticalKeyFigureBuilder |
builder() |
boolean |
equals(Object o) |
List<StatisticalKeyFigureText> |
fetchText()
Fetches the StatisticalKeyFigureText entities (one to many) associated with this entity.
|
static <T> StatisticalKeyFigureField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
String |
getControllingArea()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
String |
getStatisticalKeyFigure()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
String |
getStstcKeyFigCategory()
Constraints: Not nullable, Maximum length: 1 From the initial month for all subsequent months of the current fiscal year (Type 1 = fixed value)For the respective month and not carried forward to the subsequent months (Type 2 = totals value)The number of employees is entered as type 1 (fixed value) and the number of long-distance calls is entered as type 2 (totals value).To correct quantities after entering them as statistical key figures, cancel type 2 values by entering the value with a reversed +/- sign.
|
String |
getStstcKeyFigQuantityUnit()
Constraints: Not nullable, Maximum length: 3 The unit with which the statistical key figure is recorded in the database is defined in the master data and cannot be changed.
|
List<StatisticalKeyFigureText> |
getTextOrFetch()
Retrieval of associated StatisticalKeyFigureText entities (one to many).
|
com.google.common.base.Optional<List<StatisticalKeyFigureText>> |
getTextOrNull()
Retrieval of associated StatisticalKeyFigureText entities (one to many).
|
Class<StatisticalKeyFigure> |
getType() |
int |
hashCode() |
void |
setControllingArea(String controllingArea)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setStatisticalKeyFigure(String statisticalKeyFigure)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
void |
setStstcKeyFigCategory(String ststcKeyFigCategory)
Constraints: Not nullable, Maximum length: 1 From the initial month for all subsequent months of the current fiscal year (Type 1 = fixed value)For the respective month and not carried forward to the subsequent months (Type 2 = totals value)The number of employees is entered as type 1 (fixed value) and the number of long-distance calls is entered as type 2 (totals value).To correct quantities after entering them as statistical key figures, cancel type 2 values by entering the value with a reversed +/- sign.
|
void |
setStstcKeyFigQuantityUnit(String ststcKeyFigQuantityUnit)
Constraints: Not nullable, Maximum length: 3 The unit with which the statistical key figure is recorded in the database is defined in the master data and cannot be changed.
|
void |
setText(List<StatisticalKeyFigureText> value)
Overwrites the list of associated StatisticalKeyFigureText entities for the loaded navigation property to_Text.
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final StatisticalKeyFigureSelectable ALL_FIELDS
public static final StatisticalKeyFigureField<String> STATISTICAL_KEY_FIGURE
public static final StatisticalKeyFigureField<String> CONTROLLING_AREA
public static final StatisticalKeyFigureField<String> STSTC_KEY_FIG_QUANTITY_UNIT
public static final StatisticalKeyFigureField<String> STSTC_KEY_FIG_CATEGORY
public static final StatisticalKeyFigureLink<StatisticalKeyFigureText> TO_TEXT
public Class<StatisticalKeyFigure> getType()
getType
in class VdmObject<StatisticalKeyFigure>
public static <T> StatisticalKeyFigureField<T> field(String fieldName, Class<T> fieldType)
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.public List<StatisticalKeyFigureText> fetchText() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.public List<StatisticalKeyFigureText> getTextOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Text of a queried StatisticalKeyFigure is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.public com.google.common.base.Optional<List<StatisticalKeyFigureText>> getTextOrNull()
If the navigation property to_Text for an entity StatisticalKeyFigure has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setText(@NonNull List<StatisticalKeyFigureText> value)
If the navigation property to_Text of a queried StatisticalKeyFigure is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
value
- List of StatisticalKeyFigureText entities.public void addText(StatisticalKeyFigureText... entity)
If the navigation property to_Text of a queried StatisticalKeyFigure is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
entity
- Array of StatisticalKeyFigureText entities.public static StatisticalKeyFigure.StatisticalKeyFigureBuilder builder()
@Nullable public String getStatisticalKeyFigure()
@Nullable public String getControllingArea()
@Nullable public String getStstcKeyFigQuantityUnit()
The unit with which the statistical key figure is recorded in the database is defined in the master data and cannot be changed.
@Nullable public String getStstcKeyFigCategory()
From the initial month for all subsequent months of the current fiscal year (Type 1 = fixed value)For the respective month and not carried forward to the subsequent months (Type 2 = totals value)The number of employees is entered as type 1 (fixed value) and the number of long-distance calls is entered as type 2 (totals value).To correct quantities after entering them as statistical key figures, cancel type 2 values by entering the value with a reversed +/- sign. Then enter the correct value.To change key figures of type 1, enter a new fixed value. This value will then be valid for all subsequent periods until you enter new value.
@Nullable public ErpConfigContext getErpConfigContext()
public void setStatisticalKeyFigure(@Nullable String statisticalKeyFigure)
statisticalKeyFigure
- public void setControllingArea(@Nullable String controllingArea)
controllingArea
- public void setStstcKeyFigQuantityUnit(@Nullable String ststcKeyFigQuantityUnit)
The unit with which the statistical key figure is recorded in the database is defined in the master data and cannot be changed.
ststcKeyFigQuantityUnit
- public void setStstcKeyFigCategory(@Nullable String ststcKeyFigCategory)
From the initial month for all subsequent months of the current fiscal year (Type 1 = fixed value)For the respective month and not carried forward to the subsequent months (Type 2 = totals value)The number of employees is entered as type 1 (fixed value) and the number of long-distance calls is entered as type 2 (totals value).To correct quantities after entering them as statistical key figures, cancel type 2 values by entering the value with a reversed +/- sign. Then enter the correct value.To change key figures of type 1, enter a new fixed value. This value will then be valid for all subsequent periods until you enter new value.
ststcKeyFigCategory
- public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- public String toString()
toString
in class VdmObject<StatisticalKeyFigure>
public boolean equals(Object o)
equals
in class VdmObject<StatisticalKeyFigure>
public int hashCode()
hashCode
in class VdmObject<StatisticalKeyFigure>
Copyright © 2018 SAP SE. All rights reserved.