public interface IDataProvider
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns the provider's class loader
|
ISimpleType |
getCurrencyUnitType(String unitKey,
Locale locale)
Delivers the currency key decimal information
The names are chosen according to the following definition
Type Type Name Example Content
amountType amount A decimal type 123,45
unitKeyType unitKey CURR_PACKAGE.currency EUR
unitType unit CURR_PACKAGE.EUR SimpleType info for EUR
|
IDataType |
getDataType(String name,
Locale locale)
Returns a dataType
|
IDataType |
getDataType(String name,
Locale locale,
Object providerInfo)
Returns a dataType
|
IDataType |
getDataTypeFromCache(String name,
Locale locale)
Returns a dataType if it is in provider cache
|
com.sap.typeservices.ITextServices |
getTextService(ISimpleType simpleType)
Returns a TextService
|
ISimpleType |
getUnitOfMeasureType(String unitKey,
Locale locale)
Delivers the unit of measure key decimal information
Type Type Name Example Content
amountType amount A decimal type 123
unitKeyType unitKey CURR_PACKAGE.quantity PR (pair)
unitType unit CURR_PACKAGE.EUR SimpleType info for PR
|
ISimpleType |
getUnitOfQuantityType(String unitKey,
Locale locale)
Delivers the unit of measure key decimal information
Type Type Name Example Content
amountType amount A decimal type 123,45
unitKeyType unitKey CURR_PACKAGE.quantity KGM (kilogram)
unitType unit CURR_PACKAGE.EUR SimpleType info for KGM
|
com.sap.typeservices.ISimpleValueServices |
getValueService(ISimpleType simpleType)
Returns a ValueService
|
void |
invalidateCache(String name)
Invalidates the cache according to a datatypes name
|
boolean |
needsTranslator()
Informs if the current translator needs a NameTranslator which
changes the names of found objects from internal names of the
backendsystem to frontend names
|
IDataType getDataType(String name, Locale locale) throws DdException
name - - contains type-package and type-namelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundIDataType getDataType(String name, Locale locale, Object providerInfo) throws DdException
name - - contains type-package and type-namelocale - - the locale for text-information in dataTypeproviderInfo - - information for all non-java providers
to convert backend namesDdException - if dataType could not be foundIDataType getDataTypeFromCache(String name, Locale locale)
name - - contains type-package and type-namelocale - - the locale for text-information in dataTypecom.sap.typeservices.ISimpleValueServices getValueService(ISimpleType simpleType) throws DdException
simpleType - - the simple Type to take the text information fromDdException - if dataType could not be foundcom.sap.typeservices.ITextServices getTextService(ISimpleType simpleType) throws DdException
simpleType - - the simple Type to take the text information fromDdException - if dataType could not be foundISimpleType getCurrencyUnitType(String unitKey, Locale locale) throws DdException
unitKey - - the name of the unitKeyTypelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundISimpleType getUnitOfQuantityType(String unitKey, Locale locale) throws DdException
unitKey - - the name of the unitOfMeasureTypelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundISimpleType getUnitOfMeasureType(String unitKey, Locale locale) throws DdException
unitKey - - the name of the unitOfMeasureTypelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundClassLoader getClassLoader()
boolean needsTranslator()
void invalidateCache(String name)
name - - the type's name to invalidate| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/ddic/ddicruntime
|
default
|
BC-DWB-JDD
|
[sap.com] FRAMEWORK
|
[sap.com] tc/ddic/runtime/facade
|
runtime
|
BC-DWB-JDD
|
Copyright 2016 SAP AG Complete Copyright Notice