public class DatabaseManagerClient extends Object implements DatabaseManagerInterface
| Constructor and Description |
|---|
DatabaseManagerClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
DatabaseManagerClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
DatabaseManagerClient(String serverName,
String serverPlatformURLRoot,
DataManagerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server.
|
DatabaseManagerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
DatabaseManagerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addForeignKeyRelationship(String userId,
String databaseManagerGUID,
String databaseManagerName,
String primaryKeyColumnGUID,
String foreignKeyColumnGUID,
DatabaseForeignKeyProperties databaseForeignKeyProperties)
Create a foreign relationship between two columns.
|
String |
createDatabase(String userId,
String databaseManagerGUID,
String databaseManagerName,
DatabaseProperties databaseProperties)
Create a new metadata element to represent a database.
|
String |
createDatabaseColumn(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseTableGUID,
DatabaseColumnProperties databaseColumnProperties)
Create a new metadata element to represent a database column.
|
String |
createDatabaseColumnFromTemplate(String userId,
String databaseManagerGUID,
String databaseManagerName,
String templateGUID,
String databaseTableGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a database column using an existing metadata element as a template.
|
String |
createDatabaseFromTemplate(String userId,
String databaseManagerGUID,
String databaseManagerName,
String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a database using an existing metadata element as a template.
|
String |
createDatabaseSchema(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseGUID,
DatabaseSchemaProperties databaseSchemaProperties)
Create a new metadata element to represent a database schema.
|
String |
createDatabaseSchemaFromTemplate(String userId,
String databaseManagerGUID,
String databaseManagerName,
String templateGUID,
String databaseGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a database schema using an existing metadata element as a template.
|
String |
createDatabaseTable(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseSchemaGUID,
DatabaseTableProperties databaseTableProperties)
Create a new metadata element to represent a database table.
|
String |
createDatabaseTableFromTemplate(String userId,
String databaseManagerGUID,
String databaseManagerName,
String templateGUID,
String databaseSchemaGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a database table using an existing metadata element as a template.
|
String |
createDatabaseView(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseSchemaGUID,
DatabaseViewProperties databaseViewProperties)
Create a new metadata element to represent a database view.
|
String |
createDatabaseViewFromTemplate(String userId,
String databaseManagerGUID,
String databaseManagerName,
String templateGUID,
String databaseSchemaGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a database view using an existing metadata element as a template.
|
List<DatabaseColumnElement> |
findDatabaseColumns(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of database column metadata elements that contain the search string.
|
List<DatabaseElement> |
findDatabases(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of database metadata elements that contain the search string.
|
List<DatabaseSchemaElement> |
findDatabaseSchemas(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of database schema metadata elements that contain the search string.
|
List<DatabaseTableElement> |
findDatabaseTables(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of database table metadata elements that contain the search string.
|
List<DatabaseViewElement> |
findDatabaseViews(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of database view metadata elements that contain the search string.
|
List<DatabaseColumnElement> |
getColumnsForDatabaseTable(String userId,
String databaseTableGUID,
int startFrom,
int pageSize)
Retrieve the list of column for a database table (or view)
|
DatabaseElement |
getDatabaseByGUID(String userId,
String guid)
Retrieve the database metadata element with the supplied unique identifier.
|
DatabaseColumnElement |
getDatabaseColumnByGUID(String userId,
String guid)
Retrieve the database column metadata element with the supplied unique identifier.
|
List<DatabaseColumnElement> |
getDatabaseColumnsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of database column metadata elements with a matching qualified or display name.
|
List<DatabaseElement> |
getDatabasesByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of database metadata elements with a matching qualified or display name.
|
DatabaseSchemaElement |
getDatabaseSchemaByGUID(String userId,
String guid)
Retrieve the database schema metadata element with the supplied unique identifier.
|
List<DatabaseSchemaElement> |
getDatabaseSchemasByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of database schema metadata elements with a matching qualified or display name.
|
List<DatabaseElement> |
getDatabasesForDatabaseManager(String userId,
String databaseManagerGUID,
String databaseManagerName,
int startFrom,
int pageSize)
Retrieve the list of databases created by this caller.
|
DatabaseTableElement |
getDatabaseTableByGUID(String userId,
String guid)
Retrieve the database table metadata element with the supplied unique identifier.
|
List<DatabaseTableElement> |
getDatabaseTablesByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of database table metadata elements with a matching qualified or display name.
|
DatabaseViewElement |
getDatabaseViewByGUID(String userId,
String guid)
Retrieve the database view metadata element with the supplied unique identifier.
|
List<DatabaseViewElement> |
getDatabaseViewsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of database view metadata elements with a matching qualified or display name.
|
List<DatabaseSchemaElement> |
getSchemasForDatabase(String userId,
String databaseGUID,
int startFrom,
int pageSize)
Return the list of schemas associated with a database.
|
List<DatabaseTableElement> |
getTablesForDatabaseSchema(String userId,
String databaseSchemaGUID,
int startFrom,
int pageSize)
Retrieve the list of database tables associated with a database schema.
|
List<DatabaseViewElement> |
getViewsForDatabaseSchema(String userId,
String databaseSchemaGUID,
int startFrom,
int pageSize)
Retrieve the list of database views associated with a database schema.
|
void |
publishDatabase(String userId,
String databaseGUID)
Update the zones for the database asset so that it becomes visible to consumers.
|
void |
publishDatabaseSchema(String userId,
String databaseSchemaGUID)
Update the zones for the database asset so that it becomes visible to consumers.
|
void |
removeDatabase(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseGUID,
String qualifiedName)
Remove the metadata element representing a database.
|
void |
removeDatabaseColumn(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseColumnGUID,
String qualifiedName)
Remove the metadata element representing a database column.
|
void |
removeDatabaseSchema(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseSchemaGUID,
String qualifiedName)
Remove the metadata element representing a database schema.
|
void |
removeDatabaseTable(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseTableGUID,
String qualifiedName)
Remove the metadata element representing a database table.
|
void |
removeDatabaseView(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseViewGUID,
String qualifiedName)
Remove the metadata element representing a database table.
|
void |
removeForeignKeyRelationship(String userId,
String databaseManagerGUID,
String databaseManagerName,
String primaryKeyColumnGUID,
String foreignKeyColumnGUID)
Remove the foreign key relationship for the requested columns.
|
void |
removePrimaryKeyFromColumn(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseColumnGUID)
Remove the classification that this column is a primary key.
|
void |
setPrimaryKeyOnColumn(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseColumnGUID,
DatabasePrimaryKeyProperties databasePrimaryKeyProperties)
Classify a column in a database table as the primary key.
|
void |
updateDatabase(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseGUID,
DatabaseProperties databaseProperties)
Update the metadata element representing a database.
|
void |
updateDatabaseColumn(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseColumnGUID,
DatabaseColumnProperties databaseColumnProperties)
Update the metadata element representing a database column.
|
void |
updateDatabaseSchema(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseSchemaGUID,
DatabaseSchemaProperties databaseSchemaProperties)
Update the metadata element representing a database schema.
|
void |
updateDatabaseTable(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseTableGUID,
DatabaseTableProperties databaseTableProperties)
Update the metadata element representing a database table.
|
void |
updateDatabaseView(String userId,
String databaseManagerGUID,
String databaseManagerName,
String databaseViewGUID,
DatabaseViewProperties databaseViewProperties)
Update the metadata element representing a database table.
|
void |
withdrawDatabase(String userId,
String databaseGUID)
Update the zones for the database asset so that it is no longer visible to consumers.
|
void |
withdrawDatabaseSchema(String userId,
String databaseSchemaGUID)
Update the zones for the database asset so that it is no longer visible to consumers.
|
public DatabaseManagerClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public DatabaseManagerClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public DatabaseManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public DatabaseManagerClient(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public DatabaseManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String createDatabase(String userId, String databaseManagerGUID, String databaseManagerName, DatabaseProperties databaseProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabase in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseProperties - properties to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseFromTemplate in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMStemplateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateDatabase(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, DatabaseProperties databaseProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDatabase in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseGUID - unique identifier of the metadata element to updatedatabaseProperties - new properties for this elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void publishDatabase(String userId, String databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishDatabase in interface DatabaseManagerInterfaceuserId - calling userdatabaseGUID - unique identifier of the metadata element to publishInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void withdrawDatabase(String userId, String databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawDatabase in interface DatabaseManagerInterfaceuserId - calling userdatabaseGUID - unique identifier of the metadata element to withdrawInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeDatabase(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeDatabase in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseElement> findDatabases(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findDatabases in interface DatabaseManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseElement> getDatabasesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabasesByName in interface DatabaseManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseElement> getDatabasesForDatabaseManager(String userId, String databaseManagerGUID, String databaseManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabasesForDatabaseManager in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the database manager (DBMS)databaseManagerName - unique name of software server capability representing the database manager (DBMS)startFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public DatabaseElement getDatabaseByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseByGUID in interface DatabaseManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseSchema(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, DatabaseSchemaProperties databaseSchemaProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseGUID - unique identifier of the database where the schema is locateddatabaseSchemaProperties - properties about the database schemaInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseSchemaFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseSchemaFromTemplate in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMStemplateGUID - unique identifier of the metadata element to copydatabaseGUID - unique identifier of the database where the schema is locatedtemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateDatabaseSchema(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, DatabaseSchemaProperties databaseSchemaProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseSchemaGUID - unique identifier of the metadata element to updatedatabaseSchemaProperties - new properties for the metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void publishDatabaseSchema(String userId, String databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseSchemaGUID - unique identifier of the metadata element to publishInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void withdrawDatabaseSchema(String userId, String databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseSchemaGUID - unique identifier of the metadata element to withdrawInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeDatabaseSchema(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseSchemaGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseSchemaElement> findDatabaseSchemas(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findDatabaseSchemas in interface DatabaseManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseSchemaElement> getSchemasForDatabase(String userId, String databaseGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSchemasForDatabase in interface DatabaseManagerInterfaceuserId - calling userdatabaseGUID - unique identifier of the database to querystartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseSchemaElement> getDatabaseSchemasByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseSchemasByName in interface DatabaseManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public DatabaseSchemaElement getDatabaseSchemaByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseSchemaByGUID in interface DatabaseManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseTable(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseTable in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseSchemaGUID - unique identifier of the database schema where the database table is located.databaseTableProperties - properties for the database tableInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseTableFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseSchemaGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseTableFromTemplate in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMStemplateGUID - unique identifier of the metadata element to copydatabaseSchemaGUID - unique identifier of the database schema where the database table is located.templateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateDatabaseTable(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDatabaseTable in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseTableGUID - unique identifier of the database table to updatedatabaseTableProperties - new properties for the database tableInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeDatabaseTable(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeDatabaseTable in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseTableGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseTableElement> findDatabaseTables(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findDatabaseTables in interface DatabaseManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseTableElement> getTablesForDatabaseSchema(String userId, String databaseSchemaGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getTablesForDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseSchemaGUID - unique identifier of the database schema of intereststartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseTableElement> getDatabaseTablesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseTablesByName in interface DatabaseManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public DatabaseTableElement getDatabaseTableByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseTableByGUID in interface DatabaseManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseView(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseView in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseSchemaGUID - unique identifier of the database schema where the database view is located.databaseViewProperties - properties for the new viewInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseViewFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseSchemaGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseViewFromTemplate in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMStemplateGUID - unique identifier of the metadata element to copydatabaseSchemaGUID - unique identifier of the database schema where the database view is located.templateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateDatabaseView(String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDatabaseView in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseViewGUID - unique identifier of the database view to updatedatabaseViewProperties - properties for the new database viewInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeDatabaseView(String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeDatabaseView in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseViewGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseViewElement> findDatabaseViews(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findDatabaseViews in interface DatabaseManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseViewElement> getViewsForDatabaseSchema(String userId, String databaseSchemaGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getViewsForDatabaseSchema in interface DatabaseManagerInterfaceuserId - calling userdatabaseSchemaGUID - unique identifier of the database schema of intereststartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseViewElement> getDatabaseViewsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseViewsByName in interface DatabaseManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public DatabaseViewElement getDatabaseViewByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseViewByGUID in interface DatabaseManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, DatabaseColumnProperties databaseColumnProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseColumn in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseTableGUID - unique identifier of the database table where this column is locateddatabaseColumnProperties - properties for the new columnInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDatabaseColumnFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseTableGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDatabaseColumnFromTemplate in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMStemplateGUID - unique identifier of the metadata element to copydatabaseTableGUID - unique identifier of the database table where this column is locatedtemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateDatabaseColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, DatabaseColumnProperties databaseColumnProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDatabaseColumn in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseColumnGUID - unique identifier of the metadata element to updatedatabaseColumnProperties - new properties for the metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeDatabaseColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeDatabaseColumn in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseColumnGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseColumnElement> findDatabaseColumns(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findDatabaseColumns in interface DatabaseManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseColumnElement> getColumnsForDatabaseTable(String userId, String databaseTableGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getColumnsForDatabaseTable in interface DatabaseManagerInterfaceuserId - calling userdatabaseTableGUID - unique identifier of the database table of intereststartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DatabaseColumnElement> getDatabaseColumnsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseColumnsByName in interface DatabaseManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public DatabaseColumnElement getDatabaseColumnByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDatabaseColumnByGUID in interface DatabaseManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setPrimaryKeyOnColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, DatabasePrimaryKeyProperties databasePrimaryKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setPrimaryKeyOnColumn in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseColumnGUID - unique identifier if the primary key columndatabasePrimaryKeyProperties - properties to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removePrimaryKeyFromColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removePrimaryKeyFromColumn in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSdatabaseColumnGUID - unique identifier if the primary key columnInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void addForeignKeyRelationship(String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID, DatabaseForeignKeyProperties databaseForeignKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addForeignKeyRelationship in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSprimaryKeyColumnGUID - unique identifier of the column containing the primary keyforeignKeyColumnGUID - unique identifier of the column containing the primary key from the other tabledatabaseForeignKeyProperties - properties about the foreign key relationshipInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeForeignKeyRelationship(String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeForeignKeyRelationship in interface DatabaseManagerInterfaceuserId - calling userdatabaseManagerGUID - unique identifier of software server capability representing the DBMSdatabaseManagerName - unique name of software server capability representing the DBMSprimaryKeyColumnGUID - unique identifier of the column that is the linked primary keyforeignKeyColumnGUID - unique identifier of the column the contains the primary key from another tableInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.