|
SAP NetWeaver 2004S SPS 09 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.dictionary.runtime.DdBroker
| Field Summary | |
protected static String |
CURR_PACKAGE
|
protected static String |
CURRENCY
|
protected static String |
CURRENCY_NORMALIZED
|
protected static String |
QUAN_PACKAGE
|
protected static String |
QUANTITY
|
protected static String |
QUANTITY_NORMALIZED
|
| Fields inherited from interface com.sap.dictionary.runtime.DdConstants |
BIGGER_THAN_MIN_EXCL, BIGGER_THAN_MIN_INCL, CLASS_DOES_NOT_IMPLEMENT_INTERFACE, DDIC_NOT_CREATED, DDIC_TYPE_DOES_NOT_EXIST, DECIMAL_VALUE_TO_BIG, EMPTY_STRING_NOT_VALID, ERROR_DURING_PARSE, ERROR_DURING_PARSE_NO_VALID, LOGICAL_DDIC_DOES_NOT_EXIST, NO_DATATYPE_FOR_FIELD, NO_DATATYPE_IN_FIELD, NO_DDIC_NAME, NO_ENUM_MATCHING, NO_ENUM_MATCHING_S, NO_EXTERNAL_REPRESENTATION, NO_NUMERIC_VALUE, NO_PATTERN_MATCHING, NO_PATTERN_MATCHING_S, NO_REFERENCE_FIELD_FOUND, NO_TEXTSERVICE_AVAILABLE, NO_TYPE_IN_XML, NO_VALID_ENTRY, NO_VALUESERVICE_AVAILABLE, NOT_NORMALIZED, NOT_NUMERIC, NOT_VALID, NULL_NOT_VALID, NUMBER_OUT_OF_RANGE, PARSE_ERROR_NO_BIG_INTEGER, PARSE_ERROR_NO_INTEGER, PARSE_ERROR_UNALLOWED_CHARS, PARSE_NOT_POSSIBLE, PRECISION_TO_BIG, PROVIDER_CLASS_NOT_FOUND, PROVIDER_NOT_FOUND, REFERENCE_FIELD_DOES_NOT_EXIST, SIMPLE_TYPE_DOES_NOT_EXIST, SIMPLE_TYPE_NOT_CREATED, SMALLER_THAN_MAX_EXCL, SMALLER_THAN_MAX_INCL, STRUCTURE_TYPE_DOES_NOT_EXIST, TYPE_NOT_FOUND, WRONG_AMOUNT_TYPE, WRONG_BASE_TYPE_FOR_US, WRONG_CLASS, WRONG_CURRENCY_UNIT, 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_MIN_LENGTH_S, WRONG_PRECISION, WRONG_UNIT_KEY_TYPE, WRONG_XML_FILE, YEAR_WITH_WRONG_VALUE |
| Constructor Summary | |
protected |
DdBroker(ClassLoader classLoader,
Locale locale)
|
protected |
DdBroker(ClassLoader classLoader,
Locale locale,
com.sap.dictionary.types.services.IConfig configuration)
|
| Method Summary | |
Iterator |
dictionaryIterator()
Returns an iterator over the dictionaries in squence of insertion |
ClassLoader |
getClassLoader()
Returns the broker's classLoader |
IUnitService |
getCurrencyService(ISimpleType amountType,
boolean normalized,
Locale locale)
|
protected IDataType |
getDataType(IField field)
|
IDataType |
getDataType(String name)
Returns a dataType with the given type name whereas name contains of package and typeName. |
IDataType |
getDataType(String dictionaryName,
String name)
Returns a dataType with the given dictionaryName and type name. |
com.sap.dictionary.runtime.DdDictionary |
getDictionary(String dictionaryName)
Gets a DataDictionary as IDictionary out of the cache |
Locale |
getLocale()
Returns the TypeBroker's locale |
ISimpleType |
getPredefinedSimpleType(BigDecimal value)
|
ISimpleType |
getPredefinedSimpleType(BigInteger value)
|
ISimpleType |
getPredefinedSimpleType(boolean value)
|
ISimpleType |
getPredefinedSimpleType(Boolean value)
|
ISimpleType |
getPredefinedSimpleType(byte value)
|
ISimpleType |
getPredefinedSimpleType(Byte value)
|
ISimpleType |
getPredefinedSimpleType(byte[] value)
|
ISimpleType |
getPredefinedSimpleType(Class attributeClass)
|
ISimpleType |
getPredefinedSimpleType(Date value)
|
ISimpleType |
getPredefinedSimpleType(Date value)
|
ISimpleType |
getPredefinedSimpleType(double value)
|
ISimpleType |
getPredefinedSimpleType(Double value)
|
ISimpleType |
getPredefinedSimpleType(float value)
|
ISimpleType |
getPredefinedSimpleType(Float value)
|
ISimpleType |
getPredefinedSimpleType(int value)
|
ISimpleType |
getPredefinedSimpleType(Integer value)
|
ISimpleType |
getPredefinedSimpleType(long value)
|
ISimpleType |
getPredefinedSimpleType(Long value)
|
ISimpleType |
getPredefinedSimpleType(short value)
|
ISimpleType |
getPredefinedSimpleType(Short value)
|
ISimpleType |
getPredefinedSimpleType(String value)
|
ISimpleType |
getPredefinedSimpleType(Time value)
|
ISimpleType |
getPredefinedSimpleType(Timestamp value)
|
ISimpleType |
getPredefinedSimpleTypeByName(String typeName)
|
IUnitService |
getQuantityService(ISimpleType amountType,
boolean normalized,
Locale locale)
|
ISimpleType |
getSimpleType(String dictionaryName,
String name)
Returns a simpleType with the given given dictionaryName and SimpleType name. |
IStructure |
getStructure(String dictionaryName,
String name)
Returns a structure with the given dictionary name and structure name. |
IUnitService |
getUnitService(IField amountField)
Returns a unit service for the given amount type. |
IUnitService |
getUnitService(IField amountField,
boolean normalizingForced)
Returns a unit service for the given amount field. |
IUnitService |
getUnitService(ISimpleType amountType,
ISimpleType unitKeyType)
|
boolean |
invalidateCache(String dictionaryName)
Invalidates the cache for the dictionary with the given name. |
void |
prepare(String dictionaryName,
String[] names)
|
void |
putDictionary(String dictionaryName,
IDataProvider provider)
Introduce a new-dictionary to this TypeBroker |
protected void |
putDictionary(String dictionaryName,
String logSystemName,
IDataProvider provider)
|
void |
putJavaDictionary(ClassLoader classLoader)
Introduce a java-dictionary to this TypeBroker |
com.sap.dictionary.runtime.DdDictionary |
removeDictionary(String dictionaryName)
Removes a dictionary from the TypeBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final String CURRENCY
protected static final String CURRENCY_NORMALIZED
protected static final String QUANTITY
protected static final String QUANTITY_NORMALIZED
protected static final String CURR_PACKAGE
protected static final String QUAN_PACKAGE
| Constructor Detail |
protected DdBroker(ClassLoader classLoader,
Locale locale)
throws DdException
protected DdBroker(ClassLoader classLoader,
Locale locale,
com.sap.dictionary.types.services.IConfig configuration)
throws DdException
| Method Detail |
protected void putDictionary(String dictionaryName,
String logSystemName,
IDataProvider provider)
public void putDictionary(String dictionaryName,
IDataProvider provider)
IBroker
putDictionary in interface IBrokerdictionaryName - - the name to identify this dictionaryprovider - - the provider-instance for backend-accesspublic void putJavaDictionary(ClassLoader classLoader)
IBroker
putJavaDictionary in interface IBrokerclassLoader - - the class loader to get the java-typespublic com.sap.dictionary.runtime.DdDictionary getDictionary(String dictionaryName)
IBroker
getDictionary in interface IBrokerdictionaryName - - logical Name of this dictionary instance
public ClassLoader getClassLoader()
IBroker
getClassLoader in interface IBrokerpublic com.sap.dictionary.runtime.DdDictionary removeDictionary(String dictionaryName)
IBroker
removeDictionary in interface IBrokerdictionaryName - - a DataDictionary name
public Iterator dictionaryIterator()
IBroker
dictionaryIterator in interface IBrokerpublic boolean invalidateCache(String dictionaryName)
IBroker
invalidateCache in interface IBrokerdictionaryName - - the logical name of the dictionary
public IDataType getDataType(String dictionaryName,
String name)
throws DdException
IBroker
getDataType in interface IBrokerdictionaryName - the name of the locical dictionaryname - - the type's name, includes package if necessary
DdException - - if dataType with given name not found
public ISimpleType getSimpleType(String dictionaryName,
String name)
throws DdException
IBroker
getSimpleType in interface IBrokerdictionaryName - the name of the loccal dictionaryname - - the type's name, includes package if necessary
DdException - - if SimpleType with given name not found
public IStructure getStructure(String dictionaryName,
String name)
throws DdException
IBroker
getStructure in interface IBrokerdictionaryName - the name of the loccal dictionaryname - - the type's name, includes package if necessary
DdException - - if Structure with given name not found
public IDataType getDataType(String name)
throws DdException
IBroker
getDataType in interface IBrokername - - the type's name, includes package
DdException - - if dataType with given name not found
public IUnitService getUnitService(IField amountField)
throws DdException
getUnitService in interface IBrokeramountField - - the reference field
DdException - - if unit Service could not be instantiated
public IUnitService getUnitService(IField amountField,
boolean normalizingForced)
throws DdException
IBroker
getUnitService in interface IBrokeramountField - - the reference fieldnormalizingForced - - true means the currency-values are always normalized
during parse and denormalized during formatting,
false means that the type controls wether normalization is done or not.
Then in case of R/3 backend de/normalization will never be done
DdException - - if unit Service could not be instantiatedpublic Locale getLocale()
IBroker
getLocale in interface IBrokerpublic ISimpleType getPredefinedSimpleType(Class attributeClass)
getPredefinedSimpleType in interface IBrokerpublic ISimpleType getPredefinedSimpleTypeByName(String typeName)
public ISimpleType getPredefinedSimpleType(String value)
public ISimpleType getPredefinedSimpleType(byte[] value)
public ISimpleType getPredefinedSimpleType(Boolean value)
public ISimpleType getPredefinedSimpleType(boolean value)
public ISimpleType getPredefinedSimpleType(BigDecimal value)
public ISimpleType getPredefinedSimpleType(BigInteger value)
public ISimpleType getPredefinedSimpleType(Byte value)
public ISimpleType getPredefinedSimpleType(Double value)
public ISimpleType getPredefinedSimpleType(Float value)
public ISimpleType getPredefinedSimpleType(Integer value)
public ISimpleType getPredefinedSimpleType(Long value)
public ISimpleType getPredefinedSimpleType(Short value)
public ISimpleType getPredefinedSimpleType(byte value)
public ISimpleType getPredefinedSimpleType(double value)
public ISimpleType getPredefinedSimpleType(float value)
public ISimpleType getPredefinedSimpleType(int value)
public ISimpleType getPredefinedSimpleType(long value)
public ISimpleType getPredefinedSimpleType(short value)
public ISimpleType getPredefinedSimpleType(Date value)
public ISimpleType getPredefinedSimpleType(Date value)
public ISimpleType getPredefinedSimpleType(Time value)
public ISimpleType getPredefinedSimpleType(Timestamp value)
public void prepare(String dictionaryName,
String[] names)
throws DdException
DdException
protected IDataType getDataType(IField field)
throws DdException
DdException
public IUnitService getCurrencyService(ISimpleType amountType,
boolean normalized,
Locale locale)
throws DdException
DdException
public IUnitService getQuantityService(ISimpleType amountType,
boolean normalized,
Locale locale)
throws DdException
DdException
public IUnitService getUnitService(ISimpleType amountType,
ISimpleType unitKeyType)
throws DdException
DdException
|
SAP NetWeaver 2004S SPS 09 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||