|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.enterprise.tabularresults.BaseQueryService
public abstract class BaseQueryService
This class will be used to define the minimally required behavior of a class that is to retrieve a queryresult and have it presented in an HTML table. It is assumed, but not required, that the HTML table will be generated via the utilities in the Package wt.enterprise.tabularquery. A call to the method printTable in TableFormatService is the specific call that is expect, but not necessary.
The classes that subclass off of this class will need to implement two methods.
Currently BaseQueryService implements NetFactor.
The purpose of this is that all of the children of BaseQueryService
can be found via introspection. Thus, when a new extension of BaseQueryService
is created there is a method to locate this subclass other than hardcoding
the name or the reference in the code. An example of this currently is
the use of QueryServiceProvider
finding the desired subclass of BaseQueryService based on the name of
the class without the full path. Thus, the name of the query can
be passed in as a parameter in the URL used to request the HTML page
presenting the table. In ChangeViewProcessor
the value of the HTTP GET parameter action is used to find the
proper subclass to generate the QueryResults. Here is some sample code
performing this.
QueryServiceProvider query_service_provider = new QueryServiceProvider();
BaseQueryService base_query_service = query_service_provider.getqueryService(query_service_name);
queryResults = (Object[])base_query_service.getQuery( getContextObj(),
parameters, locale);
Supported API: true
Extendable: false
QueryServiceProvider,
Serialized Form| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||