Class OpenMetadataAPIGenericConverter<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
- Direct Known Subclasses:
DataManagerOMASConverter,OMFConverter,OpenMetadataAPIDummyBeanConverter
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
ConstructorsConstructorDescriptionOpenMetadataAPIGenericConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchemaTypeToAttribute(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.ElementStubgetElementStub(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.ElementStubgetElementStub(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.ElementStubgetElementStub(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.ElementTypegetElementType(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.ElementHeadergetMetadataElementHeader(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> BgetNewSchemaAttributeBean(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.RelatedBygetRelatedBy(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.RelatedElementStubgetRelatedElement(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.RelatedElementStubgetRelatedElement(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.KeyPatternremoveKeyPattern(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.DataItemSortOrderremoveSortOrder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties) Extract and delete the sortOrder property from the supplied instance properties.voidsetUpSchemaAttribute(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.
-
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 entityserviceName- name of this componentserverName- 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 createentity- entity containing the propertiesmethodName- 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 createentity- entity containing the propertiesrelationship- relationship used to access the entitymethodName- 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 createprimaryEntity- entity that is the root of the collection of entities that make up the content of the beanrelationships- relationships linking the entitiesmethodName- 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 createprimaryEntity- entity that is the root of the collection of entities that make up the content of the beanrelationship- relationship used to access the entityrelatedEntities- relationships linking the entitiesmethodName- 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 createprimaryEntity- entity that is the root of the collection of entities that make up the content of the beansupplementaryEntities- entities connected to the primary entity by the relationshipsrelationships- relationships linking the entitiesmethodName- 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 createrelationship- relationship linking the entitiesmethodName- 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 createschemaRootHeader- header of the schema element that holds the root informationschemaTypeTypeName- name of type of the schema type to createinstanceProperties- properties describing the schema typeschemaRootClassifications- classifications from the schema root entityattributeCount- 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/assetsmapFromSchemaType- bean containing the properties of the schema type that is part of a map definitionmapToSchemaType- bean containing the properties of the schema type that is part of a map definitionschemaTypeOptions- list of schema types that could be the type for this attributemethodName- 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 createschemaRootHeader- header of the schema element that holds the root informationschemaTypeTypeName- name of type of the schema type to createinstanceProperties- properties describing the schema typeschemaRootClassifications- classifications from the schema root entityattributeCount- 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 typeexternalSchemaType- unique identifier for the properties of the schema type that is shared by multiple attributes/assetsmapFromSchemaTypeGUID- unique identifier of the mapFrom schema typemapFromSchemaType- bean containing the properties of the schema type that is part of a map definitionmapToSchemaTypeGUID- unique identifier of the mapTo schema typemapToSchemaType- bean containing the properties of the schema type that is part of a map definitionschemaTypeOptionGUIDs- list of unique identifiers for schema types that could be the type for this attributeschemaTypeOptions- list of schema types that could be the type for this attributequeryTargets- 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 createschemaAttributeEntity- entity containing the properties for the main schema attributetypeClass- name of type used to describe the schema typeschemaType- bean containing the properties of the schema type - this is filled out by the schema type converterschemaAttributeRelationships- relationships containing the links to other schema attributesmethodName- 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 createheader- header from the entity containing the propertiesentityClassifications- classification if this is an entitymethodName- 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 createentityProxy- entityProxy from the relationship containing the propertiesmethodName- 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 createentity- entity containing the propertiesmethodName- 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 createrelationship- relationship containing the propertiesmethodName- 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 unpackschemaTypeElement- schema type propertiesproperties- 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 propertiesattributeProperties- 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 createentity- entity containing the propertiesrelationship- relationship containing the propertiesmethodName- 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 createentityProxy- entityProxy containing the propertiesrelationship- relationship containing the propertiesmethodName- 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 createrelationship- relationship containing the propertiesmethodName- 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
-