java.lang.Object
org.odpi.openmetadata.adapters.connectors.resource.jdbc.mappers.BaseMapper
org.odpi.openmetadata.adapters.repositoryservices.postgres.repositoryconnector.mappers.RepositoryMapper
org.odpi.openmetadata.adapters.repositoryservices.postgres.repositoryconnector.mappers.ClassificationMapper

public class ClassificationMapper extends RepositoryMapper
Map between a Classification object and a collection of database rows. This mapping can go in either direction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassificationMapper(String entityGUID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String repositoryName)
    Construct a classification mapper using an OMRS instance.
    ClassificationMapper(Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue> classificationTableRow, List<Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>> classificationPropertiesTableRows, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String repositoryName)
    Construct a classification mapper using the values from the database.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification
    Construct a classification object from the values from the database.
    List<Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>>
    Return the rows that describe the properties for this classification.
    Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>
    Extract the classification table information from the classification object.
    Extract the entity GUID from the values from the database.

    Methods inherited from class org.odpi.openmetadata.adapters.connectors.resource.jdbc.mappers.BaseMapper

    getBooleanPropertyFromColumn, getDatePropertyFromColumn, getLongPropertyFromColumn, getSerializableMapPropertyFromColumn, getStringArrayPropertyFromColumn, getStringPropertyFromColumn

    Methods inherited from class java.lang.Object

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

    • ClassificationMapper

      public ClassificationMapper(String entityGUID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct a classification mapper using an OMRS instance.
      Parameters:
      entityGUID - unique identifier of the associated entity
      classification - classification
      repositoryHelper - repository helper
      repositoryName - repository name
    • ClassificationMapper

      public ClassificationMapper(Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue> classificationTableRow, List<Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>> classificationPropertiesTableRows, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String repositoryName)
      Construct a classification mapper using the values from the database.
      Parameters:
      classificationTableRow - row from the classification table
      classificationPropertiesTableRows - rows from the classification properties table
      repositoryHelper - repository helper
      repositoryName - repository name
  • Method Details

    • getClassification

      public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification getClassification() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Construct a classification object from the values from the database.
      Returns:
      classification description
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - problem mapping the properties
    • getEntityGUID

      public String getEntityGUID() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Extract the entity GUID from the values from the database.
      Returns:
      guid
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - problem mapping the properties
    • getClassificationTableRow

      public Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue> getClassificationTableRow() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Extract the classification table information from the classification object.
      Returns:
      classification table row for this classification
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - problem mapping the properties
    • getClassificationPropertiesTableRows

      public List<Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>> getClassificationPropertiesTableRows() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Return the rows that describe the properties for this classification.
      Returns:
      property rows
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - problem mapping the properties