public class FunctionalArea extends VdmEntity<FunctionalArea>
Modifier and Type | Class and Description |
---|---|
static class |
FunctionalArea.FunctionalAreaBuilder |
Modifier and Type | Field and Description |
---|---|
static FunctionalAreaSelectable |
ALL_FIELDS
Selector for all available fields of FunctionalArea.
|
static FunctionalAreaField<String> |
FUNCTIONAL_AREA
Use with available fluent helpers to apply the FunctionalArea field to query operations.
|
static FunctionalAreaLink<FunctionalAreaText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
Constructor and Description |
---|
FunctionalArea() |
FunctionalArea(String functionalArea,
ErpConfigContext erpConfigContext,
List<FunctionalAreaText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(FunctionalAreaText... entity)
Adds elements to the list of associated FunctionalAreaText entities.
|
static FunctionalArea.FunctionalAreaBuilder |
builder() |
boolean |
equals(Object o) |
List<FunctionalAreaText> |
fetchText()
Fetches the FunctionalAreaText entities (one to many) associated with this entity.
|
static <T> FunctionalAreaField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
String |
getFunctionalArea()
(Key Field) Constraints: Not nullable, Maximum length: 16 Use for Cost-of-Sales Accounting
The functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting.
|
List<FunctionalAreaText> |
getTextOrFetch()
Retrieval of associated FunctionalAreaText entities (one to many).
|
com.google.common.base.Optional<List<FunctionalAreaText>> |
getTextOrNull()
Retrieval of associated FunctionalAreaText entities (one to many).
|
Class<FunctionalArea> |
getType() |
int |
hashCode() |
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setFunctionalArea(String functionalArea)
(Key Field) Constraints: Not nullable, Maximum length: 16 Use for Cost-of-Sales Accounting
The functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting.
|
void |
setText(List<FunctionalAreaText> value)
Overwrites the list of associated FunctionalAreaText entities for the loaded navigation property to_Text.
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final FunctionalAreaSelectable ALL_FIELDS
public static final FunctionalAreaField<String> FUNCTIONAL_AREA
public static final FunctionalAreaLink<FunctionalAreaText> TO_TEXT
public FunctionalArea()
public FunctionalArea(@Nullable String functionalArea, @Nullable ErpConfigContext erpConfigContext, List<FunctionalAreaText> toText)
public Class<FunctionalArea> getType()
getType
in class VdmObject<FunctionalArea>
public static <T> FunctionalAreaField<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<FunctionalAreaText> 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<FunctionalAreaText> getTextOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Text of a queried FunctionalArea 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<FunctionalAreaText>> getTextOrNull()
If the navigation property to_Text for an entity FunctionalArea 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<FunctionalAreaText> value)
If the navigation property to_Text of a queried FunctionalArea 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 FunctionalAreaText entities.public void addText(FunctionalAreaText... entity)
If the navigation property to_Text of a queried FunctionalArea 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 FunctionalAreaText entities.public static FunctionalArea.FunctionalAreaBuilder builder()
@Nullable public String getFunctionalArea()
Use for Cost-of-Sales Accounting The functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting. The following are examples of structure criteria: Manufacturing Administration Sales Research and development Use for Government The functional area is needed for Funds Management to meet legal requirements for reporting with functional aspects. You can use the functional area to represent the global targets and goals (such as public safety or city development), in particular the expenses of your organization. Use in cost-of-sales accounting See the documentation on Filling the Functional Area Field. For comprehensive information on cost-of-sales accounting and on the functional area, see the SAP Library under Accounting -> Financial Accounting -> General Ledger -> Cost-of-Sales Accounting. Use in government For more information on the functional area, see the implementation Guide for Funds Management Government in the section Activate Account Assignment Elements.
@Nullable public ErpConfigContext getErpConfigContext()
public void setFunctionalArea(@Nullable String functionalArea)
Use for Cost-of-Sales Accounting The functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting. The following are examples of structure criteria: Manufacturing Administration Sales Research and development Use for Government The functional area is needed for Funds Management to meet legal requirements for reporting with functional aspects. You can use the functional area to represent the global targets and goals (such as public safety or city development), in particular the expenses of your organization. Use in cost-of-sales accounting See the documentation on Filling the Functional Area Field. For comprehensive information on cost-of-sales accounting and on the functional area, see the SAP Library under Accounting -> Financial Accounting -> General Ledger -> Cost-of-Sales Accounting. Use in government For more information on the functional area, see the implementation Guide for Funds Management Government in the section Activate Account Assignment Elements.
functionalArea
- public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- public String toString()
toString
in class VdmObject<FunctionalArea>
public boolean equals(Object o)
equals
in class VdmObject<FunctionalArea>
public int hashCode()
hashCode
in class VdmObject<FunctionalArea>
Copyright © 2018 SAP SE. All rights reserved.