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)
Deprecated.
As of Mueller (7.2.x), replaced by
hasColumnType(String, String, String) |
boolean |
hasColumnType(String tableName,
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
SQLExceptionpublic String getSchema()
public boolean hasColumn(String tableName,
String columnName)
throws Exception
Exception@Deprecated
public boolean hasColumnType(Class<?> tableClass,
String columnName,
String columnType)
throws Exception
hasColumnType(String, String, String)Exceptionpublic boolean hasColumnType(String tableName,
String columnName,
String columnType)
throws Exception
Exceptionpublic boolean hasRows(String tableName)
public boolean hasTable(String tableName)
throws Exception
Exceptionpublic boolean hasTable(String tableName,
boolean caseSensitive)
throws Exception
Exceptionpublic String normalizeName(String name)
throws SQLException
SQLExceptionpublic String normalizeName(String name,
DatabaseMetaData databaseMetaData)
throws SQLException
SQLException