public interface JdbcMBean
| 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.
|
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.
|
TabularData |
tables(String datasource)
Get the tables available on a JDBC datasource.
|
TabularData getDatasources() throws MBeanException
MBeanExceptionvoid create(String name, String driverName, String driverClass, String databaseName, String url, String user, String password) throws MBeanException
name - 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 passwordMBeanExceptionvoid delete(String name) throws MBeanException
name - the JDBC datasource name (the one used at creation time).MBeanExceptionMap<String,String> info(String datasource) throws MBeanException
datasource - the JDBC datasource name.MBeanExceptionTabularData tables(String datasource) throws MBeanException
datasource - the JDBC datasource name.MBeanExceptionvoid execute(String datasource, String command) throws MBeanException
datasource - the JDBC datasource name.command - the SQL command to execute.MBeanExceptionTabularData query(String datasource, String query) throws MBeanException
datasource - the JDBC datasource name.query - the SQL query to execute.MBeanExceptionCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.