public class DatabaseMetaDataReader extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseMetaDataReader.Builder |
Constructor and Description |
---|
DatabaseMetaDataReader(String url,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
static DatabaseMetaDataReader.Builder |
builder(String url) |
void |
close() |
Connection |
getConnection() |
List<ColumnInfo> |
getTableColumns(TableId table) |
List<IndexInfo> |
getTableIndexes(TableId table) |
TableInfo |
getTableInfo(TableId table) |
List<String> |
getTablePrimaryKey(TableId table) |
List<TableInfo> |
getTables() |
List<TableInfo> |
getTables(TableQuery query) |
List<TableId> |
getTablesIds() |
List<TableId> |
getTablesIds(TableQuery query) |
List<String> |
getTableTypes() |
public DatabaseMetaDataReader(String url, Properties properties) throws SQLException
SQLException
public static DatabaseMetaDataReader.Builder builder(String url)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Connection getConnection()
public List<TableInfo> getTables() throws SQLException
SQLException
public List<TableInfo> getTables(TableQuery query) throws SQLException
SQLException
public List<TableId> getTablesIds() throws SQLException
SQLException
public List<TableId> getTablesIds(TableQuery query) throws SQLException
SQLException
public List<String> getTableTypes() throws SQLException
SQLException
public TableInfo getTableInfo(TableId table) throws SQLException
SQLException
public List<ColumnInfo> getTableColumns(TableId table) throws SQLException
SQLException
public List<String> getTablePrimaryKey(TableId table) throws SQLException
SQLException
public List<IndexInfo> getTableIndexes(TableId table) throws SQLException
SQLException
Copyright © GigaSpaces.