public class DBInspector extends Object
Constructor and Description |
---|
DBInspector(Connection connection) |
Modifier and Type | Method and Description |
---|---|
String |
getCatalog() |
String |
getSchema() |
boolean |
hasColumn(String tableName,
String columnName) |
boolean |
hasColumnType(Class<?> tableClass,
String columnName,
String columnType) |
boolean |
hasRows(String tableName) |
boolean |
hasTable(String tableName) |
boolean |
hasTable(String tableName,
boolean caseSensitive) |
public DBInspector(Connection connection)
public String getCatalog() throws SQLException
SQLException
public String getSchema()
public boolean hasColumn(String tableName, String columnName) throws Exception
Exception
public boolean hasColumnType(Class<?> tableClass, String columnName, String columnType) throws Exception
Exception
public boolean hasRows(String tableName)