|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dhtmlx.connector.DataProcessor
public class DataProcessor
The Class DataProcessor. Handles "update" part of logic. This class can be used as a base for component specific data processors.
Field Summary | |
---|---|
protected BaseFactory |
cfactory
The class factory. |
protected DataConfig |
config
The config. |
protected BaseConnector |
connector
The master connector. |
protected DataRequest |
request
The request. |
Constructor Summary | |
---|---|
DataProcessor(BaseConnector connector,
DataConfig config,
DataRequest request,
BaseFactory cfactory)
Instantiates a new data processor. |
Method Summary | |
---|---|
private void |
check_exts(DataAction action,
OperationType mode)
Checks if there an external event or SQL code was defined for current action |
protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> |
get_post_values(java.lang.String[] ids)
Sort incoming data, creates a hash of data for each record in incoming request |
private void |
inner_process(DataAction action)
Inner processing routine, called for each record in incoming request |
protected java.lang.String |
name_data(java.lang.String name)
Convert incoming parameter name to name of DB field |
private java.lang.String |
output_as_xml(java.util.ArrayList<DataAction> result)
Convert state to xml string |
java.lang.String |
process()
Process incoming request Detects the list of the operation in incoming request Process operations one by one |
protected OperationType |
status_to_mode(java.lang.String status)
Convert incoming client side status, to DB operation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BaseConnector connector
protected DataConfig config
protected DataRequest request
protected BaseFactory cfactory
Constructor Detail |
---|
public DataProcessor(BaseConnector connector, DataConfig config, DataRequest request, BaseFactory cfactory)
connector
- the connectorconfig
- the configrequest
- the requestcfactory
- the class factoryMethod Detail |
---|
protected java.lang.String name_data(java.lang.String name)
name
- the parameter name
protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> get_post_values(java.lang.String[] ids)
ids
- the array of record ids, data for which need to be allocated
public java.lang.String process() throws ConnectorOperationException, ConnectorConfigException
ConnectorOperationException
- the connector operation exception
ConnectorConfigException
- the connector config exceptionprotected OperationType status_to_mode(java.lang.String status) throws ConnectorOperationException
status
- the status from incoming request
ConnectorOperationException
- the connector operation exceptionprivate java.lang.String output_as_xml(java.util.ArrayList<DataAction> result)
result
- the list of data actions , created during processing
private void inner_process(DataAction action) throws ConnectorConfigException, ConnectorOperationException
action
- the data action which need to be processed
ConnectorConfigException
- the connector config exception
ConnectorOperationException
- the connector operation exceptionprivate void check_exts(DataAction action, OperationType mode) throws ConnectorConfigException, ConnectorOperationException
action
- the actionmode
- the operation type
ConnectorConfigException
- the connector config exception
ConnectorOperationException
- the connector operation exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |