java.lang.Object
java.lang.Enum<RepositoryTable>
org.odpi.openmetadata.adapters.repositoryservices.postgres.repositoryconnector.schema.RepositoryTable
All Implemented Interfaces:
Serializable, Comparable<RepositoryTable>, Constable, org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable

public enum RepositoryTable extends Enum<RepositoryTable> implements org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
Defines the tables used in a repository database schema.
  • Enum Constant Details

    • CONTROL

      public static final RepositoryTable CONTROL
      Control table to identify the server, metadata collection and version that this repository serves.
    • ENTITY

      public static final RepositoryTable ENTITY
      Common information about an entity instance.
    • RELATIONSHIP

      public static final RepositoryTable RELATIONSHIP
      Common information about a relationship instance.
    • CLASSIFICATION

      public static final RepositoryTable CLASSIFICATION
    • ENTITY_ATTRIBUTE_VALUE

      public static final RepositoryTable ENTITY_ATTRIBUTE_VALUE
      Attributes for an entity, or for entity properties that are collections.
    • CLASSIFICATION_ATTRIBUTE_VALUE

      public static final RepositoryTable CLASSIFICATION_ATTRIBUTE_VALUE
      Attributes for a classification, or for classification properties that are collections.
    • RELATIONSHIP_ATTRIBUTE_VALUE

      public static final RepositoryTable RELATIONSHIP_ATTRIBUTE_VALUE
      Attributes for a relationship, or for relationship properties that are collections.
  • Method Details

    • values

      public static RepositoryTable[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RepositoryTable valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTableName

      public String getTableName()
      Return the name of the table.
      Specified by:
      getTableName in interface org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
      Returns:
      name
    • getTableName

      public String getTableName(String schemaName)
      Return the name of the table.
      Specified by:
      getTableName in interface org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
      Parameters:
      schemaName - name of schema
      Returns:
      name
    • getTableDescription

      public String getTableDescription()
      Return the description of the table.
      Specified by:
      getTableDescription in interface org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
      Returns:
      text
    • getPrimaryKeys

      public List<org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLColumn> getPrimaryKeys()
      Return the columns that are primary keys.
      Specified by:
      getPrimaryKeys in interface org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
      Returns:
      list of columns
    • getDataColumns

      public List<org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLColumn> getDataColumns()
      Return the columns that are not primary keys.
      Specified by:
      getDataColumns in interface org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
      Returns:
      list of columns
    • getColumnNameTypeMap

      public Map<String,Integer> getColumnNameTypeMap()
      Return the name to type map for the columns in this table.
      Returns:
      map
    • getQualifiedColumnNames

      public List<String> getQualifiedColumnNames()
    • getForeignKeys

      public List<org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey> getForeignKeys()
      Return the list of foreign keys for this table.
      Specified by:
      getForeignKeys in interface org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable
      Returns:
      list
    • getTables

      public static List<org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable> getTables()
      Return the tables for schema building.
      Returns:
      list of tables
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Enum<RepositoryTable>
      Returns:
      JSON style description of variables.