|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataSourceFactory
The DataSource Factory is responsible for building DataSource and Query objects. It handles one or several DataSource/Query types.
| Method Summary | |
|---|---|
DataSource |
buildDataSource(String id,
String type,
String name,
String description,
Map<String,String> additionalConfiguration)
Build a data source with the specified information. |
Query |
buildQuery(String id,
String type,
String name,
String description,
Query.ResultType resultType,
DataSource dataSource,
Map<String,String> additionalConfiguration)
Build a query with the specified information. |
Collection<String> |
getDataSourceConfigurationParameters(String type)
The configuration parameters needed to build a DataSource of the specified type. |
Collection<String> |
getHandledTypes()
Get the types that the factory can build. |
Collection<String> |
getQueryConfigurationParameters(String type)
The configuration parameters needed to build a Query of the specified type. |
| Method Detail |
|---|
Collection<String> getHandledTypes()
Collection<String> getDataSourceConfigurationParameters(String type)
type - the type of the DataSource.
Collection<String> getQueryConfigurationParameters(String type)
type - the type of the Query.
DataSource buildDataSource(String id,
String type,
String name,
String description,
Map<String,String> additionalConfiguration)
throws DataInclusionException
id - the DataSource ID.type - the DataSource type.name - the DataSource name.description - the DataSource description.additionalConfiguration - additional data source configuration parameter values as a Map<parameterName, parameterValue>.
DataInclusionException - if an error occurs trying to create the DataSource.
Query buildQuery(String id,
String type,
String name,
String description,
Query.ResultType resultType,
DataSource dataSource,
Map<String,String> additionalConfiguration)
throws DataInclusionException
id - the Query ID.type - the Query type.name - the Query name.description - the Query description.resultType - the Query result type (single/multiple).dataSource - the DataSource the Query depends on.additionalConfiguration - additional query configuration parameter values as a Map<parameterName, parameterValue>.
DataInclusionException - if an error occurs trying to create the Query.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||