|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dhtmlx.connector.DataConfig
public class DataConfig
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 |
private int |
is_field(java.lang.String name)
Checks is field with such name already registered in collection of data fields |
private int |
is_field(java.lang.String name,
java.util.ArrayList<ConnectorField> collection)
Checks is field with such name already registered |
void |
minimize(java.lang.String name)
Minimize configuration, by removing unused fields. |
private void |
parse_many(java.lang.String key,
java.util.ArrayList<ConnectorField> collection)
Parse string description of multiple fields |
private ConnectorField |
parse_one(java.lang.String key)
Parse string description of single field |
void |
remove_field(java.lang.String name)
remove field from configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ConnectorField relation_id
public ConnectorField id
public java.util.ArrayList<ConnectorField> text
public java.util.ArrayList<ConnectorField> data
Constructor Detail |
---|
public DataConfig()
public DataConfig(DataConfig original)
original
- the originalMethod Detail |
---|
public void copy(DataConfig original)
original
- the original, from which settings will be copiedpublic void minimize(java.lang.String name) throws ConnectorConfigException
name
- the field which need to be preserved
ConnectorConfigException
- the connector config exceptionpublic void init(java.lang.String id, java.lang.String fields, java.lang.String extra, java.lang.String relation)
id
- the idfields
- the data fieldsextra
- the extra data fieldsrelation
- the relation idprivate void parse_many(java.lang.String key, java.util.ArrayList<ConnectorField> collection)
key
- the string to be parsedcollection
- the target collectionprivate ConnectorField parse_one(java.lang.String key)
key
- the string to be parsed
public java.lang.String db_names_list()
public void add_field(java.lang.String name) throws ConnectorConfigException
name
- the name of field
ConnectorConfigException
- the connector config exceptionpublic void add_field(java.lang.String name, java.lang.String alias) throws ConnectorConfigException
name
- the name of the fieldalias
- the alias of the field
ConnectorConfigException
- the connector config exceptionpublic void remove_field(java.lang.String name) throws ConnectorConfigException
name
- the name of field
ConnectorConfigException
- the connector config exceptionprivate int is_field(java.lang.String name)
name
- the name of field
private int is_field(java.lang.String name, java.util.ArrayList<ConnectorField> collection)
name
- the name of fieldcollection
- the collection against which check will be executed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |