public class DatabaseContextHandler extends Object
getDatabases(java.lang.String, 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, org.odpi.openmetadata.accessservices.analyticsmodeling.model.ModuleTableFilter)OMEntityDao| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_SOURCE_GUID |
| Constructor and Description |
|---|
DatabaseContextHandler(RelationalDataHandler<Database,Schema,Object,Object,Object,Object> relationalDataHandler,
OMEntityDao omEntityDao,
InvalidParameterHandler invalidParameterHandler) |
| Modifier and Type | Method and Description |
|---|---|
List<ResponseContainerDatabase> |
getDatabases(String userId,
Integer startFrom,
Integer pageSize)
Get list of databases on the server.
|
List<ResponseContainerDatabaseSchema> |
getDatabaseSchemas(String userId,
String guidDatabase,
Integer startFrom,
Integer pageSize)
Retrieve schemas for given database from repository.
|
ResponseContainerModule |
getModule(String databaseGuid,
String catalog,
String schema,
ModuleTableFilter filter)
Build Analytics Modeling module for database schema
|
ResponseContainerSchemaTables |
getSchemaTables(String guidDataSource,
String schema)
Get tables for schema.
|
public static final String DATA_SOURCE_GUID
public DatabaseContextHandler(RelationalDataHandler<Database,Schema,Object,Object,Object,Object> relationalDataHandler, OMEntityDao omEntityDao, InvalidParameterHandler invalidParameterHandler)
public List<ResponseContainerDatabase> getDatabases(String userId, Integer startFrom, Integer pageSize) throws AnalyticsModelingCheckedException
userId - for the call.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 userId, String guidDatabase, Integer startFrom, Integer pageSize) throws AnalyticsModelingCheckedException, InvalidParameterException
userId - for the call.guidDatabase - 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.InvalidParameterException - if passed GUID is invalid.public ResponseContainerSchemaTables getSchemaTables(String guidDataSource, String schema) throws AnalyticsModelingCheckedException, InvalidParameterException
guidDataSource - of the schema.schema - name.AnalyticsModelingCheckedException - if failedInvalidParameterException - if passed GUID is invalid.public ResponseContainerModule getModule(String databaseGuid, String catalog, String schema, ModuleTableFilter filter) throws AnalyticsModelingCheckedException, InvalidParameterException
databaseGuid - of the modulecatalog - of the moduleschema - of the modulefilter - contains optional table filterAnalyticsModelingCheckedException - in case of an repository operation failure.InvalidParameterException - if passed GUID is invalid.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.