Package com.gigaspaces.utils.jdbc
Class DatabaseMetaDataReader
java.lang.Object
com.gigaspaces.utils.jdbc.DatabaseMetaDataReader
- All Implemented Interfaces:
Closeable,AutoCloseable
API for reading metadata from a database using JDBC.
- Since:
- 15.2.0
- Author:
- Niv Ingberg
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getTableColumns(TableId table, Map<String, String> sampleDataMap) getTableIndexes(TableId table, List<String> tablePrimaryKey) getTableInfo(TableId table) getTablePrimaryKey(TableId table) getTables(TableQuery query) getTablesIds(TableQuery query)
-
Constructor Details
-
DatabaseMetaDataReader
- Throws:
SQLException
-
-
Method Details
-
builder
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getConnection
-
getTables
- Throws:
SQLException
-
getTables
- Throws:
SQLException
-
getTablesIds
- Throws:
SQLException
-
getTablesIds
- Throws:
SQLException
-
getTableTypes
- Throws:
SQLException
-
getTableInfo
-
getTableColumns
public List<ColumnInfo> getTableColumns(TableId table, Map<String, String> sampleDataMap) throws SQLException- Throws:
SQLException
-
getTablePrimaryKey
- Throws:
SQLException
-
getTableIndexes
public List<IndexInfo> getTableIndexes(TableId table, List<String> tablePrimaryKey) throws SQLException - Throws:
SQLException
-