public class DatabaseContextHandler extends Object
getDatabases(java.lang.Integer, java.lang.Integer)getSchemaTables(java.lang.String, java.lang.String)getSchemaTables(java.lang.String, java.lang.String)getModule(java.lang.String, java.lang.String, java.lang.String)OMEntityDao| Constructor and Description |
|---|
DatabaseContextHandler(OMEntityDao omEntityDao) |
| Modifier and Type | Method and Description |
|---|---|
List<ResponseContainerDatabase> |
getDatabases(Integer startFrom,
Integer pageSize)
Get list of databases on the server.
|
List<ResponseContainerDatabaseSchema> |
getDatabaseSchemas(String guidDataSource,
Integer startFrom,
Integer pageSize)
Retrieve schemas for given database from repository.
|
ResponseContainerModule |
getModule(String databaseGuid,
String catalog,
String schema)
Build Analytics Modeling module for database schema
|
ResponseContainerSchemaTables |
getSchemaTables(String guidDataSource,
String schema)
Get tables for schema.
|
public DatabaseContextHandler(OMEntityDao omEntityDao)
public List<ResponseContainerDatabase> getDatabases(Integer startFrom, Integer pageSize) throws AnalyticsModelingCheckedException
startFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnAnalyticsModelingCheckedException - in case of an repository operation failure.public List<ResponseContainerDatabaseSchema> getDatabaseSchemas(String guidDataSource, Integer startFrom, Integer pageSize) throws AnalyticsModelingCheckedException
guidDataSource - defines databasestartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnAnalyticsModelingCheckedException - in case of an repository operation failure.public ResponseContainerSchemaTables getSchemaTables(String guidDataSource, String schema) throws AnalyticsModelingCheckedException
guidDataSource - of the schema.schema - name.AnalyticsModelingCheckedException - if failedpublic ResponseContainerModule getModule(String databaseGuid, String catalog, String schema) throws AnalyticsModelingCheckedException
databaseGuid - of the modulecatalog - of the moduleschema - of the moduleAnalyticsModelingCheckedException - in case of an repository operation failure.Copyright © 2018–2020 ODPi. All rights reserved.