|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Adapts the arguments and return values of a particular Java method
to work with a ISemanticCache
. It is assumed that the Java
method corresponds to some query, and the return value corresponds
to the results of the query, which are to be cached.
Method Summary | |
java.lang.Object[] |
getArgs(java.lang.Object[] theOriginalArgs,
IQuery theQuery)
Note that the query parameters returned by this method can be more general than necessary, if extraneous data are filtered by includeInResults(). |
java.lang.Class[] |
getArgTypes()
|
IDataInspector |
getDataInspector()
|
int |
getMaxGroups()
|
java.lang.String |
getMethodName()
|
IQuery |
getParamsFromArgs(java.lang.Object[] theMethodArgs)
|
CacheReasonEnum |
getReason(java.lang.Object[] theMethodArgs)
|
boolean |
includeInResults(java.lang.Object theDataItem,
java.lang.Object[] theMethodArgs)
The cache may return more data than needed. |
Method Detail |
public java.lang.String getMethodName()
public java.lang.Class[] getArgTypes()
public int getMaxGroups()
public IQuery getParamsFromArgs(java.lang.Object[] theMethodArgs)
theMethodArgs
- arguments of a query method call, constituting the query
parameters expected by the underlying system
IQuery
that defines the same scope of
data as the method args, or an encompassing scope, but are in terms of
a IParamSpace
public java.lang.Object[] getArgs(java.lang.Object[] theOriginalArgs, IQuery theQuery)
theOriginalArgs
- the original arguments submitted by a caller to the
query methodtheQuery
- defines the remainder query (i.e. data that
are not in the cache)
public boolean includeInResults(java.lang.Object theDataItem, java.lang.Object[] theMethodArgs)
theDataItem
- a candidate for a query resulttheMethodArgs
- method arguments defining query parameters
public CacheReasonEnum getReason(java.lang.Object[] theMethodArgs)
theMethodArgs
- method arguments defining query parameters
public IDataInspector getDataInspector()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |