Class OpenMetadataAPIGenericConverter<B>

java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
Direct Known Subclasses:
DataManagerOMASConverter, OMFConverter, OpenMetadataAPIDummyBeanConverter

public abstract class OpenMetadataAPIGenericConverter<B> extends Object
OpenMetadataAPIGenericConverter provides the generic methods for the bean converters used to provide translation between specific Open Metadata API beans and the repository services API beans. Generic classes have limited knowledge of the classes these are working on and this means creating a new instance of a class from within a generic is a little involved. This class provides the generic method for creating and initializing an Open Metadata API bean.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenMetadataAPIGenericConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
    Constructor captures the initial content
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSchemaTypeToAttribute(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SchemaTypeElement schemaTypeElement, org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties attributeProperties)
    Set up the properties that can be extracted form the schema type.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub
    getElementStub(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String methodName)
    Extract the properties from the entity.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub
    getElementStub(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy, String methodName)
    Extract the properties from the entity.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub
    getElementStub(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName)
    Extract the properties from the relationship.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementType
    getElementType(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader instanceHeader)
    Convert information from a repository instance into an Open Metadata Framework ElementType.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
    getMetadataElementHeader(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader header, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> entityClassifications, String methodName)
    Extract the properties from the entity.
    getNewBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String methodName)
    Using the supplied entity, return a new instance of the bean.
    getNewBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName)
    Using the supplied instances, return a new instance of the bean.
    getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> supplementaryEntities, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships, String methodName)
    Using the supplied instances, return a new instance of the bean.
    getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships, String methodName)
    Using the supplied instances, return a new instance of the bean.
    getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, List<RelatedEntity> relatedEntities, String methodName)
    Using the supplied instances, return a new instance of the bean.
    getNewRelationshipBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName)
    Using the supplied relationship, return a new instance of the bean.
    <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.
    getNewSchemaTypeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader schemaRootHeader, String schemaTypeTypeName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, B externalSchemaType, B mapFromSchemaType, B mapToSchemaType, List<B> schemaTypeOptions, String methodName)
    Return the converted bean.
    getNewSchemaTypeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader schemaRootHeader, String schemaTypeTypeName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, String externalSchemaTypeGUID, B externalSchemaType, String mapFromSchemaTypeGUID, B mapFromSchemaType, String mapToSchemaTypeGUID, B mapToSchemaType, List<String> schemaTypeOptionGUIDs, List<B> schemaTypeOptions, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> queryTargets, String methodName)
    Return the converted bean.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedBy
    getRelatedBy(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName)
    Using the supplied instances, return a new instance of a relatedElement bean.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedElementStub
    getRelatedElement(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName)
    Using the supplied instances, return a new instance of a relatedElement bean.
    org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedElementStub
    getRelatedElement(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy, String methodName)
    Using the supplied instances, return a new instance of a relatedElement bean.
    org.odpi.openmetadata.frameworks.openmetadata.enums.KeyPattern
    removeKeyPattern(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Extract and delete the KeyPattern property from the supplied instance properties.
    org.odpi.openmetadata.frameworks.openmetadata.enums.DataItemSortOrder
    removeSortOrder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Extract and delete the sortOrder property from the supplied instance properties.
    void
    setUpSchemaAttribute(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail schemaAttributeEntity, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SchemaTypeElement schemaTypeElement, org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties properties)
    Set up the properties that can be extracted form the schema type.

    Methods inherited from class java.lang.Object

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

    • OpenMetadataAPIGenericConverter

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

    • getNewBean

      public B getNewBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied entity, return a new instance of the bean. This is used for most beans that have a one to one correspondence with the repository instances.
      Parameters:
      beanClass - name of the class to create
      entity - entity containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the entity supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewBean

      public B getNewBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of the bean. This is used for beans that contain a combination of the properties from an entity and that of a connected relationship.
      Parameters:
      beanClass - name of the class to create
      entity - entity containing the properties
      relationship - relationship used to access the entity
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewComplexBean

      public B getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of the bean. It is used for beans such as an Annotation or DataField bean which combine knowledge from the entity and its linked relationships.
      Parameters:
      beanClass - name of the class to create
      primaryEntity - entity that is the root of the collection of entities that make up the content of the bean
      relationships - relationships linking the entities
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewComplexBean

      public B getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, List<RelatedEntity> relatedEntities, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of the bean. It is used for beans such as an Annotation or DataField bean which combine knowledge from the entity and its linked relationships.
      Parameters:
      beanClass - name of the class to create
      primaryEntity - entity that is the root of the collection of entities that make up the content of the bean
      relationship - relationship used to access the entity
      relatedEntities - relationships linking the entities
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewComplexBean

      public B getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> supplementaryEntities, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of the bean. It is used for beans such as a connection bean which made up of 3 entities (Connection, ConnectorType and Endpoint) plus the relationships between them. The relationships may be omitted if they do not have any properties.
      Parameters:
      beanClass - name of the class to create
      primaryEntity - entity that is the root of the collection of entities that make up the content of the bean
      supplementaryEntities - entities connected to the primary entity by the relationships
      relationships - relationships linking the entities
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewRelationshipBean

      public B getNewRelationshipBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied relationship, return a new instance of the bean. It is used for beans that represent a simple relationship between two entities.
      Parameters:
      beanClass - name of the class to create
      relationship - relationship linking the entities
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewSchemaTypeBean

      public B getNewSchemaTypeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader schemaRootHeader, String schemaTypeTypeName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, B externalSchemaType, B mapFromSchemaType, B mapToSchemaType, List<B> schemaTypeOptions, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Return the converted bean. This is a special method used for schema types since they are stored as a collection of instances.
      Parameters:
      beanClass - name of the class to create
      schemaRootHeader - header of the schema element that holds the root information
      schemaTypeTypeName - name of type of the schema type to create
      instanceProperties - properties describing the schema type
      schemaRootClassifications - classifications from the schema root entity
      attributeCount - number of attributes (for a complex schema type)
      validValueSetGUID - unique identifier of the set of valid values (for an enum schema type)
      externalSchemaType - unique identifier for the properties of the schema type that is shared by multiple attributes/assets
      mapFromSchemaType - bean containing the properties of the schema type that is part of a map definition
      mapToSchemaType - bean containing the properties of the schema type that is part of a map definition
      schemaTypeOptions - list of schema types that could be the type for this attribute
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getNewSchemaTypeBean

      public B getNewSchemaTypeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader schemaRootHeader, String schemaTypeTypeName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, String externalSchemaTypeGUID, B externalSchemaType, String mapFromSchemaTypeGUID, B mapFromSchemaType, String mapToSchemaTypeGUID, B mapToSchemaType, List<String> schemaTypeOptionGUIDs, List<B> schemaTypeOptions, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> queryTargets, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Return the converted bean. This is a special method used for schema types since they are stored as a collection of instances. For external schema types and map elements, both the GUID and the bean are returned to allow the consuming OMAS to choose whether it is returning GUIDs of the linked to schema or the schema type bean itself.
      Parameters:
      beanClass - name of the class to create
      schemaRootHeader - header of the schema element that holds the root information
      schemaTypeTypeName - name of type of the schema type to create
      instanceProperties - properties describing the schema type
      schemaRootClassifications - classifications from the schema root entity
      attributeCount - number of attributes (for a complex schema type)
      validValueSetGUID - unique identifier of the set of valid values (for an enum schema type)
      externalSchemaTypeGUID - unique identifier of the external schema type
      externalSchemaType - unique identifier for the properties of the schema type that is shared by multiple attributes/assets
      mapFromSchemaTypeGUID - unique identifier of the mapFrom schema type
      mapFromSchemaType - bean containing the properties of the schema type that is part of a map definition
      mapToSchemaTypeGUID - unique identifier of the mapTo schema type
      mapToSchemaType - bean containing the properties of the schema type that is part of a map definition
      schemaTypeOptionGUIDs - list of unique identifiers for schema types that could be the type for this attribute
      schemaTypeOptions - list of schema types that could be the type for this attribute
      queryTargets - list of relationships to schema types that contain data values used to derive the schema type value(s)
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • 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.openmetadata.ffdc.PropertyServerException
      Extract the properties from the schema attribute entity. Each API creates a specialization of this method for its beans.
      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.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getMetadataElementHeader

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader getMetadataElementHeader(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader header, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> entityClassifications, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Extract the properties from the entity.
      Parameters:
      beanClass - name of the class to create
      header - header from the entity containing the properties
      entityClassifications - classification if this is an entity
      methodName - calling method
      Returns:
      filled out element header
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
    • getElementStub

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub getElementStub(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Extract the properties from the entity.
      Parameters:
      beanClass - name of the class to create
      entityProxy - entityProxy from the relationship containing the properties
      methodName - calling method
      Returns:
      filled out element header
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
    • getElementStub

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub getElementStub(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Extract the properties from the entity.
      Parameters:
      beanClass - name of the class to create
      entity - entity containing the properties
      methodName - calling method
      Returns:
      filled out element header
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
    • getElementStub

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub getElementStub(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Extract the properties from the relationship.
      Parameters:
      beanClass - name of the class to create
      relationship - relationship containing the properties
      methodName - calling method
      Returns:
      filled out element header
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
    • getElementType

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementType getElementType(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader instanceHeader)
      Convert information from a repository instance into an Open Metadata Framework ElementType.
      Parameters:
      instanceHeader - values from the server
      Returns:
      OCF ElementType object
    • removeSortOrder

      public org.odpi.openmetadata.frameworks.openmetadata.enums.DataItemSortOrder removeSortOrder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
      Extract and delete the sortOrder property from the supplied instance properties.
      Parameters:
      instanceProperties - properties from entity
      Returns:
      DataItemSortOrder enum
    • removeKeyPattern

      public org.odpi.openmetadata.frameworks.openmetadata.enums.KeyPattern removeKeyPattern(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
      Extract and delete the KeyPattern property from the supplied instance properties.
      Parameters:
      instanceProperties - properties from entity
      Returns:
      KeyPattern enum
    • setUpSchemaAttribute

      public void setUpSchemaAttribute(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail schemaAttributeEntity, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SchemaTypeElement schemaTypeElement, org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties properties)
      Set up the properties that can be extracted form the schema type.
      Parameters:
      schemaAttributeEntity - entity to unpack
      schemaTypeElement - schema type properties
      properties - output column properties
    • addSchemaTypeToAttribute

      public void addSchemaTypeToAttribute(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SchemaTypeElement schemaTypeElement, org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties attributeProperties)
      Set up the properties that can be extracted form the schema type. There are two strategies to try. The Schema Type Converter in the OCF creates a bean of a specific type to reflect the type of schema. The Schema Type Converter in the generic handler always creates a bean of type SchemaTypeProperties with the subtype's properties in extendedProperties.
      Parameters:
      schemaTypeElement - schema type properties
      attributeProperties - output column properties
    • getRelatedElement

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedElementStub getRelatedElement(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entity and that of a connected relationship.
      Parameters:
      beanClass - name of the class to create
      entity - entity containing the properties
      relationship - relationship containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getRelatedElement

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedElementStub getRelatedElement(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entityProxy and that of a connected relationship.
      Parameters:
      beanClass - name of the class to create
      entityProxy - entityProxy containing the properties
      relationship - relationship containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean
    • getRelatedBy

      public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedBy getRelatedBy(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String methodName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entity and that of a connected relationship.
      Parameters:
      beanClass - name of the class to create
      relationship - relationship containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem instantiating the bean