Search in sources :

Example 1 with MultitableDatasourceService

use of org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService in project data-access by pentaho.

the class JoinSelectionDebugGwtServlet method getTableFields.

public List<String> getTableFields(String table, IDatabaseConnection connection) throws Exception {
    DatabaseMeta databaseMeta = this.getDatabaseMeta(connection);
    MultitableDatasourceService service = new MultitableDatasourceService(databaseMeta);
    return service.getTableFields(table, connection);
}
Also used : MultitableDatasourceService(org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService) DatabaseMeta(org.pentaho.di.core.database.DatabaseMeta)

Example 2 with MultitableDatasourceService

use of org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService in project data-access by pentaho.

the class JoinSelectionDebugGwtServlet method serializeJoins.

public IDatasourceSummary serializeJoins(MultiTableDatasourceDTO dto, IDatabaseConnection connection) throws Exception {
    DatabaseMeta databaseMeta = this.getDatabaseMeta(connection);
    MultitableDatasourceService service = new MultitableDatasourceService(databaseMeta);
    return service.serializeJoins(dto, connection);
}
Also used : MultitableDatasourceService(org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService) DatabaseMeta(org.pentaho.di.core.database.DatabaseMeta)

Example 3 with MultitableDatasourceService

use of org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService in project data-access by pentaho.

the class JoinSelectionDebugGwtServlet method getDatabaseTables.

public List<String> getDatabaseTables(IDatabaseConnection connection, String schema) throws Exception {
    DatabaseMeta databaseMeta = this.getDatabaseMeta(connection);
    MultitableDatasourceService service = new MultitableDatasourceService(databaseMeta);
    return service.getDatabaseTables(connection, schema);
}
Also used : MultitableDatasourceService(org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService) DatabaseMeta(org.pentaho.di.core.database.DatabaseMeta)

Example 4 with MultitableDatasourceService

use of org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService in project data-access by pentaho.

the class JoinSelectionDebugGwtServlet method retrieveSchemas.

public List<String> retrieveSchemas(IDatabaseConnection connection) throws Exception {
    DatabaseMeta databaseMeta = this.getDatabaseMeta(connection);
    MultitableDatasourceService service = new MultitableDatasourceService(databaseMeta);
    return service.retrieveSchemas(connection);
}
Also used : MultitableDatasourceService(org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService) DatabaseMeta(org.pentaho.di.core.database.DatabaseMeta)

Aggregations

DatabaseMeta (org.pentaho.di.core.database.DatabaseMeta)4 MultitableDatasourceService (org.pentaho.platform.dataaccess.datasource.wizard.service.impl.MultitableDatasourceService)4