com.dhtmlx.connector
Class JSONCommonConnector

java.lang.Object
  extended by com.dhtmlx.connector.BaseConnector
      extended by com.dhtmlx.connector.CommonConnector
          extended by com.dhtmlx.connector.JSONCommonConnector
Direct Known Subclasses:
JSONOptionsConnector, JSONTreeCommonGroupConnector

public class JSONCommonConnector
extends CommonConnector


Field Summary
 
Fields inherited from class com.dhtmlx.connector.BaseConnector
access, event, incoming_data, sql
 
Constructor Summary
JSONCommonConnector(java.sql.Connection db)
          Instantiates a new scheduler connector.
JSONCommonConnector(java.sql.Connection db, DBType db_type)
          Instantiates a new scheduler connector.
JSONCommonConnector(java.sql.Connection db, DBType db_type, BaseFactory a_factory)
          Instantiates a new scheduler connector.
JSONCommonConnector(java.sql.Connection db, DBType db_type, BaseFactory a_factory, RenderStrategy render_type)
          Instantiates a new scheduler connector.
 
Method Summary
 void add_section(java.lang.String name, JSONObject value)
           
 void add_section(java.lang.String name, java.lang.String value)
           
 void output_as_xml(java.lang.String data)
           
 void set_options(java.lang.String name, BaseConnector connector)
          Define connector for options retrieving
 void set_options(java.lang.String name, java.util.HashMap object)
          Define fixed list of options
 void set_options(java.lang.String name, java.lang.Iterable object)
          Define fixed list of options
 
Methods inherited from class com.dhtmlx.connector.CommonConnector
getRecord, isSimpleProtocolUsed
 
Methods inherited from class com.dhtmlx.connector.BaseConnector
add_top_attribute, dynamic_loading, dynamic_loading, enable_log, is_first_call, is_select_mode, render_array, render_array, render_array, render_complex_sql, render_complex_sql, render_complex_sql, render_connector, render_sql, render_sql, render_sql, render_table, render_table, render_table, render, servlet, set_encoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONCommonConnector

public JSONCommonConnector(java.sql.Connection db)
Instantiates a new scheduler connector.

Parameters:
db - the db connection

JSONCommonConnector

public JSONCommonConnector(java.sql.Connection db,
                           DBType db_type)
Instantiates a new scheduler connector.

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

JSONCommonConnector

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

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

JSONCommonConnector

public JSONCommonConnector(java.sql.Connection db,
                           DBType db_type,
                           BaseFactory a_factory,
                           RenderStrategy render_type)
Instantiates a new scheduler connector.

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

output_as_xml

public void output_as_xml(java.lang.String data)

set_options

public void set_options(java.lang.String name,
                        BaseConnector connector)
Define connector for options retrieving

Overrides:
set_options in class BaseConnector
Parameters:
name - the name of column
connector - the connector

set_options

public void set_options(java.lang.String name,
                        java.lang.Iterable object)
Define fixed list of options

Parameters:
name - the name of column
object - the iterable object ( array )

set_options

public void set_options(java.lang.String name,
                        java.util.HashMap object)
Define fixed list of options

Parameters:
name - the name of column
object - the hash object

add_section

public void add_section(java.lang.String name,
                        java.lang.String value)
Overrides:
add_section in class CommonConnector

add_section

public void add_section(java.lang.String name,
                        JSONObject value)