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
ConstructorDescriptionClassificationMapper
(String entityGUID, Classification classification, OMRSRepositoryHelper repositoryHelper, String repositoryName) Construct a classification mapper using an OMRS instance.ClassificationMapper
(Map<String, JDBCDataValue> classificationTableRow, List<Map<String, JDBCDataValue>> classificationPropertiesTableRows, OMRSRepositoryHelper repositoryHelper, String repositoryName) Construct a classification mapper using the values from the database. -
Method Summary
Modifier and TypeMethodDescriptionConstruct 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.repositoryservices.postgres.repositoryconnector.mappers.RepositoryMapper
extractValuesFromInstanceAuditHeader, extractValuesFromInstanceHeader, fillInstanceAuditHeader, fillInstanceHeader, getInstanceProperties, getUniqueProperties
Methods inherited from class org.odpi.openmetadata.adapters.connectors.resource.jdbc.mappers.BaseMapper
getBooleanPropertyFromColumn, getDatePropertyFromColumn, getLongPropertyFromColumn, getSerializableMapPropertyFromColumn, getStringArrayPropertyFromColumn, getStringPropertyFromColumn, setUpBooleanValueInRow, setUpDateValueInRow, setUpLongValueInRow, setUpSerializableMapValueInRow, setUpStringArrayValueInRow, setUpStringValueInRow
-
Constructor Details
-
ClassificationMapper
public ClassificationMapper(String entityGUID, Classification classification, 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, JDBCDataValue> classificationTableRow, List<Map<String, JDBCDataValue>> classificationPropertiesTableRows, 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
Construct a classification object from the values from the database.- Returns:
- classification description
- Throws:
RepositoryErrorException
- problem mapping the properties
-
getEntityGUID
Extract the entity GUID from the values from the database.- Returns:
- guid
- Throws:
RepositoryErrorException
- problem mapping the properties
-
getClassificationTableRow
Extract the classification table information from the classification object.- Returns:
- classification table row for this classification
- Throws:
RepositoryErrorException
- problem mapping the properties
-
getClassificationPropertiesTableRows
public List<Map<String,JDBCDataValue>> getClassificationPropertiesTableRows() throws RepositoryErrorExceptionReturn the rows that describe the properties for this classification.- Returns:
- property rows
- Throws:
RepositoryErrorException
- problem mapping the properties
-