Interface DatabaseManagerInterface
- All Known Implementing Classes:
DatabaseManagerClient
public interface DatabaseManagerInterface
DatabaseManagerInterface defines the client side interface for the Data Manager OMAS that is
relevant for relational database assets. It provides the ability to
define and maintain the metadata about a database and the schemas (tables and columns) it contains.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addForeignKeyRelationship
(String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID, DatabaseForeignKeyProperties databaseForeignKeyProperties) Create a foreign relationship between two columns.void
attachSchemaTypeToDatabaseAsset
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseAssetGUID, String schemaTypeGUID) Link the schema type and asset.createDatabase
(String userId, String databaseManagerGUID, String databaseManagerName, DatabaseProperties databaseProperties) Create a new metadata element to represent a database.createDatabaseColumn
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, DatabaseColumnProperties databaseColumnProperties) Create a new metadata element to represent a database column.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.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.createDatabaseSchema
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, DatabaseSchemaProperties databaseSchemaProperties) Create a new metadata element to represent a database schema.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.createDatabaseSchemaType
(String userId, String databaseManagerGUID, String databaseManagerName, String qualifiedName) Create a database top-level schema type used to attach tables and views to the database/database schema.createDatabaseTable
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseAssetGUID, DatabaseTableProperties databaseTableProperties) Create a new metadata element to represent a database table.createDatabaseTableForSchemaType
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaTypeGUID, DatabaseTableProperties databaseTableProperties) Create a new metadata element to represent a database table.createDatabaseTableFromTemplate
(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseAssetGUID, TemplateProperties templateProperties) Create a new metadata element to represent a database table using an existing metadata element as a template.createDatabaseView
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseAssetGUID, DatabaseViewProperties databaseViewProperties) Create a new metadata element to represent a database view.createDatabaseViewForSchemaType
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaTypeGUID, DatabaseViewProperties databaseViewProperties) Create a new metadata element to represent a database view.createDatabaseViewFromTemplate
(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseAssetGUID, TemplateProperties templateProperties) Create a new metadata element to represent a database view using an existing metadata element as a template.findDatabaseColumns
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of database column metadata elements that contain the search string.findDatabases
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of database metadata elements that contain the search string.findDatabaseSchemas
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of database schema metadata elements that contain the search string.findDatabaseTables
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of database table metadata elements that contain the search string.findDatabaseViews
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of database view metadata elements that contain the search string.getColumnsForDatabaseTable
(String userId, String databaseTableGUID, int startFrom, int pageSize) Retrieve the list of column for a database table (or view)getDatabaseByGUID
(String userId, String guid) Retrieve the database metadata element with the supplied unique identifier.getDatabaseColumnByGUID
(String userId, String guid) Retrieve the database column metadata element with the supplied unique identifier.getDatabaseColumnsByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of database column metadata elements with a matching qualified or display name.getDatabasesByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of database metadata elements with a matching qualified or display name.getDatabaseSchemaByGUID
(String userId, String guid) Retrieve the database schema metadata element with the supplied unique identifier.getDatabaseSchemasByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of database schema metadata elements with a matching qualified or display name.getDatabasesForDatabaseManager
(String userId, String databaseManagerGUID, String databaseManagerName, int startFrom, int pageSize) Retrieve the list of databases created by this caller.getDatabaseTableByGUID
(String userId, String guid) Retrieve the database table metadata element with the supplied unique identifier.getDatabaseTablesByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of database table metadata elements with a matching qualified or display name.getDatabaseViewByGUID
(String userId, String guid) Retrieve the database view metadata element with the supplied unique identifier.getDatabaseViewsByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of database view metadata elements with a matching qualified or display name.getSchemasForDatabase
(String userId, String databaseGUID, int startFrom, int pageSize) Return the list of schemas associated with a database.getTablesForDatabaseAsset
(String userId, String databaseAssetGUID, int startFrom, int pageSize) Retrieve the list of database tables associated with a database or database schema.getTablesForDatabaseSchema
(String userId, String databaseSchemaGUID, int startFrom, int pageSize) Deprecated.getViewsForDatabaseAsset
(String userId, String databaseAssetGUID, int startFrom, int pageSize) Retrieve the list of database views associated with a database or database schema.getViewsForDatabaseSchema
(String userId, String databaseSchemaGUID, int startFrom, int pageSize) Deprecated.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) Remove the metadata element representing a database.void
removeDatabaseColumn
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID) Remove the metadata element representing a database column.void
removeDatabaseSchema
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID) Remove the metadata element representing a database schema.void
removeDatabaseTable
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID) Remove the metadata element representing a database table.void
removeDatabaseView
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID) 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, boolean isMergeUpdate, DatabaseProperties databaseProperties) Update the metadata element representing a database.void
updateDatabaseColumn
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, boolean isMergeUpdate, DatabaseColumnProperties databaseColumnProperties) Update the metadata element representing a database column.void
updateDatabaseSchema
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, boolean isMergeUpdate, DatabaseSchemaProperties databaseSchemaProperties) Update the metadata element representing a database schema.void
updateDatabaseTable
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, boolean isMergeUpdate, DatabaseTableProperties databaseTableProperties) Update the metadata element representing a database table.void
updateDatabaseView
(String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID, boolean isMergeUpdate, 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.
-
Method Details
-
createDatabase
String createDatabase(String userId, String databaseManagerGUID, String databaseManagerName, DatabaseProperties databaseProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseProperties
- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- 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)
-
createDatabaseFromTemplate
String createDatabaseFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database using an existing metadata element as a template.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- 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)
-
updateDatabase
void updateDatabase(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, boolean isMergeUpdate, DatabaseProperties databaseProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a database.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?databaseProperties
- new properties for this element- Throws:
InvalidParameterException
- 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)
-
publishDatabase
void publishDatabase(String userId, String databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for the database asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Data Manager OMAS).- Parameters:
userId
- calling userdatabaseGUID
- unique identifier of the metadata element to publish- Throws:
InvalidParameterException
- 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)
-
withdrawDatabase
void withdrawDatabase(String userId, String databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for the database asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Data Manager OMAS. This is the setting when the database is first created).- Parameters:
userId
- calling userdatabaseGUID
- unique identifier of the metadata element to withdraw- Throws:
InvalidParameterException
- 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)
-
removeDatabase
void removeDatabase(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a database.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- 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)
-
findDatabases
List<DatabaseElement> findDatabases(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabasesByName
List<DatabaseElement> getDatabasesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabasesForDatabaseManager
List<DatabaseElement> getDatabasesForDatabaseManager(String userId, String databaseManagerGUID, String databaseManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of databases created by this caller.- Parameters:
userId
- 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 returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseByGUID
DatabaseElement getDatabaseByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the database metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- 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)
-
createDatabaseSchema
String createDatabaseSchema(String userId, String databaseManagerGUID, String databaseManagerName, String databaseGUID, DatabaseSchemaProperties databaseSchemaProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database schema.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseGUID
- unique identifier of the database where the schema is locateddatabaseSchemaProperties
- properties about the database schema- Returns:
- unique identifier of the new database schema
- Throws:
InvalidParameterException
- 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)
-
createDatabaseSchemaFromTemplate
String createDatabaseSchemaFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database schema using an existing metadata element as a template.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copydatabaseGUID
- unique identifier of the database where the schema is locatedtemplateProperties
- properties that override the template- Returns:
- unique identifier of the new database schema
- Throws:
InvalidParameterException
- 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)
-
updateDatabaseSchema
void updateDatabaseSchema(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID, boolean isMergeUpdate, DatabaseSchemaProperties databaseSchemaProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a database schema.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseSchemaGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?databaseSchemaProperties
- new properties for the metadata element- Throws:
InvalidParameterException
- 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)
-
publishDatabaseSchema
void publishDatabaseSchema(String userId, String databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for the database asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Data Manager OMAS).- Parameters:
userId
- calling userdatabaseSchemaGUID
- unique identifier of the metadata element to publish- Throws:
InvalidParameterException
- 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)
-
withdrawDatabaseSchema
void withdrawDatabaseSchema(String userId, String databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for the database asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Data Manager OMAS. This is the setting when the database is first created).- Parameters:
userId
- calling userdatabaseSchemaGUID
- unique identifier of the metadata element to withdraw- Throws:
InvalidParameterException
- 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)
-
removeDatabaseSchema
void removeDatabaseSchema(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a database schema.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseSchemaGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- 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)
-
findDatabaseSchemas
List<DatabaseSchemaElement> findDatabaseSchemas(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database schema metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getSchemasForDatabase
List<DatabaseSchemaElement> getSchemasForDatabase(String userId, String databaseGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of schemas associated with a database.- Parameters:
userId
- calling userdatabaseGUID
- unique identifier of the database to querystartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of metadata elements describing the schemas associated with the requested database
- Throws:
InvalidParameterException
- 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)
-
getDatabaseSchemasByName
List<DatabaseSchemaElement> getDatabaseSchemasByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database schema metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseSchemaByGUID
DatabaseSchemaElement getDatabaseSchemaByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the database schema metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
InvalidParameterException
- 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)
-
createDatabaseSchemaType
String createDatabaseSchemaType(String userId, String databaseManagerGUID, String databaseManagerName, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a database top-level schema type used to attach tables and views to the database/database schema.- Parameters:
userId
- calling userdatabaseManagerGUID
- guid of the software server capability entity that represented the external source - null for localdatabaseManagerName
- name of the software server capability entity that represented the external source - null for localqualifiedName
- qualified name ofr the schema type - suggest "SchemaOf:" + asset's qualified name- Returns:
- unique identifier of the database schema type
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
attachSchemaTypeToDatabaseAsset
void attachSchemaTypeToDatabaseAsset(String userId, String databaseManagerGUID, String databaseManagerName, String databaseAssetGUID, String schemaTypeGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Link the schema type and asset. This is called from outside AssetHandler. The databaseAssetGUID is checked to ensure the asset exists and updates are allowed. If there is already a schema attached, it is deleted.- Parameters:
userId
- calling userdatabaseManagerGUID
- guid of the software server capability entity that represented the external source - null for localdatabaseManagerName
- name of the software server capability entity that represented the external source - null for localdatabaseAssetGUID
- unique identifier of the asset to connect the schema toschemaTypeGUID
- identifier for schema Type object- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createDatabaseTable
String createDatabaseTable(String userId, String databaseManagerGUID, String databaseManagerName, String databaseAssetGUID, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database table.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseAssetGUID
- unique identifier of the database or schema where the database table is located.databaseTableProperties
- properties for the database table- Returns:
- unique identifier of the new metadata element for the database table
- Throws:
InvalidParameterException
- 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)
-
createDatabaseTableFromTemplate
String createDatabaseTableFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseAssetGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database table using an existing metadata element as a template.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copydatabaseAssetGUID
- unique identifier of the database or database schema where the database table is located.templateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element for the database table
- Throws:
InvalidParameterException
- 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)
-
createDatabaseTableForSchemaType
String createDatabaseTableForSchemaType(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaTypeGUID, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database table.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the DBMSdatabaseManagerName
- unique name of software server capability representing the DBMSdatabaseSchemaTypeGUID
- unique identifier of the database or database schema where the database table is locateddatabaseTableProperties
- properties for the database table- Returns:
- unique identifier of the new metadata element for the database table
- Throws:
InvalidParameterException
- 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)
-
updateDatabaseTable
void updateDatabaseTable(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, boolean isMergeUpdate, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a database table.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseTableGUID
- unique identifier of the database table to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?databaseTableProperties
- new properties for the database table- Throws:
InvalidParameterException
- 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)
-
removeDatabaseTable
void removeDatabaseTable(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a database table.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseTableGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- 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)
-
findDatabaseTables
List<DatabaseTableElement> findDatabaseTables(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database table metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getTablesForDatabaseSchema
@Deprecated List<DatabaseTableElement> getTablesForDatabaseSchema(String userId, String databaseSchemaGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Deprecated.Retrieve the list of database tables associated with a database schema.- Parameters:
userId
- calling userdatabaseSchemaGUID
- unique identifier of the database schema of intereststartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException
- 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)
-
getTablesForDatabaseAsset
List<DatabaseTableElement> getTablesForDatabaseAsset(String userId, String databaseAssetGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database tables associated with a database or database schema.- Parameters:
userId
- calling userdatabaseAssetGUID
- unique identifier of the database or database schema of intereststartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseTablesByName
List<DatabaseTableElement> getDatabaseTablesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database table metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseTableByGUID
DatabaseTableElement getDatabaseTableByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the database table metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- 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)
-
createDatabaseView
String createDatabaseView(String userId, String databaseManagerGUID, String databaseManagerName, String databaseAssetGUID, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database view.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseAssetGUID
- unique identifier of the database or database schema where the database view is located.databaseViewProperties
- properties for the new view- Returns:
- unique identifier of the new metadata element for the database view
- Throws:
InvalidParameterException
- 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)
-
createDatabaseViewFromTemplate
String createDatabaseViewFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseAssetGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database view using an existing metadata element as a template.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copydatabaseAssetGUID
- unique identifier of the database or database schema where the database view is located.templateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element for the database view
- Throws:
InvalidParameterException
- 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)
-
createDatabaseViewForSchemaType
String createDatabaseViewForSchemaType(String userId, String databaseManagerGUID, String databaseManagerName, String databaseSchemaTypeGUID, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database view.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the DBMSdatabaseManagerName
- unique name of software server capability representing the DBMSdatabaseSchemaTypeGUID
- unique identifier of the schema type where the database view is located.databaseViewProperties
- properties for the new view- Returns:
- unique identifier of the new metadata element for the database view
- Throws:
InvalidParameterException
- 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)
-
updateDatabaseView
void updateDatabaseView(String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID, boolean isMergeUpdate, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a database table.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseViewGUID
- unique identifier of the database view to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?databaseViewProperties
- properties for the new database view- Throws:
InvalidParameterException
- 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)
-
removeDatabaseView
void removeDatabaseView(String userId, String databaseManagerGUID, String databaseManagerName, String databaseViewGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a database table.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseViewGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- 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)
-
findDatabaseViews
List<DatabaseViewElement> findDatabaseViews(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database view metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getViewsForDatabaseSchema
@Deprecated List<DatabaseViewElement> getViewsForDatabaseSchema(String userId, String databaseSchemaGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Deprecated.Retrieve the list of database views associated with a database schema.- Parameters:
userId
- calling userdatabaseSchemaGUID
- unique identifier of the database schema of intereststartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException
- 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)
-
getViewsForDatabaseAsset
List<DatabaseViewElement> getViewsForDatabaseAsset(String userId, String databaseAssetGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database views associated with a database or database schema.- Parameters:
userId
- calling userdatabaseAssetGUID
- unique identifier of the database or database schema of intereststartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseViewsByName
List<DatabaseViewElement> getDatabaseViewsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database view metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseViewByGUID
DatabaseViewElement getDatabaseViewByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the database view metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- 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)
-
createDatabaseColumn
String createDatabaseColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseTableGUID, DatabaseColumnProperties databaseColumnProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database column.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseTableGUID
- unique identifier of the database table where this column is locateddatabaseColumnProperties
- properties for the new column- Returns:
- unique identifier of the new metadata element for the new database column
- Throws:
InvalidParameterException
- 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)
-
createDatabaseColumnFromTemplate
String createDatabaseColumnFromTemplate(String userId, String databaseManagerGUID, String databaseManagerName, String templateGUID, String databaseTableGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a database column using an existing metadata element as a template.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copydatabaseTableGUID
- unique identifier of the database table where this column is locatedtemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element for the database column
- Throws:
InvalidParameterException
- 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)
-
updateDatabaseColumn
void updateDatabaseColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, boolean isMergeUpdate, DatabaseColumnProperties databaseColumnProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a database column.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseColumnGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?databaseColumnProperties
- new properties for the metadata element- Throws:
InvalidParameterException
- 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)
-
removeDatabaseColumn
void removeDatabaseColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a database column.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseColumnGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- 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)
-
findDatabaseColumns
List<DatabaseColumnElement> findDatabaseColumns(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database column metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getColumnsForDatabaseTable
List<DatabaseColumnElement> getColumnsForDatabaseTable(String userId, String databaseTableGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of column for a database table (or view)- Parameters:
userId
- calling userdatabaseTableGUID
- unique identifier of the database table of intereststartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseColumnsByName
List<DatabaseColumnElement> getDatabaseColumnsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database column metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- 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)
-
getDatabaseColumnByGUID
DatabaseColumnElement getDatabaseColumnByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the database column metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- 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)
-
setPrimaryKeyOnColumn
void setPrimaryKeyOnColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID, DatabasePrimaryKeyProperties databasePrimaryKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Classify a column in a database table as the primary key. This means each row has a different value in this column, and it can be used to uniquely identify the column.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseColumnGUID
- unique identifier if the primary key columndatabasePrimaryKeyProperties
- properties to store- Throws:
InvalidParameterException
- 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)
-
removePrimaryKeyFromColumn
void removePrimaryKeyFromColumn(String userId, String databaseManagerGUID, String databaseManagerName, String databaseColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the classification that this column is a primary key.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerdatabaseColumnGUID
- unique identifier if the primary key column- Throws:
InvalidParameterException
- 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)
-
addForeignKeyRelationship
void addForeignKeyRelationship(String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID, DatabaseForeignKeyProperties databaseForeignKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a foreign relationship between two columns. One of the columns holds the primary key of the other to form a link.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerprimaryKeyColumnGUID
- 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 relationship- Throws:
InvalidParameterException
- 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)
-
removeForeignKeyRelationship
void removeForeignKeyRelationship(String userId, String databaseManagerGUID, String databaseManagerName, String primaryKeyColumnGUID, String foreignKeyColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the foreign key relationship for the requested columns.- Parameters:
userId
- calling userdatabaseManagerGUID
- unique identifier of software server capability representing the callerdatabaseManagerName
- unique name of software server capability representing the callerprimaryKeyColumnGUID
- unique identifier of the column that is the linked primary keyforeignKeyColumnGUID
- unique identifier of the column the contains the primary key from another table- Throws:
InvalidParameterException
- 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)
-