|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dhtmlx.connector.DataRequest
public class DataRequest
The Class DataRequest. Contains info about specific rules of current data request
Constructor Summary | |
---|---|
DataRequest()
Instantiates a new data request. |
|
DataRequest(DataRequest source)
Instantiates a new data request ( copy constructor ) |
Method Summary | |
---|---|
void |
copy(DataRequest original)
Copy data from existing request object |
java.lang.String |
get_count()
Gets the requested count. |
java.lang.String |
get_fieldset()
Gets the list of used fields. |
java.util.ArrayList<FilteringRule> |
get_filters()
Gets the set of filter rules |
java.lang.String |
get_relation()
Gets the relation id |
java.util.ArrayList<SortingRule> |
get_sort_by()
Gets the set of applied sorting rules |
java.lang.String |
get_source()
Gets the name of source table |
java.lang.String |
get_start()
Gets the start position |
void |
parse_sql(java.lang.String sql)
|
void |
parse_sql(java.lang.String sql,
java.lang.Boolean as_is)
Parse SQL string, extract table name, list of fields, list of rules |
void |
set_fieldset(java.lang.String value)
Sets the list of used fields |
void |
set_filter(java.lang.String sql)
Sets the filtering rule |
void |
set_filter(java.lang.String field,
java.lang.String value)
Set the filtering rule. |
void |
set_filter(java.lang.String field,
java.lang.String value,
java.lang.String rule)
Set_filter. |
void |
set_limit(int start,
int count)
Sets selection limit |
void |
set_limit(java.lang.String start,
java.lang.String count)
Sets selection limit |
void |
set_relation(java.lang.String relation)
Sets the name of relation id field |
void |
set_sort(java.lang.String column)
Sets the sorting order |
void |
set_sort(java.lang.String column,
java.lang.String direction)
Sets sorting order for selection |
void |
set_source(java.lang.String name)
Sets the name of source table |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRequest()
public DataRequest(DataRequest source)
source
- the source requets objectMethod Detail |
---|
public void copy(DataRequest original)
original
- the source request objectpublic java.lang.String get_source()
public java.lang.String get_start()
public java.lang.String get_count()
public java.lang.String get_fieldset()
public java.util.ArrayList<FilteringRule> get_filters()
public java.lang.String get_relation()
public java.util.ArrayList<SortingRule> get_sort_by()
public void set_fieldset(java.lang.String value)
value
- the list of used fieldspublic void set_filter(java.lang.String field, java.lang.String value, java.lang.String rule)
field
- the field by which filtering will be appliedvalue
- the valuerule
- the sql compatible rulepublic void set_filter(java.lang.String field, java.lang.String value)
field
- the field by which filtering will be appliedvalue
- the valuepublic void set_filter(java.lang.String sql)
sql
- the sql string with the filtering rulepublic void set_sort(java.lang.String column)
column
- the name of column by which selection will be sorted (asc order)public void set_sort(java.lang.String column, java.lang.String direction)
column
- the column by which sorting will be executeddirection
- the direction of sortingpublic void set_limit(java.lang.String start, java.lang.String count)
start
- the start positioncount
- the count of records to be selectedpublic void set_limit(int start, int count)
start
- the start positioncount
- the count of records to be selectedpublic void set_source(java.lang.String name) throws ConnectorConfigException
name
- the source table name
ConnectorConfigException
- the connector config exceptionpublic void set_relation(java.lang.String relation)
relation
- the new _relationpublic void parse_sql(java.lang.String sql, java.lang.Boolean as_is) throws ConnectorConfigException
sql
- the sql string
ConnectorConfigException
- the connector config exceptionpublic void parse_sql(java.lang.String sql) throws ConnectorConfigException
ConnectorConfigException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |