| パッケージ | 説明 |
|---|---|
| net.sourceforge.schemaspy | |
| net.sourceforge.schemaspy.model | |
| net.sourceforge.schemaspy.view |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static List<Table> |
DbAnalyzer.getOrphans(Collection<Table> tables) |
List<Table> |
TableOrderer.getTablesOrderedByRI(Collection<Table> tables,
Collection<ForeignKeyConstraint> recursiveConstraints)
Returns a list of
Tables ordered such that parents are listed first
and child tables are listed last. |
static List<Table> |
DbAnalyzer.getTablesWithIncrementingColumnNames(Collection<Table> tables) |
static List<Table> |
DbAnalyzer.getTablesWithOneColumn(Collection<Table> tables) |
static List<Table> |
DbAnalyzer.getTablesWithoutIndexes(Collection<Table> tables)
Return a list of
Tables that have neither an index nor a primary key. |
static List<Table> |
DbAnalyzer.sortTablesByName(List<Table> tables) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static List<TableColumn> |
DbAnalyzer.getDefaultNullStringColumns(Collection<Table> 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<ForeignKeyConstraint> |
DbAnalyzer.getForeignKeyConstraints(Collection<Table> tables)
Returns a
List of all of the ForeignKeyConstraints
used by the specified tables. |
static List<ImpliedForeignKeyConstraint> |
DbAnalyzer.getImpliedConstraints(Collection<Table> tables) |
static List<TableColumn> |
DbAnalyzer.getMustBeUniqueNullableColumns(Collection<Table> 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<Table> |
DbAnalyzer.getOrphans(Collection<Table> tables) |
static List<RailsForeignKeyConstraint> |
DbAnalyzer.getRailsConstraints(Map<String,Table> tables)
Ruby on Rails-based databases typically have no real referential integrity
constraints.
|
List<Table> |
TableOrderer.getTablesOrderedByRI(Collection<Table> tables,
Collection<ForeignKeyConstraint> recursiveConstraints)
Returns a list of
Tables ordered such that parents are listed first
and child tables are listed last. |
static List<Table> |
DbAnalyzer.getTablesWithIncrementingColumnNames(Collection<Table> tables) |
static List<Table> |
DbAnalyzer.getTablesWithOneColumn(Collection<Table> tables) |
static List<Table> |
DbAnalyzer.getTablesWithoutIndexes(Collection<Table> tables)
Return a list of
Tables that have neither an index nor a primary key. |
static List<Table> |
DbAnalyzer.sortTablesByName(List<Table> tables) |
| 修飾子とタイプ | クラスと説明 |
|---|---|
class |
ExplicitRemoteTable
A remote table (exists in another schema) that was explicitly created via XML metadata.
|
class |
RemoteTable
A table that's outside of the default schema but is referenced
by or references a table in the default schema.
|
class |
View
Treat views as tables that have no rows and are represented by the SQL that
defined them.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Table |
Database.addRemoteTable(String remoteSchema,
String remoteTableName,
String baseSchema,
Properties properties,
Pattern excludeIndirectColumns,
Pattern excludeColumns) |
Table |
ForeignKeyConstraint.getChildTable()
Returns the table on the "child" end of the relationship (contains the foreign
key that references the parent table's primary key).
|
Table |
ForeignKeyConstraint.getParentTable()
Returns the parent table (the table that contains the referenced primary key
column).
|
Table |
TableColumn.getTable()
Returns the
Table that this column belongs to. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Collection<Table> |
Database.getRemoteTables() |
Collection<Table> |
Database.getTables() |
Map<String,Table> |
Database.getTablesByName()
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
Table.compareTo(Table other)
Compare this table to another table.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
Table.addForeignKey(String fkName,
String fkColName,
String pkTableSchema,
String pkTableName,
String pkColName,
int updateRule,
int deleteRule,
Map<String,Table> tables,
Pattern excludeIndirectColumns,
Pattern excludeColumns) |
void |
Table.connect(TableMeta tableMeta,
Map<String,Table> tables,
Map<String,Table> remoteTables)
Same as
#connectForeignKeys(Map, Database, Properties, Pattern, Pattern),
but uses XML-based metadata |
void |
Table.connect(TableMeta tableMeta,
Map<String,Table> tables,
Map<String,Table> remoteTables)
Same as
#connectForeignKeys(Map, Database, Properties, Pattern, Pattern),
but uses XML-based metadata |
void |
Table.connectForeignKeys(Map<String,Table> tables,
Pattern excludeIndirectColumns,
Pattern excludeColumns)
"Connect" all of this table's foreign keys to their referenced primary keys
(and, in some cases, do the reverse as well).
|
void |
RemoteTable.connectForeignKeys(Map<String,Table> tables,
Pattern excludeIndirectColumns,
Pattern excludeColumns)
Connect to the PK's referenced by this table that live in the original schema
|
void |
ExplicitRemoteTable.connectForeignKeys(Map<String,Table> tables,
Pattern excludeIndirectColumns,
Pattern excludeColumns) |
| コンストラクタと説明 |
|---|
TableColumn(Table table,
TableColumnMeta colMeta)
A TableColumn that's derived from something other than traditional database metadata
(e.g. defined in XML).
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Table |
DotConnector.getChildTable() |
Table |
DotConnector.getParentTable() |
Table |
DotNode.getTable() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected Set<Table> |
DefaultSqlFormatter.getReferencedTables(String sql,
Database db)
Returns a
Set of tables/views that are possibly referenced
by the specified SQL. |
protected Map<String,Table> |
DefaultSqlFormatter.getTableMap(Collection<? extends Table> tables,
String dbName)
Returns a
Map of the specified tables/views
keyed by several possible ways to refer to the table. |
protected Map<String,Table> |
DefaultSqlFormatter.getTableMap(Database db)
Returns a
Map of all tables/views in the database
keyed by several possible ways to refer to the table. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected String |
HtmlFormatter.getDescription(Database db,
Table table,
String text,
boolean hoverHelp) |
Set<DotConnector> |
DotConnectorFinder.getRelatedConnectors(Table table,
boolean includeImplied) |
Set<DotConnector> |
DotConnectorFinder.getRelatedConnectors(Table table1,
Table table2,
boolean includeExcluded,
boolean includeImplied)
Get all the relationships that exist between these two tables.
|
boolean |
DotConnector.pointsTo(Table possibleParentTable)
Returns true if this edge logically "points to" the specified table
|
WriteStats |
HtmlTablePage.write(Database db,
Table table,
boolean hasOrphans,
File outputDir,
WriteStats stats,
LineWriter out) |
boolean |
HtmlTableDiagrammer.write(Table table,
File diagramDir,
LineWriter html) |
void |
DotFormatter.writeAllRelationships(Table table,
boolean twoDegreesOfSeparation,
WriteStats stats,
LineWriter dot)
Write implied relationships associated with the given table
|
protected void |
HtmlFormatter.writeExcludedColumns(Set<TableColumn> excludedColumns,
Table table,
LineWriter html) |
protected void |
HtmlFormatter.writeHeader(Database db,
Table table,
String text,
boolean showOrphans,
LineWriter out)
Convenience method for all those formatters that don't deal with JavaScript
|
protected void |
HtmlFormatter.writeHeader(Database db,
Table table,
String text,
boolean showOrphans,
List<String> javascript,
LineWriter out) |
void |
HtmlTablePage.writeMainTable(Table table,
LineWriter out) |
void |
DotFormatter.writeOrphan(Table table,
LineWriter dot) |
Set<ForeignKeyConstraint> |
DotFormatter.writeRealRelationships(Table table,
boolean twoDegreesOfSeparation,
WriteStats stats,
LineWriter dot)
Write real relationships (excluding implied) associated with the given table.
|
void |
WriteStats.wroteTable(Table table) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
XmlTableFormatter.appendTables(Element schemaNode,
Collection<Table> tables)
Append the specified tables to the XML node
|
String |
SqlFormatter.format(String sql,
Database db,
Set<Table> references)
Return a HTML-formatted representation of the specified SQL.
|
String |
DefaultSqlFormatter.format(String sql,
Database db,
Set<Table> references)
Return a HTML-formatted representation of the specified SQL.
|
protected Map<String,Table> |
DefaultSqlFormatter.getTableMap(Collection<? extends Table> tables,
String dbName)
Returns a
Map of the specified tables/views
keyed by several possible ways to refer to the table. |
void |
TextFormatter.write(Collection<Table> tables,
boolean includeViews,
LineWriter out) |
void |
HtmlMainIndexPage.write(Database database,
Collection<Table> tables,
boolean showOrphansDiagram,
LineWriter html) |
void |
HtmlColumnsPage.write(Database database,
Collection<Table> tables,
HtmlColumnsPage.ColumnInfo columnInfo,
boolean showOrphansDiagram,
LineWriter html) |
void |
HtmlAnomaliesPage.write(Database database,
Collection<Table> tables,
List<? extends ForeignKeyConstraint> impliedConstraints,
boolean hasOrphans,
LineWriter out) |
void |
HtmlConstraintsPage.write(Database database,
List<ForeignKeyConstraint> constraints,
Collection<Table> tables,
boolean hasOrphans,
LineWriter html) |
boolean |
HtmlOrphansPage.write(Database db,
List<Table> orphanTables,
File diagramDir,
LineWriter html) |
boolean |
DotFormatter.writeAllRelationships(Database db,
Collection<Table> tables,
boolean compact,
boolean showColumns,
WriteStats stats,
LineWriter dot)
Returns
true if it wrote any implied relationships |
void |
HtmlConstraintsPage.writeCheckConstraints(Collection<Table> tables,
LineWriter html)
Write check constraints associated with the specified tables
|
void |
DotFormatter.writeRealRelationships(Database db,
Collection<Table> tables,
boolean compact,
boolean showColumns,
WriteStats stats,
LineWriter dot) |
| コンストラクタと説明 |
|---|
DotNode(Table table,
boolean showColumns,
String path)
Create a DotNode and specify whether it displays its columns.
|
DotNode(Table table,
String path)
Create a DotNode that is a focal point of a diagram.
|
DotNode(Table table,
String path,
DotNode.DotNodeConfig config) |
| コンストラクタと説明 |
|---|
WriteStats(Collection<Table> tables) |
Copyright © 2016. All Rights Reserved.