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 org.odpi.openmetadata.adapters.connectors.resource.jdbc.mappers.BaseMapper
  • Constructor Summary

    Constructors
    Constructor
    Description
    ControlMapper(String repositoryName, String serverName, String localMetadataCollectionGUID, String schemaVersion)
    Constructor used to write to the control table.
    ControlMapper(String repositoryName, List<Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>> controlTable)
    Constructor when receiving values from the database table.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>
    Return 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue>> controlTable) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Constructor when receiving values from the database table.
      Parameters:
      repositoryName - name of this repository
      controlTable - results from the database
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.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,org.odpi.openmetadata.adapters.connectors.resource.jdbc.properties.JDBCDataValue> getControlTableRow() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Return the formatted roe for the control table.
      Returns:
      row
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - missing value