public class DdJavaProvider extends Object implements IDataProvider, DdConstants
| Modifier and Type | Field and Description |
|---|---|
static String |
SIMPLEXT |
static String |
STRUCEXT |
static ClassLoader |
THIS_PROJECT_CLOADER |
static String |
XML |
ALLOWED_PRECISION_IS_HURT, AMBIGUOUS_DESCRIPTION, BIGGER_THAN_MIN_EXCL, BIGGER_THAN_MIN_INCL, CCTS_FORMAT_MESSAGE1, CCTS_FORMAT_MESSAGE2, CCTS_PARSE_MESSAGE1, CCTS_PARSE_MESSAGE2, CCTS_TYPE_EXPECTED_WITH_SUPPL_TYPE, CCTS_TYPE_EXPECTED_WITH_SUPPL_TYPE_SET_NAME, CLASS_DOES_NOT_IMPLEMENT_INTERFACE, COMPONENT_DOES_NOT_EXIST, COMPONENT_VALUE_CAN_NOT_BE_EXTRACTED, CONTAINER_COULD_NOT_BE_CREATED, CONVERSION_EXIT_DOES_NOT_EXIST, CONVERSION_EXIT_NOT_SET, DDIC_NOT_CREATED, DDIC_TYPE_DOES_NOT_EXIST, DECIMAL_VALUE_TO_BIG, DECIMALS_NOT_ALLOWED, DURATION_TEMPLATE_VIOLATION, DURATION_TEMPLATE_VIOLATION2, EMPTY_STRING_NOT_VALID, ENTRY_NOT_VALID, ERROR_DURING_PARSE, ERROR_DURING_PARSE_DATE, ERROR_DURING_PARSE_NO_VALID, ERROR_DURING_PARSE_TIME, ERROR_DURING_PARSE_TIMESTAMP, ERROR_DURING_PARSE2, ERROR_DURING_UNIT_TYPE_CREATION, FORMATTING_OPTION_NOT_SUPPORTED, LOCALE_CHANGE_NOT_POSSIBLE, LOGICAL_DDIC_DOES_NOT_EXIST, NO_AVAILABLE_LOCALE, NO_DATATYPE_FOR_FIELD, NO_DATATYPE_IN_FIELD, NO_DATETIME_SUBTYPE_FOR_THIS_PATTERN, NO_DDIC_NAME, NO_ENUM_MATCHING, NO_ENUM_MATCHING_S, NO_EXTERNAL_REPRESENTATION, NO_KEY_FOR_THIS_DESCRIPTION, NO_NUMBER, NO_NUMERIC_VALUE, NO_PATTERN_MATCHING, NO_PATTERN_MATCHING_S, NO_REFERENCE_FIELD_FOUND, NO_TEXTSERVICE_AVAILABLE, NO_TYPE_IN_XML, NO_UNIT_DESCRIPTION, NO_VALID_DEFAULT_OPTION_VALUE, NO_VALID_ENTRY, NO_VALUESERVICE_AVAILABLE, NON_NUMERIC_CHARS, NOT_NORMALIZED, NOT_NUMERIC, NOT_SUPPORTED_IN_AP6_5, NOT_VALID, NULL_NOT_VALID, NUMBER_OUT_OF_RANGE, PARSE_ERROR_CLEARED_FIELD, PARSE_ERROR_NO_BIG_INTEGER, PARSE_ERROR_NO_INTEGER, PARSE_ERROR_UNALLOWED_CHARS, PARSE_NOT_POSSIBLE, PATTERN_NOT_VALID_FOR_KEYS, PERCENT_DEFINITION_AREA_HURT, PRECISION_TOO_BIG, PREVIOUS_VALUE_CAN_NOT_BE_FORMATTED, PROVIDER_CLASS_NOT_FOUND, PROVIDER_NOT_FOUND, REFERENCE_FIELD_DOES_NOT_EXIST, SIMPLE_FORMAT_MESSAGE, SIMPLE_PARSE_MESSAGE, SIMPLE_TYPE_DOES_NOT_EXIST, SIMPLE_TYPE_EXPECTED, SIMPLE_TYPE_EXPECTED_WITH_CONTENT_TYPE, SIMPLE_TYPE_EXPECTED_WITH_SUPPL_TYPE, SIMPLE_TYPE_NOT_CREATED, SMALLER_THAN_MAX_EXCL, SMALLER_THAN_MAX_INCL, STRUCTURE_TYPE_DOES_NOT_EXIST, TIME_DOES_NOT_EXIST, TOO_MUCH_SIGNIFICANT_POSITIONS, TRANSFER_TO_XML_NOT_POSSIBLE, TRANSFER_TO_XML_NOT_POSSIBLE_WRONG_PATTERN, TYPE_INFO_MESSAGE, TYPE_NOT_FOUND, UNKNOWN_TIMEZONE, VALUE_CAN_NOT_BE_PARSED, WRONG_AMOUNT_TYPE, WRONG_BASE_TYPE_FOR_US, WRONG_CLASS, WRONG_CONTAINER_CLASS, WRONG_CONTAINER_INSTANCE, WRONG_CURRENCY_CODE, WRONG_CURRENCY_UNIT, WRONG_DATA_FOR_CHECK, WRONG_DATA_FOR_FORMAT, WRONG_DURATION_TEMPLATE, WRONG_FIXED_LENGTH_S, WRONG_KEY_TYPE, WRONG_KEY_TYPE_FOR_FORMAT, WRONG_KEY_TYPE_FOR_US, WRONG_MAX_EXT_LENGTH, WRONG_MAX_EXT_LENGTH_S, WRONG_MAX_LENGTH_S, WRONG_MEASURE_CODE, WRONG_MIN_LENGTH_S, WRONG_OR_NO_COMPONENT_PATH, WRONG_POSITION_OF_PERCENT_SIGN, WRONG_PRECISION, WRONG_QUANTITY_CODE, WRONG_UNIT_KEY, WRONG_UNIT_KEY_TYPE, WRONG_UNIT_TYPE_PROPERTIES, WRONG_XML_FILE, XML_PARSE_ERROR, YEAR_WITH_WRONG_VALUE| Constructor and Description |
|---|
DdJavaProvider(ClassLoader cLoader) |
DdJavaProvider(com.sap.typeservices.IClassLoaderHandle cLoaderHandle) |
| Modifier and Type | Method and Description |
|---|---|
static String |
cachesToString() |
static void |
clearCache(String dcName) |
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
|
void |
prepare(HashMap searchNames,
Locale locale) |
public static final String XML
public static final String SIMPLEXT
public static final String STRUCEXT
public static final ClassLoader THIS_PROJECT_CLOADER
public DdJavaProvider(ClassLoader cLoader)
public DdJavaProvider(com.sap.typeservices.IClassLoaderHandle cLoaderHandle)
public IDataType getDataType(String name, Locale locale, Object providerInfo) throws DdException
IDataProvidergetDataType in interface IDataProvidername - - 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 foundpublic IDataType getDataType(String name, Locale locale) throws DdException
IDataProvidergetDataType in interface IDataProvidername - - contains type-package and type-namelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundpublic void prepare(HashMap searchNames, Locale locale) throws DdException
DdExceptionpublic com.sap.typeservices.ISimpleValueServices getValueService(ISimpleType simpleType) throws DdException
IDataProvidergetValueService in interface IDataProvidersimpleType - - the simple Type to take the text information fromDdException - if dataType could not be foundpublic com.sap.typeservices.ITextServices getTextService(ISimpleType simpleType) throws DdException
IDataProvidergetTextService in interface IDataProvidersimpleType - - the simple Type to take the text information fromDdException - if dataType could not be foundpublic ISimpleType getCurrencyUnitType(String unitKey, Locale locale) throws DdException
IDataProvidergetCurrencyUnitType in interface IDataProviderunitKey - - the name of the unitKeyTypelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundpublic ISimpleType getUnitOfMeasureType(String unitKey, Locale locale) throws DdException
IDataProvidergetUnitOfMeasureType in interface IDataProviderunitKey - - the name of the unitOfMeasureTypelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundpublic ISimpleType getUnitOfQuantityType(String unitKey, Locale locale) throws DdException
IDataProvidergetUnitOfQuantityType in interface IDataProviderunitKey - - the name of the unitOfMeasureTypelocale - - the locale for text-information in dataTypeDdException - if dataType could not be foundpublic ClassLoader getClassLoader()
IDataProvidergetClassLoader in interface IDataProviderpublic IDataType getDataTypeFromCache(String name, Locale locale)
IDataProvidergetDataTypeFromCache in interface IDataProvidername - - contains type-package and type-namelocale - - the locale for text-information in dataTypepublic boolean needsTranslator()
IDataProviderneedsTranslator in interface IDataProviderpublic void invalidateCache(String name)
IDataProviderinvalidateCache in interface IDataProvidername - - the type's name to invalidatepublic static String cachesToString()
public static void clearCache(String dcName)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/ddic/ddicruntime
|
default
|
BC-DWB-JDD
|
Copyright 2016 SAP AG Complete Copyright Notice