public class DatabaseIntegratorContext extends Object
| Constructor and Description |
|---|
DatabaseIntegratorContext(DatabaseManagerClient client,
DataManagerEventClient eventClient,
String userId,
String databaseManagerGUID,
String databaseManagerName)
Create a new client with no authentication embedded in the HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addForeignKeyRelationship(String primaryKeyColumnGUID,
String foreignKeyColumnGUID,
DatabaseForeignKeyProperties databaseForeignKeyProperties)
Create a foreign relationship between two columns.
|
String |
createDatabase(DatabaseProperties databaseProperties)
Create a new metadata element to represent a database.
|
String |
createDatabaseColumn(String databaseTableGUID,
DatabaseColumnProperties databaseColumnProperties)
Create a new metadata element to represent a database column.
|
String |
createDatabaseColumnFromTemplate(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 templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a database using an existing metadata element as a template.
|
String |
createDatabaseSchema(String databaseGUID,
DatabaseSchemaProperties databaseSchemaProperties)
Create a new metadata element to represent a database schema.
|
String |
createDatabaseSchemaFromTemplate(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 databaseSchemaGUID,
DatabaseTableProperties databaseTableProperties)
Create a new metadata element to represent a database table.
|
String |
createDatabaseTableFromTemplate(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 databaseSchemaGUID,
DatabaseViewProperties databaseViewProperties)
Create a new metadata element to represent a database view.
|
String |
createDatabaseViewFromTemplate(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 searchString,
int startFrom,
int pageSize)
Retrieve the list of database column metadata elements that contain the search string.
|
List<DatabaseElement> |
findDatabases(String searchString,
int startFrom,
int pageSize)
Retrieve the list of database metadata elements that contain the search string.
|
List<DatabaseSchemaElement> |
findDatabaseSchemas(String searchString,
int startFrom,
int pageSize)
Retrieve the list of database schema metadata elements that contain the search string.
|
List<DatabaseTableElement> |
findDatabaseTables(String searchString,
int startFrom,
int pageSize)
Retrieve the list of database table metadata elements that contain the search string.
|
List<DatabaseViewElement> |
findDatabaseViews(String searchString,
int startFrom,
int pageSize)
Retrieve the list of database view metadata elements that contain the search string.
|
List<DatabaseColumnElement> |
getColumnsForDatabaseTable(String databaseTableGUID,
int startFrom,
int pageSize)
Retrieve the list of column for a database table (or view)
|
DatabaseElement |
getDatabaseByGUID(String guid)
Retrieve the database metadata element with the supplied unique identifier.
|
DatabaseColumnElement |
getDatabaseColumnByGUID(String guid)
Retrieve the database column metadata element with the supplied unique identifier.
|
List<DatabaseColumnElement> |
getDatabaseColumnsByName(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 name,
int startFrom,
int pageSize)
Retrieve the list of database metadata elements with a matching qualified or display name.
|
DatabaseSchemaElement |
getDatabaseSchemaByGUID(String guid)
Retrieve the database schema metadata element with the supplied unique identifier.
|
List<DatabaseSchemaElement> |
getDatabaseSchemasByName(String name,
int startFrom,
int pageSize)
Retrieve the list of database schema metadata elements with a matching qualified or display name.
|
DatabaseTableElement |
getDatabaseTableByGUID(String guid)
Retrieve the database table metadata element with the supplied unique identifier.
|
List<DatabaseTableElement> |
getDatabaseTablesByName(String name,
int startFrom,
int pageSize)
Retrieve the list of database table metadata elements with a matching qualified or display name.
|
DatabaseViewElement |
getDatabaseViewByGUID(String guid)
Retrieve the database view metadata element with the supplied unique identifier.
|
List<DatabaseViewElement> |
getDatabaseViewsByName(String name,
int startFrom,
int pageSize)
Retrieve the list of database view metadata elements with a matching qualified or display name.
|
List<DatabaseElement> |
getMyDatabases(int startFrom,
int pageSize)
Retrieve the list of databases created by this caller.
|
List<DatabaseSchemaElement> |
getSchemasForDatabase(String databaseGUID,
int startFrom,
int pageSize)
Return the list of schemas associated with a database.
|
List<DatabaseTableElement> |
getTablesForDatabaseSchema(String databaseSchemaGUID,
int startFrom,
int pageSize)
Retrieve the list of database tables associated with a database schema.
|
List<DatabaseViewElement> |
getViewsForDatabaseSchema(String databaseSchemaGUID,
int startFrom,
int pageSize)
Retrieve the list of database views associated with a database schema.
|
void |
publishDatabase(String databaseGUID)
Update the zones for the database asset so that it becomes visible to consumers.
|
void |
publishDatabaseSchema(String databaseSchemaGUID)
Update the zones for the database asset so that it becomes visible to consumers.
|
void |
registerListener(DataManagerEventListener listener)
Register a listener object that will be passed each of the events published by
the Data Manager OMAS.
|
void |
removeDatabase(String databaseGUID,
String qualifiedName)
Remove the metadata element representing a database.
|
void |
removeDatabaseColumn(String databaseColumnGUID,
String qualifiedName)
Remove the metadata element representing a database column.
|
void |
removeDatabaseSchema(String databaseSchemaGUID,
String qualifiedName)
Remove the metadata element representing a database schema.
|
void |
removeDatabaseTable(String databaseTableGUID,
String qualifiedName)
Remove the metadata element representing a database table.
|
void |
removeDatabaseView(String databaseViewGUID,
String qualifiedName)
Remove the metadata element representing a database table.
|
void |
removeForeignKeyRelationship(String primaryKeyColumnGUID,
String foreignKeyColumnGUID)
Remove the foreign key relationship for the requested columns.
|
void |
removePrimaryKeyFromColumn(String databaseColumnGUID)
Remove the classification that this column is a primary key.
|
void |
setPrimaryKeyOnColumn(String databaseColumnGUID,
DatabasePrimaryKeyProperties databasePrimaryKeyProperties)
Classify a column in a database table as the primary key.
|
void |
updateDatabase(String databaseGUID,
DatabaseProperties databaseProperties)
Update the metadata element representing a database.
|
void |
updateDatabaseColumn(String databaseColumnGUID,
DatabaseColumnProperties databaseColumnProperties)
Update the metadata element representing a database column.
|
void |
updateDatabaseSchema(String databaseSchemaGUID,
DatabaseSchemaProperties databaseSchemaProperties)
Update the metadata element representing a database schema.
|
void |
updateDatabaseTable(String databaseTableGUID,
DatabaseTableProperties databaseTableProperties)
Update the metadata element representing a database table.
|
void |
updateDatabaseView(String databaseViewGUID,
DatabaseViewProperties databaseViewProperties)
Update the metadata element representing a database table.
|
void |
withdrawDatabase(String databaseGUID)
Update the zones for the database asset so that it is no longer visible to consumers.
|
void |
withdrawDatabaseSchema(String databaseSchemaGUID)
Update the zones for the database asset so that it is no longer visible to consumers.
|
public DatabaseIntegratorContext(DatabaseManagerClient client, DataManagerEventClient eventClient, String userId, String databaseManagerGUID, String databaseManagerName)
client - client to map request toeventClient - client to register for eventsuserId - integration daemon's userIddatabaseManagerGUID - unique identifier of the software server capability for the database managerdatabaseManagerName - unique name of the software server capability for the database managerpublic void registerListener(DataManagerEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
listener - listener objectInvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String createDatabase(DatabaseProperties databaseProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseProperties - 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 templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - 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 databaseGUID, DatabaseProperties databaseProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseGUID - 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 databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseGUID - 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 databaseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseGUID - 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 databaseGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseGUID - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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 name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - 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> getMyDatabases(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
guid - 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 databaseGUID, DatabaseSchemaProperties databaseSchemaProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseGUID - 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 templateGUID, String databaseGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - 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 databaseSchemaGUID, DatabaseSchemaProperties databaseSchemaProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 databaseSchemaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 databaseSchemaGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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 databaseGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseGUID - 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 name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - 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 guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
guid - 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 databaseSchemaGUID, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 templateGUID, String databaseSchemaGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - 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 databaseTableGUID, DatabaseTableProperties databaseTableProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseTableGUID - 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 databaseTableGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseTableGUID - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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 databaseSchemaGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - 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 guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
guid - 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 databaseSchemaGUID, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 templateGUID, String databaseSchemaGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - 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 databaseViewGUID, DatabaseViewProperties databaseViewProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseViewGUID - 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 databaseViewGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseViewGUID - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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 databaseSchemaGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseSchemaGUID - 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 name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - 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 guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
guid - 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 databaseTableGUID, DatabaseColumnProperties databaseColumnProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseTableGUID - 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 templateGUID, String databaseTableGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - 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 databaseColumnGUID, DatabaseColumnProperties databaseColumnProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseColumnGUID - 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 databaseColumnGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseColumnGUID - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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 databaseTableGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseTableGUID - 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 name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - 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 guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
guid - 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 databaseColumnGUID, DatabasePrimaryKeyProperties databasePrimaryKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseColumnGUID - 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 databaseColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
databaseColumnGUID - 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 primaryKeyColumnGUID, String foreignKeyColumnGUID, DatabaseForeignKeyProperties databaseForeignKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
primaryKeyColumnGUID - 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 primaryKeyColumnGUID, String foreignKeyColumnGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
primaryKeyColumnGUID - 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.