|
|||||||||||
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 IDataSource
. 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.
Meant to be implemented for each method to be wrapped.
Used by MethodDataSource
.
Method Summary | |
java.lang.Object[] |
buildArguments(IQuery theQuery)
Builds the arguments to be used in the underlying method invocation, corresponding to the provided query. |
IQueryResult |
buildQueryResult(java.lang.Object theObject)
Builds a query result from the provided object. |
Method Detail |
public IQueryResult buildQueryResult(java.lang.Object theObject)
IQueryResult
is composed of zero or more IDataItem
s.
theObject
- The provided object.
public java.lang.Object[] buildArguments(IQuery theQuery)
theQuery
- The provided query.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |