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

public class ControlMapper extends BaseMapper
  • 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 connector
      serverName - name of consuming server
      localMetadataCollectionGUID - local metadata collection for this repository
      schemaVersion - version of the schema in use
    • ControlMapper

      public ControlMapper(String repositoryName, List<Map<String,JDBCDataValue>> controlTable) throws RepositoryErrorException
      Constructor when receiving values from the database table.
      Parameters:
      repositoryName - name of this repository
      controlTable - results from the database
      Throws:
      RepositoryErrorException - missing value from database table
  • Method Details

    • getServerName

      public String getServerName()
      Return the name of the server that is using this repository.
      Returns:
      string name
    • getLocalMetadataCollectionGUID

      public String getLocalMetadataCollectionGUID()
      Return the local metadata collection identifier.
      Returns:
      string guid
    • getSchemaVersion

      public String getSchemaVersion()
      Return the schema version.
      Returns:
      string
    • getControlTableRow

      public Map<String,JDBCDataValue> getControlTableRow() throws RepositoryErrorException
      Return the formatted roe for the control table.
      Returns:
      row
      Throws:
      RepositoryErrorException - missing value