public class PostgresSourceDatabase
extends java.lang.Object
| Constructor and Description |
|---|
PostgresSourceDatabase(org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties egeriaProps) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PostgresDatabase> |
getDabases() |
java.util.List<PostgresSchema> |
getDatabaseSchema(java.lang.String databaseName)
Lists the schemas for a given database
|
java.util.List<PostgresForeignKeyLinks> |
getForeginKeyLinksForTable(java.lang.String tableName)
lists the foreign key attributes needed to create an enetity relationship between the database columns
|
java.util.List<java.lang.String> |
getForeignKeyColumnNamesForTable(java.lang.String tableName)
Wrapper function which lists the Postgres foreign key attributes for views for a given table
|
java.util.List<java.lang.String> |
getPrimaryKeyColumnNamesForTable(java.lang.String tableName)
Wrapper function which lists the Postgres primary key attributes for a given table name
|
java.util.List<PostgresTable> |
getTables(java.lang.String schemaName)
Wrapper function which lists the Postgres attributes for tables for a given schema
|
java.util.List<PostgresTable> |
getViews(java.lang.String schemaName)
Wrapper function which lists the Postgres attributes for views for a given schema
|
public PostgresSourceDatabase(org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties egeriaProps)
public java.util.List<PostgresDatabase> getDabases() throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<PostgresSchema> getDatabaseSchema(java.lang.String databaseName) throws java.sql.SQLException
databaseName - the name of the database to find the schemasjava.sql.SQLException - thrown by the JDBC Driverpublic java.util.List<PostgresTable> getViews(java.lang.String schemaName) throws java.sql.SQLException
schemaName - the name of the database to find the schemasjava.sql.SQLException - thrown by the JDBC Driverpublic java.util.List<PostgresTable> getTables(java.lang.String schemaName) throws java.sql.SQLException
schemaName - the name of the database to find the schemasjava.sql.SQLException - thrown by the JDBC Driverpublic java.util.List<java.lang.String> getPrimaryKeyColumnNamesForTable(java.lang.String tableName)
throws java.sql.SQLException
tableName - the name of the database to find the schemasjava.sql.SQLException - thrown by the JDBC Driverpublic java.util.List<java.lang.String> getForeignKeyColumnNamesForTable(java.lang.String tableName)
throws java.sql.SQLException
tableName - the name of the tablejava.sql.SQLException - thrown by the JDBC Driverpublic java.util.List<PostgresForeignKeyLinks> getForeginKeyLinksForTable(java.lang.String tableName) throws java.sql.SQLException
tableName - the name of the table containimng the foregin keysjava.sql.SQLException - thrown by the JDBC Driver