public interface JCoRepository
JCoCustomRepository
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear allows to empty both the function template cache as well as the record metadata cache completely.
|
String[] |
getCachedClassMetaDataNames()
Returns the names of the cached classes as a string array.
|
String[] |
getCachedFunctionTemplateNames()
Returns the names of the cached functions as a string array.
|
String[] |
getCachedRecordMetaDataNames()
Returns the names of the cached structures as a string array.
|
JCoClassMetaData |
getClassMetaData(String className)
Returns the metadata for the passed class/interface name.
|
JCoFunction |
getFunction(String functionName)
Returns a JCoFunction with initial parameters for the passed function name.
|
JCoListMetaData |
getFunctionInterface(String functionName)
Returns the metadata for the passed function.
|
JCoFunctionTemplate |
getFunctionTemplate(String functionName)
Returns the template for the passed function.
|
JCoRepositoryMonitor |
getMonitor()
Returns a newly created or available monitor instance for the repository.
|
String |
getName()
Returns the repository name.
|
JCoRecordMetaData |
getRecordMetaData(String recordName)
Returns the metadata for the passed structure/table name.
|
JCoRequest |
getRequest(String functionName)
Returns a JCoRequest with initial parameters for the passed function name.
|
JCoRecordMetaData |
getStructureDefinition(String structureName)
Returns the metadata for the passed structure/table name.
|
boolean |
isUnicode()
Returns whether the repository contains both Unicode and non-Unicode metadata.
|
void |
load(Reader reader)
Loads the repository from the given reader.
|
void |
removeClassMetaDataFromCache(String className)
Removes a class metadata instance from the local cache.
|
void |
removeFunctionTemplateFromCache(String functionName)
Removes a function template from the local cache.
|
void |
removeRecordMetaDataFromCache(String recordName)
Removes a record metadata from the local cache.
|
void |
save(Writer writer)
Saves this repository using the given writer.
|
String getName()
JCoFunctionTemplate getFunctionTemplate(String functionName) throws JCoException
functionName
- the name of the function for which the template
is being returnedJCoException
- if another error occurred during the retrieval
of the function interface with the group field set appropriatelyJCoFunction getFunction(String functionName) throws JCoException
functionName
- the name of the function for which the JCoFunction
is being returned.JCoException
- if another error occurred during the retrieval
of the function interface with the group field set appropriatelyJCoRequest getRequest(String functionName) throws JCoException
functionName
- the name of the function for which the request
is being returned.JCoException
- if another error occurred during the retrieval
of the function interface with the group field set appropriatelyJCoListMetaData getFunctionInterface(String functionName) throws JCoException
functionName
- the name of the function for which the metadata
is being returnedJCoException
- if an error occurred during the retrieval
of the function interfaceJCoRecordMetaData getRecordMetaData(String recordName) throws JCoException
recordName
- the name of the structure or table for which the metadata
is being returnedJCoException
- if an error occurred during the retrieval
of the data structure definitionJCoRecordMetaData getStructureDefinition(String structureName) throws JCoException
structureName
- the name of the structure or table for which the metadata
is being returnedJCoException
- if an error occurred during the retrieval
of the data structure definitionJCoClassMetaData getClassMetaData(String className) throws JCoException
className
- the name of the class or interface for which the metadata
is being returnedJCoException
- if an error occurred during the retrieval
of the class metadata definitionvoid removeFunctionTemplateFromCache(String functionName)
functionName
- the name of the function to be removed from the cachevoid removeRecordMetaDataFromCache(String recordName)
recordName
- the name of the structure to be removed from the cachevoid removeClassMetaDataFromCache(String className)
className
- the name of the class to be removed from the cacheString[] getCachedFunctionTemplateNames()
String[] getCachedRecordMetaDataNames()
String[] getCachedClassMetaDataNames()
boolean isUnicode()
void clear()
JCoRepositoryMonitor getMonitor()
void load(Reader reader) throws IOException
reader
- the reader to be used for loading this repositoryIOException
- if an I/O error occursJCoRuntimeException
- with key JCO_ERROR_REPOSITORY_SERIALIZATION if the data read
is syntactically or semantically incorrectvoid save(Writer writer) throws IOException
writer
- the writer used to save this repositoryIOException
- if an I/O error occursCopyright © 2017 SAP. All Rights Reserved.