Class PostgresTabularTable
java.lang.Object
org.odpi.openmetadata.adapters.connectors.postgres.tabulardatasource.PostgresTabularTable
- All Implemented Interfaces:
PostgreSQLTable
Convert the tabular data source description into something understandable by PostgreSQL so the schema
for the table can be set up in the database.
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresTabularTable(String tableName, String tableDescription, List<TabularColumnDescription> columnDescriptions) Construct the postgreSQL table information from the tabular data information. -
Method Summary
Modifier and TypeMethodDescriptionReturn the columns that are not primary keys.Return the list of foreign keys for this table.Return the columns that are primary keys.Return the description of the table.Return the name of the table.getTableName(String schemaName) Return the name of the table.
-
Constructor Details
-
PostgresTabularTable
public PostgresTabularTable(String tableName, String tableDescription, List<TabularColumnDescription> columnDescriptions) Construct the postgreSQL table information from the tabular data information.- Parameters:
tableName- name of the tabletableDescription- description of the tablecolumnDescriptions- list of columns
-
-
Method Details
-
getTableName
Return the name of the table.- Specified by:
getTableNamein interfacePostgreSQLTable- Returns:
- name
-
getTableName
Return the name of the table.- Specified by:
getTableNamein interfacePostgreSQLTable- Parameters:
schemaName- name of schema- Returns:
- name
-
getTableDescription
Return the description of the table.- Specified by:
getTableDescriptionin interfacePostgreSQLTable- Returns:
- text
-
getPrimaryKeys
Return the columns that are primary keys.- Specified by:
getPrimaryKeysin interfacePostgreSQLTable- Returns:
- list of columns
-
getDataColumns
Return the columns that are not primary keys.- Specified by:
getDataColumnsin interfacePostgreSQLTable- Returns:
- list of columns
-
getForeignKeys
Return the list of foreign keys for this table.- Specified by:
getForeignKeysin interfacePostgreSQLTable- Returns:
- list
-