public interface IDatasourceMgmtService extends IPentahoInitializer
IDatabaseConnection
.Modifier and Type | Field and Description |
---|---|
static String |
IDATASOURCEMGMTSERVICE |
Modifier and Type | Method and Description |
---|---|
String |
createDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection)
Creates a JDBC datasource in a given repository and return an id
|
void |
deleteDatasourceById(String id)
Permanently deletes a JDBC datasource from a repository by id
|
void |
deleteDatasourceByName(String name)
Permanently deletes a JDBC datasource from a repository by name
|
org.pentaho.database.model.IDatabaseConnection |
getDatasourceById(String id)
Retrieves a JDBC datasource form the repository by id
|
org.pentaho.database.model.IDatabaseConnection |
getDatasourceByName(String name)
Retrieves a JDBC datasource form the repository by name
|
List<String> |
getDatasourceIds()
Retrieves all JDBC datasource ids from the repository
|
List<org.pentaho.database.model.IDatabaseConnection> |
getDatasources()
Retrieves all JDBC datasources from the repository
|
String |
updateDatasourceById(String id,
org.pentaho.database.model.IDatabaseConnection databaseConnection)
Updates a given JDBC datasource by id
|
String |
updateDatasourceByName(String name,
org.pentaho.database.model.IDatabaseConnection databaseConnection)
Updates a given JDBC datasource by name
|
init
static final String IDATASOURCEMGMTSERVICE
String createDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection) throws DuplicateDatasourceException, DatasourceMgmtServiceException
databaseConnection
- DuplicateDatasourceException
DatasourceMgmtServiceException
void deleteDatasourceByName(String name) throws NonExistingDatasourceException, DatasourceMgmtServiceException
name
- NonExistingDatasourceException
DatasourceMgmtServiceException
void deleteDatasourceById(String id) throws NonExistingDatasourceException, DatasourceMgmtServiceException
id
- NonExistingDatasourceException
DatasourceMgmtServiceException
org.pentaho.database.model.IDatabaseConnection getDatasourceByName(String name) throws DatasourceMgmtServiceException
name
- DatasourceMgmtServiceException
org.pentaho.database.model.IDatabaseConnection getDatasourceById(String id) throws DatasourceMgmtServiceException
id
- DatasourceMgmtServiceException
List<org.pentaho.database.model.IDatabaseConnection> getDatasources() throws DatasourceMgmtServiceException
DatasourceMgmtServiceException
List<String> getDatasourceIds() throws DatasourceMgmtServiceException
DatasourceMgmtServiceException
String updateDatasourceByName(String name, org.pentaho.database.model.IDatabaseConnection databaseConnection) throws NonExistingDatasourceException, DatasourceMgmtServiceException
name
- databaseConnection
- NonExistingDatasourceException
DatasourceMgmtServiceException
String updateDatasourceById(String id, org.pentaho.database.model.IDatabaseConnection databaseConnection) throws NonExistingDatasourceException, DatasourceMgmtServiceException
id
- databaseConnection
- NonExistingDatasourceException
DatasourceMgmtServiceException