Class DatabaseTableConverter<B>

java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.accessservices.datamanager.converters.DataManagerOMASConverter<B>
org.odpi.openmetadata.accessservices.datamanager.converters.DatabaseTableConverter<B>

public class DatabaseTableConverter<B> extends DataManagerOMASConverter<B>
DatabaseTableConverter transfers the relevant properties from some Open Metadata Repository Services (OMRS) EntityDetail object into an DatabaseTable bean.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DatabaseTableConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> B
    getNewSchemaAttributeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail schemaAttributeEntity, Class<T> typeClass, T schemaType, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> schemaAttributeRelationships, String methodName)
    Extract the properties from the schema attribute entity.

    Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.converters.DataManagerOMASConverter

    getRelatedElement

    Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter

    getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaTypeBean, getNewSchemaTypeBean

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DatabaseTableConverter

      public DatabaseTableConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Constructor
      Parameters:
      repositoryHelper - helper object to parse entity
      serviceName - name of this component
      serverName - local server name
  • Method Details

    • getNewSchemaAttributeBean

      public <T> B getNewSchemaAttributeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail schemaAttributeEntity, Class<T> typeClass, T schemaType, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> schemaAttributeRelationships, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Extract the properties from the schema attribute entity. Each API creates a specialization of this method for its beans.
      Overrides:
      getNewSchemaAttributeBean in class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
      Type Parameters:
      T - bean type used to create the schema type
      Parameters:
      beanClass - name of the class to create
      schemaAttributeEntity - entity containing the properties for the main schema attribute
      typeClass - name of type used to describe the schema type
      schemaType - bean containing the properties of the schema type - this is filled out by the schema type converter
      schemaAttributeRelationships - relationships containing the links to other schema attributes
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem instantiating the bean