code: public static Table getTable(DatabaseMetaData metadata, String tableName) throws Exception {
          return new Table(
              tableName,
              getPrimaryKey(metadata, tableName),
              getForeignKeys(metadata, tableName),
              getExportedKeys(metadata, tableName),
              getColumns(metadata, tableName)
          );
      }
docs: Returns a table's structure