| com.xoetrope.service.data.QueryService
All known Subclasses: com.xoetrope.service.data.TableProcessor,
QueryService | public class QueryService extends ServiceProxy (Code) | | ServiceProxy class which retrieves data from a database on the server and
returns an XML representation of it.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.12 $
|
ARG_NAME_MODEL_RESTORE_PATH | final public static String ARG_NAME_MODEL_RESTORE_PATH(Code) | | This parameter should be concatenated with the zero based index of the
parameter being set
|
ARG_NAME_NUMPARAMS | final public static String ARG_NAME_NUMPARAMS(Code) | | The number of parameters to be set in the PreparedStatement
|
ARG_NAME_PARAMVALUE | final public static String ARG_NAME_PARAMVALUE(Code) | | This parameter should be concatenated with the zero based index of the
parameter being set
|
ARG_NAME_QUERY | final public static String ARG_NAME_QUERY(Code) | | The name of the query to be executed as defined in the database datasource
file
|
ARG_NAME_RESULTSET | final public static String ARG_NAME_RESULTSET(Code) | | Return parameter which contains the XML representation of the query
|
currentProject | protected XProject currentProject(Code) | | The owner project and the context in which this object operates.
|
QueryService | public QueryService()(Code) | | Create a new instance of the service
|
call | public Object call(String method, ServiceContext context) throws ServiceProxyException(Code) | | Call this proxy with the specified arguments
the result of the call Parameters: context - The ServiceContext contain pass and return parameters Parameters: method - the name of the service being called throws: net.xoetrope.optional.service.ServiceProxyException - Throw an exception if there is a problem with the call |
loadResults | public void loadResults(String resultSet, XModel model)(Code) | | Load the returned data into the model.
Parameters: resultSet - the returned XML data Parameters: model - The model which will be populated with the data |
recordProcessed | protected void recordProcessed(ServiceContext context, Element dataEle)(Code) | | Provided for overloading. This method is called when a record has been
processed and should be overloaded where additonal work needs to be carried
out on the data.
Parameters: context - The ServiceContext object sent from the client Parameters: dataEle - The XML Element containing data for the current record |
retrieveData | public String retrieveData(ServiceContext context, String queryType, String[] params)(Code) | | Called when a named query is to be processed with the specified parameters.
The dataset is built up from the data and returned.
Parameters: context - The ServiceContext object sent from the client Parameters: queryType - The query to be processed Parameters: params - The parameters for the PreparedStatement |
|
|