|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dhtmlx.connector.BaseConnector
com.dhtmlx.connector.GridConnector
public class GridConnector
The Class GridConnector.
Field Summary | |
---|---|
protected java.lang.StringBuffer |
extra_output
The extra info , which need to be mixed in output |
protected java.util.HashMap<java.lang.String,BaseConnector> |
options
The collections of options |
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 | |
---|---|
GridConnector(java.sql.Connection db)
Instantiates a new grid connector. |
|
GridConnector(java.sql.Connection db,
DBType db_type)
Instantiates a new grid connector. |
|
GridConnector(java.sql.Connection db,
DBType db_type,
BaseFactory a_factory)
Instantiates a new grid connector. |
Method Summary | |
---|---|
protected void |
fill_collections(java.lang.String[] columns)
Fill collections of options with data from DB |
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 |
resolve_parameter(java.lang.String name)
Resolve incoming http parameter Translate name of incoming parameter to the name of related DB field |
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 |
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_set, render_sql, render_sql, render_sql, render_table, render_table, render_table, render, 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 |
Field Detail |
---|
protected java.lang.StringBuffer extra_output
protected java.util.HashMap<java.lang.String,BaseConnector> options
Constructor Detail |
---|
public GridConnector(java.sql.Connection db)
db
- the db connectionpublic GridConnector(java.sql.Connection db, DBType db_type)
db
- the db connectiondb_type
- the db typepublic GridConnector(java.sql.Connection db, DBType db_type, BaseFactory a_factory)
db
- the db connectiondb_type
- the db typea_factory
- the class factory, which will be used by objectMethod Detail |
---|
protected void parse_request()
BaseConnector
parse_request
in class BaseConnector
protected void fill_collections(java.lang.String[] columns) throws ConnectorConfigException
columns
- the columns for which options are requested
ConnectorConfigException
- the connector config exceptionpublic void set_options(java.lang.String name, BaseConnector connector)
name
- the name of columnconnector
- the connectorpublic void set_options(java.lang.String name, java.lang.Iterable object)
name
- the name of columnobject
- the iterable object ( array )public void set_options(java.lang.String name, java.util.HashMap object)
name
- the name of columnobject
- the hash objectprotected java.lang.String resolve_parameter(java.lang.String name)
BaseConnector
resolve_parameter
in class BaseConnector
name
- the name of http parameter
protected java.lang.String xml_end()
BaseConnector
xml_end
in class BaseConnector
protected java.lang.String xml_start()
BaseConnector
xml_start
in class BaseConnector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |