|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoCustomRepository
JCoCustomRepository
is designed to be used for static/custom meta data.
So, if an application works with its own definition of meta data,
it can store them in a JCoCustomRepository
.
Each JCoCustomRepository
has its own cache that won't be shared with other
repository instances as it is the case with JCoRepository
cache.
Hence, the custom definition of meta data is available in one
instance of JCoCustomRepository
only.
Furthermore, JCoCustomRepository
allows to query data types containing
generic structures (generic boxed components). Since the generic boxes vary
depending on the SAP client, a standard
JCoRepository
always treats the generic structures as empty structures.
The only way to handle generic boxed components via lookups is to use a JCoCustomRepository
.
Note: it is strongly recommended to make use of a repository
connected to a backend system to ensure the consistency of meta data. Only if you need to
avoid additional repository connections or are working with a very limited set of
function modules you should consider using a JCoCustomRepository.
It is possible to define a destination and enable dynamic DDIC queries.
The meta data fetched from an ABAP system is stored in the own cache of the JCoCustomRepository
,
and hence is mixed with the custom meta data already stored in the cache.
The application may change the query type to achieve a specific behavior required
in special scenarios.
Nested Class Summary | |
---|---|
static class |
JCoCustomRepository.QueryMode
Enumeration that describes all modes to control the remote queries of a custom repository. |
Method Summary | |
---|---|
void |
addClassMetaDataToCache(JCoClassMetaData meta)
Adds a class definition to the local cache. |
void |
addFunctionTemplateToCache(JCoFunctionTemplate meta)
Adds a function interface to the local cache. |
void |
addRecordMetaDataToCache(JCoRecordMetaData meta)
Adds a structure definition to the local cache. |
void |
setDestination(JCoDestination destination)
Set the destination for the remote queries. |
void |
setQueryMode(JCoCustomRepository.QueryMode queryMode)
Allow the application to control the repository query. |
Methods inherited from interface com.sap.conn.jco.JCoRepository |
---|
clear, getCachedClassMetaDataNames, getCachedFunctionTemplateNames, getCachedRecordMetaDataNames, getClassMetaData, getFunction, getFunctionInterface, getFunctionTemplate, getMonitor, getName, getRecordMetaData, getRequest, getStructureDefinition, isUnicode, load, removeClassMetaDataFromCache, removeFunctionTemplateFromCache, removeRecordMetaDataFromCache, save |
Method Detail |
---|
void addFunctionTemplateToCache(JCoFunctionTemplate meta)
meta
- the meta data of the interface to add to the cachevoid addRecordMetaDataToCache(JCoRecordMetaData meta)
meta
- the meta data of a structure to add to the cachevoid addClassMetaDataToCache(JCoClassMetaData meta)
meta
- the meta data of an ABAP class to add to the cachevoid setDestination(JCoDestination destination) throws JCoException, JCoRuntimeException
destination
- ABAP destination for remote queries
JCoException
- if the destination can not be initiated.
JCoRuntimeException
- on an illegal usage, see exception textvoid setQueryMode(JCoCustomRepository.QueryMode queryMode) throws JCoRuntimeException
queryMode
- mode to control the remote queries
JCoRuntimeException
- on an illegal usage, see exception text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |