com.dhtmlx.connector
Class DataConfig

java.lang.Object
  extended by com.dhtmlx.connector.DataConfig

public class DataConfig
extends java.lang.Object

The Class DataConfig. Class used to store configuration of Tables and Fields which are used for data operations


Field Summary
 java.util.ArrayList<ConnectorField> data
          The extra data fields
 ConnectorField id
          The id
 ConnectorField relation_id
          The relation id
 java.util.ArrayList<ConnectorField> text
          The data fields
 
Constructor Summary
DataConfig()
          Instantiates a new data config.
DataConfig(DataConfig original)
          Instantiates a new data config ( copy constructor )
 
Method Summary
 void add_field(java.lang.String name)
          add new field to the configuration
 void add_field(java.lang.String name, java.lang.String alias)
          add new field to the configuration
 void copy(DataConfig original)
          Copy config settings
 java.lang.String db_names_list()
          Returns the list of all involved db fieds
 void init(java.lang.String id, java.lang.String fields, java.lang.String extra, java.lang.String relation)
          Initialize the configuration
 void minimize(java.lang.String name)
          Minimize configuration, by removing unused fields.
 void remove_field(java.lang.String name)
          remove field from configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relation_id

public ConnectorField relation_id
The relation id


id

public ConnectorField id
The id


text

public java.util.ArrayList<ConnectorField> text
The data fields


data

public java.util.ArrayList<ConnectorField> data
The extra data fields

Constructor Detail

DataConfig

public DataConfig()
Instantiates a new data config.


DataConfig

public DataConfig(DataConfig original)
Instantiates a new data config ( copy constructor )

Parameters:
original - the original
Method Detail

copy

public void copy(DataConfig original)
Copy config settings

Parameters:
original - the original, from which settings will be copied

minimize

public void minimize(java.lang.String name)
              throws ConnectorConfigException
Minimize configuration, by removing unused fields.

Parameters:
name - the field which need to be preserved
Throws:
ConnectorConfigException - the connector config exception

init

public void init(java.lang.String id,
                 java.lang.String fields,
                 java.lang.String extra,
                 java.lang.String relation)
Initialize the configuration

Parameters:
id - the id
fields - the data fields
extra - the extra data fields
relation - the relation id

db_names_list

public java.lang.String db_names_list()
Returns the list of all involved db fieds

Returns:
the list of all involved db fieds

add_field

public void add_field(java.lang.String name)
               throws ConnectorConfigException
add new field to the configuration

Parameters:
name - the name of field
Throws:
ConnectorConfigException - the connector config exception

add_field

public void add_field(java.lang.String name,
                      java.lang.String alias)
               throws ConnectorConfigException
add new field to the configuration

Parameters:
name - the name of the field
alias - the alias of the field
Throws:
ConnectorConfigException - the connector config exception

remove_field

public void remove_field(java.lang.String name)
                  throws ConnectorConfigException
remove field from configuration

Parameters:
name - the name of field
Throws:
ConnectorConfigException - the connector config exception