Modifier and Type | Class and Description |
---|---|
static class |
Country.CountryBuilder |
Modifier and Type | Field and Description |
---|---|
static CountrySelectable |
ALL_FIELDS
Selector for all available fields of Country.
|
static CountryField<String> |
COUNTRY
Use with available fluent helpers to apply the Country field to query operations.
|
static CountryField<String> |
COUNTRY_CURRENCY
Use with available fluent helpers to apply the CountryCurrency field to query operations.
|
static CountryField<String> |
COUNTRY_THREE_DIGIT_ISO_CODE
Use with available fluent helpers to apply the CountryThreeDigitISOCode field to query operations.
|
static CountryField<String> |
COUNTRY_THREE_LETTER_ISO_CODE
Use with available fluent helpers to apply the CountryThreeLetterISOCode field to query operations.
|
static CountryField<String> |
HARD_CURRENCY
Use with available fluent helpers to apply the HardCurrency field to query operations.
|
static CountryField<String> |
INDEX_BASED_CURRENCY
Use with available fluent helpers to apply the IndexBasedCurrency field to query operations.
|
static CountryField<String> |
TAX_CALCULATION_PROCEDURE
Use with available fluent helpers to apply the TaxCalculationProcedure field to query operations.
|
static CountryLink<CountryText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
Constructor and Description |
---|
Country() |
Country(String country,
String countryCurrency,
String indexBasedCurrency,
String hardCurrency,
String taxCalculationProcedure,
String countryThreeLetterISOCode,
String countryThreeDigitISOCode,
ErpConfigContext erpConfigContext,
List<CountryText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(CountryText... entity)
Adds elements to the list of associated CountryText entities.
|
static Country.CountryBuilder |
builder() |
boolean |
equals(Object o) |
List<CountryText> |
fetchText()
Fetches the CountryText entities (one to many) associated with this entity.
|
static <T> CountryField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
String |
getCountry()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
String |
getCountryCurrency()
Constraints: Not nullable, Maximum length: 5 If the tax amounts for particular codes are reported in a country other than the company code country, then it is necessary to translate them into the corresponding country currency.
|
String |
getCountryThreeDigitISOCode()
Constraints: Not nullable, Maximum length: 3 This 3-character numeric ISO country code is listed for all countries, for example, in the Internet under the address http://www.un.org/Depts/unsd/methods/m49alpha.htm.
|
String |
getCountryThreeLetterISOCode()
Constraints: Not nullable, Maximum length: 3 The key is used, e.g. for data exchange with banks via OFX (Open Financial Exchange).
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
String |
getHardCurrency()
Constraints: Not nullable, Maximum length: 5 A hard currency is used in countries with high inflation.
|
String |
getIndexBasedCurrency()
Constraints: Not nullable, Maximum length: 5 An index-based currency is stipulated for external reporting (for example, tax returns), in some countries with high inflation.
|
String |
getTaxCalculationProcedure()
Constraints: Not nullable, Maximum length: 6 Procedures are used, for example, in the following applications:
Pricing in Sales and Distribution
Account determination
Calculating taxes on sales/purchases
|
List<CountryText> |
getTextOrFetch()
Retrieval of associated CountryText entities (one to many).
|
com.google.common.base.Optional<List<CountryText>> |
getTextOrNull()
Retrieval of associated CountryText entities (one to many).
|
Class<Country> |
getType() |
int |
hashCode() |
void |
setCountry(String country)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setCountryCurrency(String countryCurrency)
Constraints: Not nullable, Maximum length: 5 If the tax amounts for particular codes are reported in a country other than the company code country, then it is necessary to translate them into the corresponding country currency.
|
void |
setCountryThreeDigitISOCode(String countryThreeDigitISOCode)
Constraints: Not nullable, Maximum length: 3 This 3-character numeric ISO country code is listed for all countries, for example, in the Internet under the address http://www.un.org/Depts/unsd/methods/m49alpha.htm.
|
void |
setCountryThreeLetterISOCode(String countryThreeLetterISOCode)
Constraints: Not nullable, Maximum length: 3 The key is used, e.g. for data exchange with banks via OFX (Open Financial Exchange).
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setHardCurrency(String hardCurrency)
Constraints: Not nullable, Maximum length: 5 A hard currency is used in countries with high inflation.
|
void |
setIndexBasedCurrency(String indexBasedCurrency)
Constraints: Not nullable, Maximum length: 5 An index-based currency is stipulated for external reporting (for example, tax returns), in some countries with high inflation.
|
void |
setTaxCalculationProcedure(String taxCalculationProcedure)
Constraints: Not nullable, Maximum length: 6 Procedures are used, for example, in the following applications:
Pricing in Sales and Distribution
Account determination
Calculating taxes on sales/purchases
|
void |
setText(List<CountryText> value)
Overwrites the list of associated CountryText entities for the loaded navigation property to_Text.
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final CountrySelectable ALL_FIELDS
public static final CountryField<String> COUNTRY
public static final CountryField<String> COUNTRY_CURRENCY
public static final CountryField<String> INDEX_BASED_CURRENCY
public static final CountryField<String> HARD_CURRENCY
public static final CountryField<String> TAX_CALCULATION_PROCEDURE
public static final CountryField<String> COUNTRY_THREE_LETTER_ISO_CODE
public static final CountryField<String> COUNTRY_THREE_DIGIT_ISO_CODE
public static final CountryLink<CountryText> TO_TEXT
public Country()
public Country(@Nullable String country, @Nullable String countryCurrency, @Nullable String indexBasedCurrency, @Nullable String hardCurrency, @Nullable String taxCalculationProcedure, @Nullable String countryThreeLetterISOCode, @Nullable String countryThreeDigitISOCode, @Nullable ErpConfigContext erpConfigContext, List<CountryText> toText)
public static <T> CountryField<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<CountryText> 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<CountryText> getTextOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Text of a queried Country 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<CountryText>> getTextOrNull()
If the navigation property to_Text for an entity Country 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<CountryText> value)
If the navigation property to_Text of a queried Country 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 CountryText entities.public void addText(CountryText... entity)
If the navigation property to_Text of a queried Country 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 CountryText entities.public static Country.CountryBuilder builder()
@Nullable public String getCountry()
@Nullable public String getCountryCurrency()
If the tax amounts for particular codes are reported in a country other than the company code country, then it is necessary to translate them into the corresponding country currency. The currency key specified here is used for this translation. The "Plants abroad" parameter must be active in order to use this field.
@Nullable public String getIndexBasedCurrency()
An index-based currency is stipulated for external reporting (for example, tax returns), in some countries with high inflation.
@Nullable public String getHardCurrency()
A hard currency is used in countries with high inflation.
@Nullable public String getTaxCalculationProcedure()
Procedures are used, for example, in the following applications: Pricing in Sales and Distribution Account determination Calculating taxes on sales/purchases
@Nullable public String getCountryThreeLetterISOCode()
The key is used, e.g. for data exchange with banks via OFX (Open Financial Exchange). It is not the same as the more commonly used 2-character ISO country code or the 3-character numeric INTRASTAT country code. Enter the 3-character ISO country code for all countries if you want to exchange data with banks via OFX.
@Nullable public String getCountryThreeDigitISOCode()
This 3-character numeric ISO country code is listed for all countries, for example, in the Internet under the address http://www.un.org/Depts/unsd/methods/m49alpha.htm. The code is not to be confused with the 2-character ISO country code, which is more frequently used, the 3-character numeric INTRASTAT country code, or the 3-character non-numeric ISO country code. The use of this 3-character numeric ISO code is required by law in countries such as Romania and Croatia.
@Nullable public ErpConfigContext getErpConfigContext()
public void setCountry(@Nullable String country)
country
- public void setCountryCurrency(@Nullable String countryCurrency)
If the tax amounts for particular codes are reported in a country other than the company code country, then it is necessary to translate them into the corresponding country currency. The currency key specified here is used for this translation. The "Plants abroad" parameter must be active in order to use this field.
countryCurrency
- public void setIndexBasedCurrency(@Nullable String indexBasedCurrency)
An index-based currency is stipulated for external reporting (for example, tax returns), in some countries with high inflation.
indexBasedCurrency
- public void setHardCurrency(@Nullable String hardCurrency)
A hard currency is used in countries with high inflation.
hardCurrency
- public void setTaxCalculationProcedure(@Nullable String taxCalculationProcedure)
Procedures are used, for example, in the following applications: Pricing in Sales and Distribution Account determination Calculating taxes on sales/purchases
taxCalculationProcedure
- public void setCountryThreeLetterISOCode(@Nullable String countryThreeLetterISOCode)
The key is used, e.g. for data exchange with banks via OFX (Open Financial Exchange). It is not the same as the more commonly used 2-character ISO country code or the 3-character numeric INTRASTAT country code. Enter the 3-character ISO country code for all countries if you want to exchange data with banks via OFX.
countryThreeLetterISOCode
- public void setCountryThreeDigitISOCode(@Nullable String countryThreeDigitISOCode)
This 3-character numeric ISO country code is listed for all countries, for example, in the Internet under the address http://www.un.org/Depts/unsd/methods/m49alpha.htm. The code is not to be confused with the 2-character ISO country code, which is more frequently used, the 3-character numeric INTRASTAT country code, or the 3-character non-numeric ISO country code. The use of this 3-character numeric ISO code is required by law in countries such as Romania and Croatia.
countryThreeDigitISOCode
- public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- Copyright © 2018 SAP SE. All rights reserved.