public interface AdminToolDBBrowserService
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(Connection c,
ConnectionVars vars)
close the connection and does a rollback if DML is not allowed. furthermore original values for autoCommit and readonly will be set.
|
Connection |
getConnection(String datasourceName,
ConnectionVars vars)
gets a connection from datasource and sets autoCommit to false and readonly to true if DML is not allowed
|
List<String> |
getDatasourceNames() |
Map<String,DataSource> |
getDatasources()
returns the configured data sources
could be used to add data sources manually |
Map<String,List<ExampleStatement>> |
getExamplesForDatasource(StatementTO statementTO)
returns the clusters of examples for vendor. if statementTO is null first data source will be used.
|
QueryResultTO |
getMetadata(String datasourceName) |
String |
getTab(StatementTO statementTO,
String id) |
QueryResultTO |
queryDatabase(StatementTO statementTO)
queries database with specified statementTO and returns the QueryResultTO
|
void |
setDatasources(Map<String,DataSource> datasources)
to override the configured data sources
|
Map<String,DataSource> getDatasources()
void setDatasources(Map<String,DataSource> datasources)
datasources - List<String> getDatasourceNames()
Connection getConnection(String datasourceName, ConnectionVars vars) throws SQLException
datasourceName - vars - SQLExceptionvoid closeConnection(Connection c, ConnectionVars vars)
c - vars - QueryResultTO getMetadata(String datasourceName)
datasourceName - QueryResultTO queryDatabase(StatementTO statementTO)
statementTO - String getTab(StatementTO statementTO, String id)
statementTO - id - html id value for elementMap<String,List<ExampleStatement>> getExamplesForDatasource(StatementTO statementTO)
statementTO - Copyright © 2016–2018. All rights reserved.