public class DataEngineRelationalDataHandler extends Object
| Constructor and Description |
|---|
DataEngineRelationalDataHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
RelationalDataHandler<Database,DatabaseSchema,RelationalTable,RelationalTable,RelationalColumn,SchemaType> relationalDataHandler,
DataEngineRegistrationHandler registrationHandler,
DataEngineCommonHandler dataEngineCommonHandler,
DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeDatabase(String userId,
String databaseGUID,
String externalSourceName,
DeleteSemantic deleteSemantic)
Remove the database
|
void |
removeRelationalTable(String userId,
String relationalTableGUID,
String externalSourceName,
DeleteSemantic deleteSemantic)
Remove the relational table
|
String |
upsertDatabase(String userId,
Database database,
String externalSourceName)
Create or update the database
|
String |
upsertRelationalTable(String userId,
String databaseQualifiedName,
RelationalTable relationalTable,
String externalSourceName)
Create or update the relational table
|
public DataEngineRelationalDataHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RelationalDataHandler<Database,DatabaseSchema,RelationalTable,RelationalTable,RelationalColumn,SchemaType> relationalDataHandler, DataEngineRegistrationHandler registrationHandler, DataEngineCommonHandler dataEngineCommonHandler, DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler)
serviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectsrelationalDataHandler - provides utilities for manipulating the repository services assetsdataEngineCommonHandler - provides utilities for manipulating entitiesregistrationHandler - creates software server capability entitiesdataEngineConnectionAndEndpointHandler - provides utilities specific for manipulating Connections and Endpointspublic String upsertDatabase(String userId, Database database, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userdatabase - the values of the databaseexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String upsertRelationalTable(String userId, String databaseQualifiedName, RelationalTable relationalTable, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userdatabaseQualifiedName - the database qualified namerelationalTable - the values of the relational tableexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeDatabase(String userId, String databaseGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userdatabaseGUID - unique identifier of the database to be removedexternalSourceName - the external data engine namedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.public void removeRelationalTable(String userId, String relationalTableGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userrelationalTableGUID - unique identifier of the relational table to be removedexternalSourceName - the external data engine namedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.