| com.xoetrope.service.data.QueryService com.xoetrope.service.data.TableProcessor
TableProcessor | abstract public class TableProcessor extends QueryService (Code) | | ServiceProxy class which processes a list of fields from a dataset in order to
create the stubs of Insert and Update statements.
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.11 $
|
Method Summary | |
public Object | call(String method, ServiceContext context) | protected String | fixFieldData(String data) Fix the field data for ' single quotes that appear in the query data. | protected String | getCallValue(String function) Calls methods in subclasses with the name of the passed function and
returns the result of that call. | protected void | loadDataModel(String dataModelText) | protected String | processFields(String fieldPath, int mode, XBaseModel dataModelSection) Build the SQL statement from the list of fields found in the model node
specified by the fieldPath parameter. | abstract protected void | processQueries(ServiceProxyArgs args) |
ARG_NAME_DATA_PARAMNAME | final public static String ARG_NAME_DATA_PARAMNAME(Code) | | The name of the pass parameter which contains the dataset which needs to be
processed
|
ARG_NAME_RETURNSTATE | final public static String ARG_NAME_RETURNSTATE(Code) | | Needs to be set in the subclass to indicate that the operation has suceeded
or failed. Use either ARG_VALUE_UPDATES_FAILED or ARG_VALUE_UPDATES_COMPLETED
|
ARG_VALUE_UPDATES_COMPLETED | final public static String ARG_VALUE_UPDATES_COMPLETED(Code) | | Assigned to the ARG_NAME_RETURNSTATE parameter if the operation completes
|
ARG_VALUE_UPDATES_FAILED | final public static String ARG_VALUE_UPDATES_FAILED(Code) | | Assigned to the ARG_NAME_RETURNSTATE parameter if the operation fails
|
MODE_DELETE | final public static int MODE_DELETE(Code) | | |
MODE_INSERT | final public static int MODE_INSERT(Code) | | Used by the processFields method to indicate that an insert statement is
being generated
|
MODE_UPDATE | final public static int MODE_UPDATE(Code) | | Used by the processFields method to indicate that an update statement is
being generated
|
args | protected ServiceProxyArgs args(Code) | | |
dataMdl | protected XBaseModel dataMdl(Code) | | |
rootModel | protected XBaseModel rootModel(Code) | | |
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 |
fixFieldData | protected String fixFieldData(String data)(Code) | | Fix the field data for ' single quotes that appear in the query data.
Parameters: data - The data being used in the query The fixed data |
getCallValue | protected String getCallValue(String function)(Code) | | Calls methods in subclasses with the name of the passed function and
returns the result of that call.
Parameters: function - The name of the function to call The result of the function call |
loadDataModel | protected void loadDataModel(String dataModelText)(Code) | | Create an XModel object from the passed dataset
Parameters: dataModelText - the dataset String which has been passed from the client |
processFields | protected String processFields(String fieldPath, int mode, XBaseModel dataModelSection)(Code) | | Build the SQL statement from the list of fields found in the model node
specified by the fieldPath parameter.
Parameters: fieldPath - the path into the model where the field list is stored Parameters: mode - specifies either Insert or Update mode Parameters: dataModelSection - the XModel from which data is to be retrieved the formatted SQL statment |
processQueries | abstract protected void processQueries(ServiceProxyArgs args)(Code) | | |
|
|