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) |
String |
normalizeName(String name) |
String |
normalizeName(String name,
DatabaseMetaData databaseMetaData) |
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)
public boolean hasTable(String tableName) throws Exception
Exception
public boolean hasTable(String tableName, boolean caseSensitive) throws Exception
Exception
public String normalizeName(String name) throws SQLException
SQLException
public String normalizeName(String name, DatabaseMetaData databaseMetaData) throws SQLException
SQLException