Class TableMetadataHelper
java.lang.Object
org.eclipse.dirigible.database.ds.model.transfer.TableMetadataHelper
public class TableMetadataHelper extends Object
Table Metadata Helper
-
Constructor Summary
Constructors Constructor Description TableMetadataHelper() -
Method Summary
Modifier and Type Method Description static List<TableColumn>getColumns(Connection connection, String name)Returns the columns result setstatic ResultSetgetPrimaryKeys(Connection connection, String name)Returns the primary keys result set
-
Constructor Details
-
TableMetadataHelper
public TableMetadataHelper()
-
-
Method Details
-
getColumns
Returns the columns result set- Parameters:
connection- the connectionname- the table name- Returns:
- the result set with the columns metadata
- Throws:
SQLException- in case of an error
-
getPrimaryKeys
Returns the primary keys result set- Parameters:
connection- the connectionname- the table name- Returns:
- the result set with the primary keys metadata
- Throws:
SQLException- in case of an error
-