| java.lang.Object workbench.db.report.ReportTable
ReportTable | public class ReportTable (Code) | | A class to hold information about a database table that
will eventually be stored in an XML report.
It uses a
workbench.db.TableIdentifier to store the
table's name, and
workbench.db.ColumnIdentifier to
store the table's columns.
When initialized with a connection, it tries to find the primary
and foreign key constraints as well.
Primary feature of this class is that it can create an XML
representation of itself.
author: support@sql-workbench.net |
TAG_TABLE_CATALOG | final public static String TAG_TABLE_CATALOG(Code) | | |
TAG_TABLE_COMMENT | final public static String TAG_TABLE_COMMENT(Code) | | |
TAG_TABLE_CONSTRAINT | final public static String TAG_TABLE_CONSTRAINT(Code) | | |
TAG_TABLE_NAME | final public static String TAG_TABLE_NAME(Code) | | |
TAG_TABLE_SCHEMA | final public static String TAG_TABLE_SCHEMA(Code) | | |
ReportTable | public ReportTable(TableIdentifier tbl, WbConnection conn, String nspace, boolean includeIndex, boolean includeFk, boolean includePk, boolean includeConstraints, boolean includeGrants) throws SQLException(Code) | | Initialize this ReportTable.
This will read the following information for the table:
|
getGrants | public ReportTableGrants getGrants()(Code) | | Returns the ReportTableGrants for this table. If table grants
are not included, it will return null.
|
getPrimaryKeyColumns | public List<String> getPrimaryKeyColumns()(Code) | | Return the list of column names (String)
that make up the primary key of this table
If the table has no primary key, an empty list
is returned.
|
getPrimaryKeyName | public String getPrimaryKeyName()(Code) | | Return the name of the primary key
|
getTableConstraints | public String getTableConstraints()(Code) | | |
getXml | public StrBuffer getXml(StrBuffer indent)(Code) | | Return an XML representation of this table information.
The columns will be listed alphabetically not in the order
they were retrieved from the database.
|
hashCode | public int hashCode()(Code) | | |
setNamespace | public void setNamespace(String namespace)(Code) | | The namespace to be used for the XML representation
|
setSchemaNameToUse | public void setSchemaNameToUse(String name)(Code) | | |
|
|