public interface IBroker
| Modifier and Type | Method and Description |
|---|---|
Iterator |
dictionaryIterator()
Returns an iterator over the dictionaries in sequence of insertion
|
ClassLoader |
getClassLoader()
Returns the broker's classLoader
|
IConversionExit |
getConversionExit(String dictionaryName,
String name)
Gets the conversion exit with key name for the given dictionary.
|
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.
|
DdDictionary |
getDictionary(String dictionaryName)
Gets a DataDictionary as IDictionary out of the cache
|
Locale |
getLocale()
Returns the TypeBroker's locale
|
ISimpleType |
getPredefinedSimpleType(Class attributeClass) |
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 field.
|
IUnitService |
getUnitService(IField amountField,
boolean normalizingForced)
Returns a unit service for the given amount field.
|
boolean |
invalidateCache(String dictionaryName)
Invalidates the cache for the dictionary with the given name.
|
void |
putDictionary(String dictionaryName,
IDataProvider provider)
Introduce a new-dictionary to this TypeBroker
|
void |
putJavaDictionary(ClassLoader classLoader)
Introduce a java-dictionary to this TypeBroker
|
DdDictionary |
removeDictionary(String dictionaryName)
Removes a dictionary from the TypeBroker
|
void |
setConversionExit(String dictionaryName,
String name,
IConversionExit cnvExit)
Sets a conversion exit with key name for the given dictionary.
|
void putJavaDictionary(ClassLoader classLoader)
classLoader - - the class loader to get the java-typesvoid putDictionary(String dictionaryName, IDataProvider provider)
dictionaryName - - the name to identify this dictionaryprovider - - the provider-instance for backend-accessDdDictionary getDictionary(String dictionaryName)
dictionaryName - - logical Name of this dictionary instanceClassLoader getClassLoader()
DdDictionary removeDictionary(String dictionaryName)
dictionaryName - - a DataDictionary nameIterator dictionaryIterator()
boolean invalidateCache(String dictionaryName)
dictionaryName - - the logical name of the dictionaryIDataType getDataType(String dictionaryName, String name) throws DdException
dictionaryName - the name of the logical dictionaryname - - the type's name, includes package if necessaryDdException - - if data type could not be instantiatedIDataType getDataType(String name) throws DdException
name - - the type's name, includes packageDdException - - if data type could not be instantiatedISimpleType getSimpleType(String dictionaryName, String name) throws DdException
dictionaryName - the name of the logical dictionaryname - - the type's name, includes package if necessaryDdException - - if simple type could not be instantiatedIStructure getStructure(String dictionaryName, String name) throws DdException
dictionaryName - the name of the logical dictionaryname - - the type's name, includes package if necessaryDdException - - if structure could not be instantiatedIUnitService getUnitService(IField amountField) throws DdException
amountField - - the reference fieldDdException - - if unit Service could not be instantiatedIUnitService getUnitService(IField amountField, boolean normalizingForced) throws DdException
amountField - - the reference fieldnormalizingForced - - true means the currency-values are normalized
during parse and denormalized during formatting,
false means that the type controls whether normalization is done or not.
Then in case of R/3 backend de/normalization will never be doneDdException - - if unit Service could not be instantiatedLocale getLocale()
ISimpleType getPredefinedSimpleType(Class attributeClass)
void setConversionExit(String dictionaryName, String name, IConversionExit cnvExit) throws DdException
dictionaryName - - Name of dictionaryname - - name of conversion exit keycnvExit - - conversion exit object implementing IConversionExit holding the format and parse implementationDdException - - thrown if no dictionary of given name can be retrievedIConversionExit getConversionExit(String dictionaryName, String name) throws DdException
dictionaryName - - Name of dictionaryname - - - name of conversion exit keyDdException - - thrown if no dictionary of given name can be retrieved| 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