Class PostgresMapper


  • public class PostgresMapper
    extends java.lang.Object
    Utility class that provides bean mapping functions
    • Constructor Summary

      Constructors 
      Constructor Description
      PostgresMapper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseColumnProperties getColumnProperties​(PostgresColumn col)
      mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
      static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseProperties getDatabaseProperties​(PostgresDatabase db)
      mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
      static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseSchemaProperties getSchemaProperties​(PostgresSchema sch)
      mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
      static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseTableProperties getTableProperties​(PostgresTable table)
      mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
      static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseViewProperties getViewProperties​(PostgresTable table)
      mapping function that reads converts a Postgres table properties to an Egeria DatabaseViewProperties for a schema from Postgres and adds the data to Egeria
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PostgresMapper

        public PostgresMapper()
    • Method Detail

      • getDatabaseProperties

        public static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseProperties getDatabaseProperties​(PostgresDatabase db)
        mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
        Parameters:
        db - the Postgres database attributes to be
        Returns:
        the Egeria database properties
      • getSchemaProperties

        public static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseSchemaProperties getSchemaProperties​(PostgresSchema sch)
        mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
        Parameters:
        sch - the Postgres database attributes to be
        Returns:
        the Egeria schema properties
      • getTableProperties

        public static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseTableProperties getTableProperties​(PostgresTable table)
        mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
        Parameters:
        table - the Postgres table properties
        Returns:
        the Egeria table properties
      • getViewProperties

        public static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseViewProperties getViewProperties​(PostgresTable table)
        mapping function that reads converts a Postgres table properties to an Egeria DatabaseViewProperties for a schema from Postgres and adds the data to Egeria
        Parameters:
        table - the Postgres table properties
        Returns:
        the Egeria view properties
      • getColumnProperties

        public static org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseColumnProperties getColumnProperties​(PostgresColumn col)
        mapping function that reads tables, columns and primmary keys for a schema from Postgres and adds the data to Egeria
        Parameters:
        col - the Postgres column properties
        Returns:
        the Egeria column properties