Modifier and Type | Class and Description |
---|---|
static class |
Country.CountryBuilder
Helper class to allow for fluent creation of Country instances.
|
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.
|
changedOriginalFields
Constructor and Description |
---|
Country() |
Country(String country,
String countryCurrency,
String indexBasedCurrency,
String hardCurrency,
String taxCalculationProcedure,
String countryThreeLetterISOCode,
String countryThreeDigitISOCode,
List<CountryText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(CountryText... entity)
Adds elements to the list of associated CountryText entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination) |
static Country.CountryBuilder |
builder() |
protected boolean |
canEqual(Object other) |
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.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getCountry()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
String |
getCountryCurrency()
Constraints: Not nullable, Maximum length: 5
|
String |
getCountryThreeDigitISOCode()
Constraints: Not nullable, Maximum length: 3
|
String |
getCountryThreeLetterISOCode()
Constraints: Not nullable, Maximum length: 3
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection() |
String |
getHardCurrency()
Constraints: Not nullable, Maximum length: 5
|
String |
getIndexBasedCurrency()
Constraints: Not nullable, Maximum length: 5
|
protected Map<String,Object> |
getKey() |
String |
getTaxCalculationProcedure()
Constraints: Not nullable, Maximum length: 6
|
io.vavr.control.Option<List<CountryText>> |
getTextIfPresent()
Retrieval of associated CountryText entities (one to many).
|
List<CountryText> |
getTextOrFetch()
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
|
void |
setCountryThreeDigitISOCode(String countryThreeDigitISOCode)
Constraints: Not nullable, Maximum length: 3
|
void |
setCountryThreeLetterISOCode(String countryThreeLetterISOCode)
Constraints: Not nullable, Maximum length: 3
|
void |
setHardCurrency(String hardCurrency)
Constraints: Not nullable, Maximum length: 5
|
void |
setIndexBasedCurrency(String indexBasedCurrency)
Constraints: Not nullable, Maximum length: 5
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setTaxCalculationProcedure(String taxCalculationProcedure)
Constraints: Not nullable, Maximum length: 6
|
void |
setText(List<CountryText> value)
Overwrites the list of associated CountryText entities for the loaded navigation property to_Text.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
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, List<CountryText> toText)
public void setCountry(@Nullable String country)
Original property name from the Odata EDM: Country
country
- Here you specify the country key for the customer or vendor.public void setCountryCurrency(@Nullable String countryCurrency)
Original property name from the Odata EDM: 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
- Key for the country currency.public void setIndexBasedCurrency(@Nullable String indexBasedCurrency)
Original property name from the Odata EDM: IndexBasedCurrency
An index-based currency is stipulated for external reporting (for example, tax returns), in some countries with high inflation.
indexBasedCurrency
- Specifies the country-specific, fictitious currency.public void setHardCurrency(@Nullable String hardCurrency)
Original property name from the Odata EDM: HardCurrency
A hard currency is used in countries with high inflation.
hardCurrency
- Specifies the country-specific second currency.public void setTaxCalculationProcedure(@Nullable String taxCalculationProcedure)
Original property name from the Odata EDM: TaxCalculationProcedure
Procedures are used, for example, in the following applications:Pricing in Sales and DistributionAccount determinationCalculating taxes on sales/purchases
taxCalculationProcedure
- Specifies the conditions that are allowed for a document and defines the sequence in which they are
used.public void setCountryThreeLetterISOCode(@Nullable String countryThreeLetterISOCode)
Original property name from the Odata EDM: 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
- International standardized 3-character country keypublic void setCountryThreeDigitISOCode(@Nullable String countryThreeDigitISOCode)
Original property name from the Odata EDM: 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
- 3-character numeric ISO country codeprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<Country>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<Country>
@Nonnull public static <T> CountryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> CountryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<Country>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<Country>
public void attachToService(@Nullable String servicePath, @Nullable HttpDestinationProperties destination)
attachToService
in class VdmEntity<Country>
protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<Country>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<Country>
@Nonnull 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.@Nonnull 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.@Nonnull public io.vavr.control.Option<List<CountryText>> getTextIfPresent()
If the navigation property for an entity Country has not been resolved yet, this method will not
query further information. Instead its Option
result state will be empty
.
Option
with result state empty
is
returned.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()
Original property name from the Odata EDM: Country
@Nullable public String getCountryCurrency()
Original property name from the Odata EDM: 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.
@Nullable public String getIndexBasedCurrency()
Original property name from the Odata EDM: IndexBasedCurrency
An index-based currency is stipulated for external reporting (for example, tax returns), in some countries with high inflation.
@Nullable public String getHardCurrency()
Original property name from the Odata EDM: HardCurrency
A hard currency is used in countries with high inflation.
@Nullable public String getTaxCalculationProcedure()
Original property name from the Odata EDM: TaxCalculationProcedure
Procedures are used, for example, in the following applications:Pricing in Sales and DistributionAccount determinationCalculating taxes on sales/purchases
@Nullable public String getCountryThreeLetterISOCode()
Original property name from the Odata EDM: 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.
@Nullable public String getCountryThreeDigitISOCode()
Original property name from the Odata EDM: 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.
Copyright © 2019 SAP SE. All rights reserved.