|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QueryDao
Provider for connections and queries.
| Field Summary | |
|---|---|
static String |
ROLE
The avalon role name. |
| Method Summary | |
|---|---|
String |
addDataSource(String siteName,
DataSource dataSource)
Add a data source and return its id. |
String |
addQuery(String siteName,
Query query,
String dataSourceId)
Add a query and set its id. |
DataSource |
getDataSource(String siteName,
String id)
Get a data source from its id. |
Map<String,Query> |
getDataSourceQueries(String siteName,
String dataSourceId)
Get all the queries of a site. |
Map<String,DataSource> |
getDataSources(String siteName)
Get all the data sources of a site. |
Map<String,DataSource> |
getDataSources(String siteName,
String type)
Get all the data sources of a site and of the specified type. |
Map<String,Query> |
getQueries(String siteName)
Get all the queries of a site. |
Map<String,Query> |
getQueries(String siteName,
String type)
Get all the queries of a site. |
Query |
getQuery(String siteName,
String id)
Get a query from its id. |
void |
removeDataSource(String siteName,
String id)
Remove a data source. |
void |
removeQuery(String siteName,
String id)
Remove a query. |
void |
updateDataSource(String siteName,
DataSource dataSource)
Update a data source. |
void |
updateQuery(String siteName,
Query query,
String dataSourceId)
Update a query. |
| Field Detail |
|---|
static final String ROLE
| Method Detail |
|---|
Map<String,DataSource> getDataSources(String siteName)
throws DataInclusionException
siteName - the site name.
DataInclusionException
Map<String,DataSource> getDataSources(String siteName,
String type)
throws DataInclusionException
siteName - the site name.type - the type id.
DataInclusionException
DataSource getDataSource(String siteName,
String id)
throws DataInclusionException
siteName - the site name.id - the data source id.
DataInclusionException
String addDataSource(String siteName,
DataSource dataSource)
throws DataInclusionException
siteName - the site namedataSource - the data source to add. The id member doesn't need to be specified.
DataInclusionException
void updateDataSource(String siteName,
DataSource dataSource)
throws DataInclusionException
siteName - the site namedataSource - the data source to update.
DataInclusionException
void removeDataSource(String siteName,
String id)
throws DataInclusionException
siteName - the site nameid - the data source id.
DataInclusionException
Map<String,Query> getQueries(String siteName)
throws DataInclusionException
siteName - the site name.
DataInclusionException
Map<String,Query> getQueries(String siteName,
String type)
throws DataInclusionException
siteName - the site name.type -
DataInclusionException
Map<String,Query> getDataSourceQueries(String siteName,
String dataSourceId)
throws DataInclusionException
siteName - the site name.dataSourceId -
DataInclusionException
Query getQuery(String siteName,
String id)
throws DataInclusionException
siteName - the site name.id - the query id.
DataInclusionException
String addQuery(String siteName,
Query query,
String dataSourceId)
throws DataInclusionException
siteName - the site namequery - the query to add. The id member doesn't need to be specified.dataSourceId -
DataInclusionException
void updateQuery(String siteName,
Query query,
String dataSourceId)
throws DataInclusionException
siteName - the site namequery - the query to update.dataSourceId -
DataInclusionException
void removeQuery(String siteName,
String id)
throws DataInclusionException
siteName - the site nameid - the query id.
DataInclusionException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||