Class SchemaExchangeService
java.lang.Object
org.odpi.openmetadata.integrationservices.catalog.connector.SchemaExchangeService
- Direct Known Subclasses:
DataAssetExchangeService,LineageExchangeService
LineageExchangeService is the context for managing process definitions and lineage linkage.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearColumnAsPrimaryKey(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, Date effectiveTime) Remove the primary key designation from the schema attribute.voidclearForeignKeyRelationship(String primaryKeyGUID, String foreignKeyGUID, Date effectiveTime) Remove the foreign key relationship between two schema elements.voidclearSchemaElementAsCalculatedValue(String schemaElementGUID, String schemaElementExternalIdentifier, Date effectiveTime) Remove the calculated value designation from the schema element.voidclearSchemaElementRelationship(String endOneGUID, String endTwoGUID, String relationshipName, Date effectiveTime) Remove a relationship between two schema elements.voidclearSchemaTypeParent(String schemaTypeGUID, String parentElementGUID, String parentElementTypeName, Date effectiveTime) Remove the relationship between a schema type and its parent data asset, process or port.createSchemaAttribute(boolean assetManagerIsHome, String schemaElementGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaAttributeProperties schemaAttributeProperties, Date effectiveTime) Create a new metadata element to represent a schema attribute.createSchemaAttributeFromTemplate(boolean assetManagerIsHome, String schemaElementGUID, String templateGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.TemplateProperties templateProperties, Date effectiveTime) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.createSchemaType(boolean assetManagerIsHome, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaTypeProperties schemaTypeProperties) Create a new metadata element to represent a schema type.createSchemaTypeFromTemplate(boolean assetManagerIsHome, String templateGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.TemplateProperties templateProperties) Create a new metadata element to represent a schema type using an existing metadata element as a template.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement>findSchemaAttributes(String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of schema attribute metadata elements that contain the search string.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement>findSchemaType(String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of schema type metadata elements that contain the search string.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement>getNestedAttributes(String parentSchemaElementGUID, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of schema attributes associated with a schema element.org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElementgetSchemaAttributeByGUID(String schemaAttributeGUID, Date effectiveTime) Retrieve the schema attribute metadata element with the supplied unique identifier.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement>getSchemaAttributesByName(String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of schema attribute metadata elements with a matching qualified or display name.org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElementgetSchemaTypeByGUID(String schemaTypeGUID, Date effectiveTime) Retrieve the schema type metadata element with the supplied unique identifier.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement>getSchemaTypeByName(String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of schema type metadata elements with a matching qualified or display name.org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElementgetSchemaTypeForElement(String parentElementGUID, String parentElementTypeName, Date effectiveTime) Return the schema type associated with a specific open metadata element (data asset, process or port).org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeadergetSchemaTypeParent(String schemaTypeGUID, Date effectiveTime) Retrieve the header of the metadata element connected to a schema type.booleanReturn whether retrieval requests from this service are to avoid merging duplicates or not.booleanReturn whether retrieval requests from this service are to include elements with the Memento classification attached or not.voidremoveSchemaAttribute(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, Date effectiveTime) Remove the metadata element representing a schema attribute.voidremoveSchemaType(String schemaTypeGUID, String schemaTypeExternalIdentifier, Date effectiveTime) Remove the metadata element representing a schema type.voidsetForDuplicateProcessing(boolean forDuplicateProcessing) Set up whether retrieval requests from this service are to avoid merging duplicates or not.voidsetForLineage(boolean forLineage) Set up whether retrieval requests from this service are to include elements with the Memento classification attached or not.voidsetSchemaElementAsCalculatedValue(boolean assetManagerIsHome, String schemaElementGUID, String schemaElementExternalIdentifier, String formula, Date effectiveTime) Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.voidsetupColumnAsPrimaryKey(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String schemaAttributeGUID, String schemaAttributeExternalIdentifier, String primaryKeyName, org.odpi.openmetadata.accessservices.assetmanager.properties.KeyPattern primaryKeyPattern, Date effectiveTime) Classify the column schema attribute to indicate that it describes a primary key.voidsetupForeignKeyRelationship(boolean assetManagerIsHome, String primaryKeyGUID, String foreignKeyGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ForeignKeyProperties foreignKeyProperties, Date effectiveTime) Link two schema attributes together to show a foreign key relationship.voidsetupSchemaElementRelationship(boolean assetManagerIsHome, String endOneGUID, String endTwoGUID, String relationshipName, Date effectiveTime, org.odpi.openmetadata.accessservices.assetmanager.properties.RelationshipProperties properties) Create a relationship between two schema elements.voidsetupSchemaTypeParent(boolean assetManagerIsHome, String schemaTypeGUID, String parentElementGUID, String parentElementTypeName, org.odpi.openmetadata.accessservices.assetmanager.properties.RelationshipProperties properties, Date effectiveTime) Connect a schema type to a data asset, process or port.voidupdateForeignKeyRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryKeyGUID, String foreignKeyGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ForeignKeyProperties foreignKeyProperties, Date effectiveTime) Update the relationship properties for the query target.voidupdateSchemaAttribute(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaAttributeProperties schemaAttributeProperties, Date effectiveTime) Update the properties of the metadata element representing a schema attribute.voidupdateSchemaType(String schemaTypeGUID, String schemaTypeExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaTypeProperties schemaTypeProperties, Date effectiveTime) Update the metadata element representing a schema type.
-
Method Details
-
isForLineage
public boolean isForLineage()Return whether retrieval requests from this service are to include elements with the Memento classification attached or not.- Returns:
- boolean flag
-
setForLineage
public void setForLineage(boolean forLineage) Set up whether retrieval requests from this service are to include elements with the Memento classification attached or not.- Parameters:
forLineage- boolean flag
-
isForDuplicateProcessing
public boolean isForDuplicateProcessing()Return whether retrieval requests from this service are to avoid merging duplicates or not.- Returns:
- boolean flag
-
setForDuplicateProcessing
public void setForDuplicateProcessing(boolean forDuplicateProcessing) Set up whether retrieval requests from this service are to avoid merging duplicates or not.- Parameters:
forDuplicateProcessing- boolean flag
-
createSchemaType
public String createSchemaType(boolean assetManagerIsHome, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaTypeProperties schemaTypeProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a schema type.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this schema elementexternalIdentifierProperties- optional properties used to define an external identifierschemaTypeProperties- properties about the schema type to store- Returns:
- unique identifier of the new schema type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createSchemaTypeFromTemplate
public String createSchemaTypeFromTemplate(boolean assetManagerIsHome, String templateGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a schema type using an existing metadata element as a template.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this schema elementtemplateGUID- unique identifier of the metadata element to copyexternalIdentifierProperties- optional properties used to define an external identifiertemplateProperties- properties that override the template- Returns:
- unique identifier of the new schema type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateSchemaType
public void updateSchemaType(String schemaTypeGUID, String schemaTypeExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaTypeProperties schemaTypeProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a schema type.- Parameters:
schemaTypeGUID- unique identifier of the metadata element to updateschemaTypeExternalIdentifier- unique identifier of the schema type in the external asset managerisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?schemaTypeProperties- new properties for the metadata elementeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupSchemaTypeParent
public void setupSchemaTypeParent(boolean assetManagerIsHome, String schemaTypeGUID, String parentElementGUID, String parentElementTypeName, org.odpi.openmetadata.accessservices.assetmanager.properties.RelationshipProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Connect a schema type to a data asset, process or port.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this relationshipschemaTypeGUID- unique identifier of the schema type to connectparentElementGUID- unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName- unique type name of the open metadata element that this schema type is to be connected toproperties- properties for the relationshipeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearSchemaTypeParent
public void clearSchemaTypeParent(String schemaTypeGUID, String parentElementGUID, String parentElementTypeName, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the relationship between a schema type and its parent data asset, process or port.- Parameters:
schemaTypeGUID- unique identifier of the schema type to connectparentElementGUID- unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName- unique type name of the open metadata element that this schema type is to be connected toeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupSchemaElementRelationship
public void setupSchemaElementRelationship(boolean assetManagerIsHome, String endOneGUID, String endTwoGUID, String relationshipName, Date effectiveTime, org.odpi.openmetadata.accessservices.assetmanager.properties.RelationshipProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a relationship between two schema elements. The name of the desired relationship, and any properties (including effectivity dates) are passed on the API.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this relationshipendOneGUID- unique identifier of the schema element at end one of the relationshipendTwoGUID- unique identifier of the schema element at end two of the relationshiprelationshipName- name of the relationship to deleteeffectiveTime- optional date for effective time of the query. Null means any effective timeproperties- relationship properties- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearSchemaElementRelationship
public void clearSchemaElementRelationship(String endOneGUID, String endTwoGUID, String relationshipName, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a relationship between two schema elements. The name of the desired relationship is passed on the API.- Parameters:
endOneGUID- unique identifier of the schema element at end one of the relationshipendTwoGUID- unique identifier of the schema element at end two of the relationshiprelationshipName- name of the relationship to deleteeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeSchemaType
public void removeSchemaType(String schemaTypeGUID, String schemaTypeExternalIdentifier, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a schema type.- Parameters:
schemaTypeGUID- unique identifier of the metadata element to removeschemaTypeExternalIdentifier- unique identifier of the schema type in the external asset managereffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findSchemaType
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement> findSchemaType(String searchString, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of schema type metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSchemaTypeForElement
public org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement getSchemaTypeForElement(String parentElementGUID, String parentElementTypeName, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the schema type associated with a specific open metadata element (data asset, process or port).- Parameters:
parentElementGUID- unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName- unique type name of the open metadata element that this schema type is to be connected toeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- metadata element describing the schema type associated with the requested parent element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSchemaTypeByName
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement> getSchemaTypeByName(String name, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of schema type metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSchemaTypeByGUID
public org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement getSchemaTypeByGUID(String schemaTypeGUID, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the schema type metadata element with the supplied unique identifier.- Parameters:
schemaTypeGUID- unique identifier of the requested metadata elementeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- requested metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSchemaTypeParent
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getSchemaTypeParent(String schemaTypeGUID, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the header of the metadata element connected to a schema type.- Parameters:
schemaTypeGUID- unique identifier of the requested metadata elementeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- header for parent element (data asset, process, port)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createSchemaAttribute
public String createSchemaAttribute(boolean assetManagerIsHome, String schemaElementGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaAttributeProperties schemaAttributeProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a schema attribute.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this schema attributeschemaElementGUID- unique identifier of the schemaType or Schema Attribute where the schema attribute is connected toexternalIdentifierProperties- optional properties used to define an external identifierschemaAttributeProperties- properties for the schema attributeeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- unique identifier of the new metadata element for the schema attribute
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createSchemaAttributeFromTemplate
public String createSchemaAttributeFromTemplate(boolean assetManagerIsHome, String schemaElementGUID, String templateGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.TemplateProperties templateProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a schema attribute using an existing metadata element as a template.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this schema elementschemaElementGUID- unique identifier of the schemaType or Schema Attribute where the schema attribute is connected totemplateGUID- unique identifier of the metadata element to copyexternalIdentifierProperties- optional properties used to define an external identifiertemplateProperties- properties that override the templateeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- unique identifier of the new metadata element for the schema attribute
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateSchemaAttribute
public void updateSchemaAttribute(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaAttributeProperties schemaAttributeProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of the metadata element representing a schema attribute.- Parameters:
schemaAttributeGUID- unique identifier of the schema attribute to updateschemaAttributeExternalIdentifier- unique identifier of the schema attribute in the external asset managerisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?schemaAttributeProperties- new properties for the schema attributeeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setSchemaElementAsCalculatedValue
public void setSchemaElementAsCalculatedValue(boolean assetManagerIsHome, String schemaElementGUID, String schemaElementExternalIdentifier, String formula, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this schema attributeschemaElementGUID- unique identifier of the metadata element to updateschemaElementExternalIdentifier- unique identifier of the schema element in the external asset managerformula- description of how the value is calculatedeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearSchemaElementAsCalculatedValue
public void clearSchemaElementAsCalculatedValue(String schemaElementGUID, String schemaElementExternalIdentifier, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the calculated value designation from the schema element.- Parameters:
schemaElementGUID- unique identifier of the metadata element to updateschemaElementExternalIdentifier- unique identifier of the schema element in the external asset managereffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupColumnAsPrimaryKey
public void setupColumnAsPrimaryKey(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String schemaAttributeGUID, String schemaAttributeExternalIdentifier, String primaryKeyName, org.odpi.openmetadata.accessservices.assetmanager.properties.KeyPattern primaryKeyPattern, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the column schema attribute to indicate that it describes a primary key.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerassetManagerIsHome- ensure that only the asset manager can update this classificationschemaAttributeGUID- unique identifier of the metadata element to updateschemaAttributeExternalIdentifier- unique identifier of the schema attribute in the external asset managerprimaryKeyName- name of the primary key (if different from the column name)primaryKeyPattern- key pattern used to maintain the primary keyeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearColumnAsPrimaryKey
public void clearColumnAsPrimaryKey(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the primary key designation from the schema attribute.- Parameters:
schemaAttributeGUID- unique identifier of the metadata element to updateschemaAttributeExternalIdentifier- unique identifier of the schema attribute in the external asset managereffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupForeignKeyRelationship
public void setupForeignKeyRelationship(boolean assetManagerIsHome, String primaryKeyGUID, String foreignKeyGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ForeignKeyProperties foreignKeyProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Link two schema attributes together to show a foreign key relationship.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this relationshipprimaryKeyGUID- unique identifier of the derived schema elementforeignKeyGUID- unique identifier of the query target schema elementforeignKeyProperties- properties for the foreign key relationshipeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateForeignKeyRelationship
public void updateForeignKeyRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryKeyGUID, String foreignKeyGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ForeignKeyProperties foreignKeyProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the relationship properties for the query target.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerprimaryKeyGUID- unique identifier of the derived schema elementforeignKeyGUID- unique identifier of the query target schema elementforeignKeyProperties- properties for the foreign key relationshipeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearForeignKeyRelationship
public void clearForeignKeyRelationship(String primaryKeyGUID, String foreignKeyGUID, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the foreign key relationship between two schema elements.- Parameters:
primaryKeyGUID- unique identifier of the derived schema elementforeignKeyGUID- unique identifier of the query target schema elementeffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeSchemaAttribute
public void removeSchemaAttribute(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a schema attribute.- Parameters:
schemaAttributeGUID- unique identifier of the metadata element to removeschemaAttributeExternalIdentifier- unique identifier of the schema attribute in the external asset managereffectiveTime- optional date for effective time of the query. Null means any effective time- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findSchemaAttributes
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement> findSchemaAttributes(String searchString, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of schema attribute metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getNestedAttributes
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement> getNestedAttributes(String parentSchemaElementGUID, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of schema attributes associated with a schema element.- Parameters:
parentSchemaElementGUID- unique identifier of the schemaType of intereststartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- list of associated metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSchemaAttributesByName
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement> getSchemaAttributesByName(String name, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of schema attribute metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSchemaAttributeByGUID
public org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaAttributeElement getSchemaAttributeByGUID(String schemaAttributeGUID, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the schema attribute metadata element with the supplied unique identifier.- Parameters:
schemaAttributeGUID- unique identifier of the requested metadata elementeffectiveTime- optional date for effective time of the query. Null means any effective time- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-