Class JDBCIntegrationCatalogTargetProcessor
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.assets.processes.connectors.CatalogTargetProperties
org.odpi.openmetadata.frameworks.opengovernance.properties.CatalogTarget
org.odpi.openmetadata.frameworks.integration.properties.RequestedCatalogTarget
org.odpi.openmetadata.frameworks.integration.connectors.CatalogTargetProcessorBase
org.odpi.openmetadata.adapters.connectors.integration.jdbc.JDBCIntegrationCatalogTargetProcessor
JDBCIntegrationCatalogTargetProcessor supports the cataloguing of database schema via the JDBC interface for
a single database linked as a catalog target.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.integration.connectors.CatalogTargetProcessorBase
auditLog, connectorName, metadataCollectionGUID, metadataCollectionName, propertyHelperFields inherited from class org.odpi.openmetadata.frameworks.integration.properties.RequestedCatalogTarget
connectorToTarget, integrationContextFields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
typeName -
Constructor Summary
ConstructorsConstructorDescriptionJDBCIntegrationCatalogTargetProcessor(CatalogTarget template, CatalogTargetContext catalogTargetContext, Connector connectorToTarget, String connectorName, AuditLog auditLog) Primary constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(Connection connection) Work has completed, close the database connection.voidrefresh()Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories.voidrefreshDatabase(JDBCResourceConnector jdbcResourceConnector, String databaseName, OpenMetadataRootElement databaseElement, Map<String, Object> configurationProperties) Refresh a single database: connect to it, resolve (or create) its database asset, and then hand off the schema/table/view/column cataloguing to aRelationalDatabaseCataloguer.voidrefreshDatabaseSchema(JDBCResourceConnector jdbcResourceConnector, String schemaName, OpenMetadataRootElement schemaElement, Map<String, Object> configurationProperties) Refresh a single database schema: connect through the schema asset's own connection and catalog the tables, views and columns of that one schema.Methods inherited from class org.odpi.openmetadata.frameworks.integration.connectors.CatalogTargetProcessorBase
disconnect, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getCatalogTargetElement, getDateConfigurationProperty, getHostIdentifier, getIntConfigurationProperty, getLongConfigurationProperty, getPortNumber, getStringConfigurationProperty, getSuppliedPlaceholderProperties, setUpMetadataSource, setUpSoftwareCapability, start, throwBadBeanClass, throwMissingConnectionInfo, throwMissingPropertyValue, throwWrongTypeOfCatalogTarget, throwWrongTypeOfResourceConnectorMethods inherited from class org.odpi.openmetadata.frameworks.integration.properties.RequestedCatalogTarget
clearRetrievedCatalogTargetElement, equals, getCatalogTargetElement, getCatalogTargetElementHeader, getCatalogTargetElementRetrievalException, getConnectorToTarget, getIntegrationContext, getNetworkAddress, hashCode, isStarted, toStringMethods inherited from class org.odpi.openmetadata.frameworks.opengovernance.properties.CatalogTarget
getRelationshipGUID, getRelationshipVersions, setCatalogTargetElement, setRelationshipGUID, setRelationshipVersionsMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.assets.processes.connectors.CatalogTargetProperties
getCatalogTargetName, getConfigurationProperties, getConnectionName, getDeleteMethod, getMetadataCollectionQualifiedName, getMetadataSourceQualifiedName, getPermittedSynchronization, getTemplates, setCatalogTargetName, setConfigurationProperties, setConnectionName, setDeleteMethod, setMetadataCollectionQualifiedName, setMetadataSourceQualifiedName, setPermittedSynchronization, setTemplatesMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
getExtendedProperties, getTypeName, setExtendedProperties, setTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, setEffectiveFrom, setEffectiveTo
-
Constructor Details
-
JDBCIntegrationCatalogTargetProcessor
public JDBCIntegrationCatalogTargetProcessor(CatalogTarget template, CatalogTargetContext catalogTargetContext, Connector connectorToTarget, String connectorName, AuditLog auditLog) Primary constructor- Parameters:
template- object to copycatalogTargetContext- specialized context for this catalog targetconnectorToTarget- connector to access the target resourceconnectorName- name of this integration connectorauditLog- logging destination
-
-
Method Details
-
refresh
Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories. Refresh is called when the integration connector first starts and then at intervals defined in the connector's configuration as well as any external REST API calls to explicitly refresh the connector.- Overrides:
refreshin classCatalogTargetProcessorBase- Throws:
ConnectorCheckedException- the connector detected a problem.
-
refreshDatabaseSchema
public void refreshDatabaseSchema(JDBCResourceConnector jdbcResourceConnector, String schemaName, OpenMetadataRootElement schemaElement, Map<String, Object> configurationProperties) throws ConnectorCheckedExceptionRefresh a single database schema: connect through the schema asset's own connection and catalog the tables, views and columns of that one schema.
This is what the catalog-<vendor>-schema governance action processes in the database vendors' content packs set up. The schema asset already exists - it is the catalog target - so nothing here creates or deletes it, and no database asset is created above it.- Parameters:
jdbcResourceConnector- connector to the databaseschemaName- qualified name of the schema asset, for the audit logschemaElement- the schema assetconfigurationProperties- configuration properties from the catalog target- Throws:
ConnectorCheckedException
-
refreshDatabase
public void refreshDatabase(JDBCResourceConnector jdbcResourceConnector, String databaseName, OpenMetadataRootElement databaseElement, Map<String, Object> configurationProperties) throws ConnectorCheckedExceptionRefresh a single database: connect to it, resolve (or create) its database asset, and then hand off the schema/table/view/column cataloguing to aRelationalDatabaseCataloguer.- Parameters:
jdbcResourceConnector- connector to the databasedatabaseName- qualified name of the databasedatabaseElement- the already-known database asset, or null if this catalog target is a database server addressconfigurationProperties- configuration properties for the database- Throws:
ConnectorCheckedException
-
close
Work has completed, close the database connection.- Parameters:
connection- database connection
-