Class ControlMapper
java.lang.Object
org.odpi.openmetadata.adapters.connectors.resource.jdbc.mappers.BaseMapper
org.odpi.openmetadata.adapters.repositoryservices.postgres.repositoryconnector.mappers.ControlMapper
-
Constructor Summary
ConstructorDescriptionControlMapper
(String repositoryName, String serverName, String localMetadataCollectionGUID, String schemaVersion) Constructor used to write to the control table.ControlMapper
(String repositoryName, List<Map<String, JDBCDataValue>> controlTable) Constructor when receiving values from the database table. -
Method Summary
Modifier and TypeMethodDescriptionReturn the formatted roe for the control table.Return the local metadata collection identifier.Return the schema version.Return the name of the server that is using this repository.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
-
ControlMapper
public ControlMapper(String repositoryName, String serverName, String localMetadataCollectionGUID, String schemaVersion) Constructor used to write to the control table.- Parameters:
repositoryName
- name of the repository connectorserverName
- name of consuming serverlocalMetadataCollectionGUID
- local metadata collection for this repositoryschemaVersion
- version of the schema in use
-
ControlMapper
public ControlMapper(String repositoryName, List<Map<String, JDBCDataValue>> controlTable) throws RepositoryErrorExceptionConstructor when receiving values from the database table.- Parameters:
repositoryName
- name of this repositorycontrolTable
- results from the database- Throws:
RepositoryErrorException
- missing value from database table
-
-
Method Details
-
getServerName
Return the name of the server that is using this repository.- Returns:
- string name
-
getLocalMetadataCollectionGUID
Return the local metadata collection identifier.- Returns:
- string guid
-
getSchemaVersion
Return the schema version.- Returns:
- string
-
getControlTableRow
Return the formatted roe for the control table.- Returns:
- row
- Throws:
RepositoryErrorException
- missing value
-