|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.sap.mw.jco.JCO.BasicRepository
Implementation of basic repository functionality such as caching and persistence. This class serves as a base class for more elaborate repositories. Derived classes have to call super(name) in their constructors in order to initialize the superclass properly !
| Constructor Summary | |
JCO.BasicRepository(java.lang.String name)
Constructs a new BasicRepository |
|
| Method Summary | |
void |
addFunctionInterfaceToCache(IMetaData meta)
Adds a function interface to the local cache. |
void |
addFunctionInterfaceToCache(java.lang.String key,
IMetaData meta)
Adds a function interface to the local cache. |
void |
addStructureDefinitionToCache(IMetaData meta)
Adds a structure definition to the local cache. |
void |
addStructureDefinitionToCache(java.lang.String key,
IMetaData meta)
Adds a structure definition to the local cache. |
java.lang.String[] |
getCachedFunctionInterfaces()
Returns the names of the cached functions as a string array |
java.lang.String[] |
getCachedStructureDefinitions()
Returns the names of the cached structures as a string array |
IMetaData |
getFunctionInterface(java.lang.String function_name)
Returns the meta data for the passed function |
IFunctionTemplate |
getFunctionTemplate(java.lang.String function_name)
Returns the template for the passed function. |
java.lang.String |
getName()
Returns the repository name |
IRepository |
getNextRepository()
Returns the next repository that will be used if a function or structure could not be found in this one. |
IMetaData |
getStructureDefinition(java.lang.String structure_name)
Returns the meta data for the passed structure |
IMetaData |
getTableDefinition(java.lang.String table_name)
Returns the meta data for the passed table |
void |
load(java.lang.String filename)
Load the repository from the specified file. |
void |
removeFunctionInterfaceFromCache(java.lang.String function_name)
Removes a function interface from the local cache. |
void |
removeStructureDefinitionFromCache(java.lang.String structure_name)
Removes a function interface from the local cache. |
void |
save(java.lang.String filename)
Save the repository to the specified file. |
void |
setNextRepository(IRepository next)
Sets the next repository that will be used if a function or structure could not be found in this one. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public JCO.BasicRepository(java.lang.String name)
name - the name of the repository| Method Detail |
public java.lang.String getName()
public IFunctionTemplate getFunctionTemplate(java.lang.String function_name)
function_name - the name of the function for which the template
is being returned.public IMetaData getFunctionInterface(java.lang.String function_name)
function_name - the name of the function for which the meta data
is being returnedpublic IMetaData getStructureDefinition(java.lang.String structure_name)
structure_name - the name of the structure for which the meta data
is being returnedpublic IMetaData getTableDefinition(java.lang.String table_name)
table_name - the name of the table for which the meta data
is being returnedpublic IRepository getNextRepository()
public void setNextRepository(IRepository next)
next - the next repository to use. Pass null if none.public void addFunctionInterfaceToCache(IMetaData meta)
meta - the meta data of the interface to add to the cache
public void addFunctionInterfaceToCache(java.lang.String key,
IMetaData meta)
key - the key of the cache entrymeta - the meta data of the interface to add to the cachepublic void addStructureDefinitionToCache(IMetaData meta)
meta - the meta data of a structure to add to the cache
public void addStructureDefinitionToCache(java.lang.String key,
IMetaData meta)
key - the key of the cache entrymeta - the meta data of a structure to add to the cachepublic void removeFunctionInterfaceFromCache(java.lang.String function_name)
function_name - the name of the function to be removed from the cachepublic void removeStructureDefinitionFromCache(java.lang.String structure_name)
structure_name - the name of the structure to be removed from the cachepublic java.lang.String[] getCachedFunctionInterfaces()
public java.lang.String[] getCachedStructureDefinitions()
public void save(java.lang.String filename)
throws java.io.IOException
filename - the file to save the repository to.
public void load(java.lang.String filename)
throws java.io.IOException
filename - the file to load the repository from.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||