com.dhtmlx.connector
Class TreeConnector

java.lang.Object
  extended by com.dhtmlx.connector.BaseConnector
      extended by com.dhtmlx.connector.TreeConnector

public class TreeConnector
extends BaseConnector

The Class TreeConnector.


Field Summary
 
Fields inherited from class com.dhtmlx.connector.BaseConnector
access, cfactory, config, db_type, dynloading, dynloading_size, event, global_http_request, global_http_response, http_request, http_response, incoming_data, request, sql
 
Constructor Summary
TreeConnector(java.sql.Connection db)
          Instantiates a new tree connector.
TreeConnector(java.sql.Connection db, DBType db_type)
          Instantiates a new tree connector.
TreeConnector(java.sql.Connection db, DBType db_type, BaseFactory a_factory)
          Instantiates a new tree connector.
 
Method Summary
protected  void parse_request()
          Parse http request Methods sets "dynloading", "editing" flags and fill request object with info about requested sorting|filtering options.
protected  java.lang.String render_set(ConnectorResultSet result)
          Render DB result set as XML string
protected  java.lang.String xml_end()
          Get closing top level xml tag
protected  java.lang.String xml_start()
          Get opening top level xml tag
 
Methods inherited from class com.dhtmlx.connector.BaseConnector
dynamic_loading, dynamic_loading, enable_log, end_run, get_connection, is_select_mode, output_as_xml, output_as_xml, render_connector, render_sql, render_sql, render_sql, render_table, render_table, render_table, render, resolve_parameter, safe_field_name, servlet, set_encoding, uuid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeConnector

public TreeConnector(java.sql.Connection db)
Instantiates a new tree connector.

Parameters:
db - the db connection

TreeConnector

public TreeConnector(java.sql.Connection db,
                     DBType db_type)
Instantiates a new tree connector.

Parameters:
db - the db connection
db_type - the db type

TreeConnector

public TreeConnector(java.sql.Connection db,
                     DBType db_type,
                     BaseFactory a_factory)
Instantiates a new tree connector.

Parameters:
db - the db connection
db_type - the db type
a_factory - the class factory, which will be used by object
Method Detail

parse_request

protected void parse_request()
Description copied from class: BaseConnector
Parse http request Methods sets "dynloading", "editing" flags and fill request object with info about requested sorting|filtering options.

Overrides:
parse_request in class BaseConnector

render_set

protected java.lang.String render_set(ConnectorResultSet result)
                               throws ConnectorOperationException
Description copied from class: BaseConnector
Render DB result set as XML string

Overrides:
render_set in class BaseConnector
Parameters:
result - the DB result
Returns:
the xml string
Throws:
ConnectorOperationException - the connector operation exception

xml_start

protected java.lang.String xml_start()
Description copied from class: BaseConnector
Get opening top level xml tag

Overrides:
xml_start in class BaseConnector
Returns:
the xml string

xml_end

protected java.lang.String xml_end()
Description copied from class: BaseConnector
Get closing top level xml tag

Overrides:
xml_end in class BaseConnector
Returns:
the xml string