Interface IFD2DataSourceProvider
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultFD2DatasourceProvider
public interface IFD2DataSourceProvider extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description com.alibaba.fastjson.JSONObject
createAllDatenquellenJSON()
Returns a list of all data sources.com.alibaba.fastjson.JSONArray
createDatenquellenJSON()
Returns a JSON array of all datasources that can be used a data source for a select element in the designer, ie.void
resolveItemOptions(IXFormRenderConfig config, XItem item)
Deprecated.void
resolveItemOptions(XItemRenderData renderData)
-
-
-
Method Detail
-
resolveItemOptions
@Deprecated void resolveItemOptions(IXFormRenderConfig config, XItem item)
Deprecated.
-
resolveItemOptions
void resolveItemOptions(XItemRenderData renderData)
-
createDatenquellenJSON
com.alibaba.fastjson.JSONArray createDatenquellenJSON()
Returns a JSON array of all datasources that can be used a data source for a select element in the designer, ie. all CSV data sources and database queries without any free parameters (not containing question marks?
). Also includes plugin data sources (IPluginDataSource
).- Returns:
- Data sources for select elements in the designer, an array of JSON objects with the following property
keys:
- value: To be used as the value of the select option, such as the name of the data source.
- text: To be used as the display text of the select option, such as the name of the data source.
- group: The type of data source, such as
DB
orCSV
- paramCount: The number of free parameters in the data source.
-
createAllDatenquellenJSON
com.alibaba.fastjson.JSONObject createAllDatenquellenJSON()
Returns a list of all data sources. Used eg. for suggestions in the JavaScript editor within the designer. Example for the returned JSON object:{DB: [{name: "datasource", type: "DB", paramCount: 2}, LDAP: [], PLUGIN: [], CSV: [], JSON: [], XML: []]}
- Returns:
- All available data queries. A JSON object with the data source type as the key, mapped to a JSON array of
all data sources of that type, each a JSON object with the following property keys:
- name: The name of the datasource.
- type: The type of the datasource. One of the enum constant in
EDatenquellenTyp
, the stringPLUGIN
for anIPluginDataSource
; or the stringLDAP
for an LDAP-query. - paramCount: The number of free parameters in the data source.
-
-