| Constructor and Description |
|---|
JdbcMBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(String name,
String driverName,
String driverClass,
String databaseName,
String url,
String user,
String password)
Create a JDBC datasource.
|
void |
delete(String name)
Delete a JDBC datasource.
|
void |
execute(String datasource,
String command)
Execute a SQL command on a JDBC datasource.
|
TabularData |
getDatasources()
Get the list of JDBC datasources.
|
JdbcService |
getJdbcService() |
Map<String,String> |
info(String datasource)
Get details about a JDBC datasource.
|
TabularData |
query(String datasource,
String query)
Execute a SQL query on a JDBC datasource.
|
void |
setJdbcService(JdbcService jdbcService) |
TabularData |
tables(String datasource)
Get the tables available on a JDBC datasource.
|
public TabularData getDatasources() throws MBeanException
JdbcMBeangetDatasources in interface JdbcMBeanMBeanExceptionpublic void create(String name, String driverName, String driverClass, String databaseName, String url, String user, String password) throws MBeanException
JdbcMBeancreate in interface JdbcMBeanname - the JDBC datasource namedriverName - org.osgi.driver.name of the DataSourceFactory to usedriverClass - org.osgi.driver.class of the DataSourceFactory to usedatabaseName - name of the database to accessurl - JDBC URLuser - Database usernamepassword - Database passwordMBeanExceptionpublic void delete(String name) throws MBeanException
JdbcMBeandelete in interface JdbcMBeanname - the JDBC datasource name (the one used at creation time).MBeanExceptionpublic Map<String,String> info(String datasource) throws MBeanException
JdbcMBeaninfo in interface JdbcMBeandatasource - the JDBC datasource name.MBeanExceptionpublic TabularData tables(String datasource) throws MBeanException
JdbcMBeantables in interface JdbcMBeandatasource - the JDBC datasource name.MBeanExceptionpublic void execute(String datasource, String command) throws MBeanException
JdbcMBeanexecute in interface JdbcMBeandatasource - the JDBC datasource name.command - the SQL command to execute.MBeanExceptionpublic TabularData query(String datasource, String query) throws MBeanException
JdbcMBeanquery in interface JdbcMBeandatasource - the JDBC datasource name.query - the SQL query to execute.MBeanExceptionpublic JdbcService getJdbcService()
public void setJdbcService(JdbcService jdbcService)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.