Class DataEngineRelationalDataHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRelationalDataHandler
-
public class DataEngineRelationalDataHandler extends Object
DataEngineRelationalDataHandler manages Databases and RelationalTables objects from the property server. It runs server-side in the DataEngine OMAS and creates entities and relationships through the OMRSRepositoryConnector.
-
-
Constructor Summary
Constructors Constructor 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveDatabase(String userId, String databaseGUID, String externalSourceName, DeleteSemantic deleteSemantic)Remove the databasevoidremoveRelationalTable(String userId, String relationalTableGUID, String externalSourceName, DeleteSemantic deleteSemantic)Remove the relational tableStringupsertDatabase(String userId, Database database, String externalSourceName)Create or update the databaseStringupsertRelationalTable(String userId, String databaseQualifiedName, RelationalTable relationalTable, String externalSourceName)Create or update the relational table
-
-
-
Constructor Detail
-
DataEngineRelationalDataHandler
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)
Construct the handler information needed to interact with the repository services- Parameters:
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 Endpoints
-
-
Method Detail
-
upsertDatabase
public String upsertDatabase(String userId, Database database, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create or update the database- Parameters:
userId- the name of the calling userdatabase- the values of the databaseexternalSourceName- the unique name of the external source- Returns:
- unique identifier of the database in the repository
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
upsertRelationalTable
public String upsertRelationalTable(String userId, String databaseQualifiedName, RelationalTable relationalTable, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create or update the relational table- Parameters:
userId- the name of the calling userdatabaseQualifiedName- the database qualified namerelationalTable- the values of the relational tableexternalSourceName- the unique name of the external source- Returns:
- unique identifier of the relationa table in the repository
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
removeDatabase
public void removeDatabase(String userId, String databaseGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Remove the database- Parameters:
userId- the name of the calling userdatabaseGUID- unique identifier of the database to be removedexternalSourceName- the external data engine namedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.
-
removeRelationalTable
public void removeRelationalTable(String userId, String relationalTableGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Remove the relational table- Parameters:
userId- the name of the calling userrelationalTableGUID- unique identifier of the relational table to be removedexternalSourceName- the external data engine namedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.
-
-