|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.schemaspy.DBAnalyzer
public class DBAnalyzer
| Constructor Summary | |
|---|---|
DBAnalyzer()
|
|
| Method Summary | |
|---|---|
static void |
dumpResultSetRow(ResultSet rs,
String description)
For debugging/analyzing result sets |
static List |
getDefaultNullStringColumns(Collection tables)
Returns a list of columns that have the word "NULL" or "null" as their default value instead of the likely candidate value null. |
static List |
getForeignKeyConstraints(Collection tables)
Returns a List of all of the ForeignKeyConstraints
used by the specified tables. |
static List |
getImpliedConstraints(Collection tables)
|
static List |
getMustBeUniqueNullableColumns(Collection tables)
Return a list of TableColumns that are both nullable
and have an index that specifies that they must be unique (a rather strange combo). |
static List |
getOrphans(Collection tables)
|
static List |
getPopulatedSchemas(DatabaseMetaData meta)
getSchemas - returns a List of schema names (Strings) that contain tables |
static List |
getPopulatedSchemas(DatabaseMetaData meta,
String schemaSpec)
getSchemas - returns a List of schema names (Strings) that contain tables and match the schemaSpec regular expression |
static List |
getSchemas(DatabaseMetaData meta)
getSchemas - returns a List of schema names (Strings) |
static List |
getTablesWithIncrementingColumnNames(Collection tables)
|
static List |
getTablesWithOneColumn(Collection tables)
|
static List |
getTablesWithoutIndexes(Collection tables)
Return a list of Tables that have neither an index nor a primary key. |
static List |
sortColumnsByTable(List columns)
|
static List |
sortTablesByName(List tables)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBAnalyzer()
| Method Detail |
|---|
public static List getImpliedConstraints(Collection tables)
throws SQLException
SQLExceptionpublic static List getForeignKeyConstraints(Collection tables)
List of all of the ForeignKeyConstraints
used by the specified tables.
tables - Collection
public static List getOrphans(Collection tables)
public static List getMustBeUniqueNullableColumns(Collection tables)
TableColumns that are both nullable
and have an index that specifies that they must be unique (a rather strange combo).
public static List getTablesWithoutIndexes(Collection tables)
Tables that have neither an index nor a primary key.
public static List getTablesWithIncrementingColumnNames(Collection tables)
public static List getTablesWithOneColumn(Collection tables)
public static List sortTablesByName(List tables)
public static List sortColumnsByTable(List columns)
public static List getDefaultNullStringColumns(Collection tables)
tables - Collection
public static List getSchemas(DatabaseMetaData meta)
throws SQLException
meta - DatabaseMetaData
SQLException
public static List getPopulatedSchemas(DatabaseMetaData meta)
throws SQLException
meta - DatabaseMetaData
SQLException
public static List getPopulatedSchemas(DatabaseMetaData meta,
String schemaSpec)
throws SQLException
schemaSpec regular expression
meta - DatabaseMetaData
SQLException
public static void dumpResultSetRow(ResultSet rs,
String description)
throws SQLException
rs - ResultSet
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||