Class ClassificationMapper
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
Map between a Classification object and a collection of database rows.
This mapping can go in either direction.
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationMapper(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 TypeMethodDescriptionorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.ClassificationConstruct a classification object from the values from the database.Return the rows that describe the properties for this classification.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
-
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 entityclassification- classificationrepositoryHelper- repository helperrepositoryName- 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 tableclassificationPropertiesTableRows- rows from the classification properties tablerepositoryHelper- repository helperrepositoryName- repository name
-
-
Method Details
-
getClassification
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification getClassification() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionConstruct 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.RepositoryErrorExceptionExtract 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.RepositoryErrorExceptionExtract 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.RepositoryErrorExceptionReturn the rows that describe the properties for this classification.- Returns:
- property rows
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- problem mapping the properties
-