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,
Map<String,String> sampleDataMap) |
List<IndexInfo> |
getTableIndexes(TableId table,
List<String> tablePrimaryKey) |
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
SQLExceptionpublic static DatabaseMetaDataReader.Builder builder(String url)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Connection getConnection()
public List<TableInfo> getTables() throws SQLException
SQLExceptionpublic List<TableInfo> getTables(TableQuery query) throws SQLException
SQLExceptionpublic List<TableId> getTablesIds() throws SQLException
SQLExceptionpublic List<TableId> getTablesIds(TableQuery query) throws SQLException
SQLExceptionpublic List<String> getTableTypes() throws SQLException
SQLExceptionpublic List<ColumnInfo> getTableColumns(TableId table, Map<String,String> sampleDataMap) throws SQLException
SQLExceptionpublic List<String> getTablePrimaryKey(TableId table) throws SQLException
SQLExceptionpublic List<IndexInfo> getTableIndexes(TableId table, List<String> tablePrimaryKey) throws SQLException
SQLExceptionCopyright © GigaSpaces.