All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class da.da_DatabaseTableElement

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_Element
                           |
                           +----da.da_DatabaseTableElement

public class da_DatabaseTableElement
extends xg_Element
An XML element to represent the structure of a database table.


Variable Index

 o NameAttName
The name of the attribute which holds the name of this table.
 o RegisteredName
The element type name normally used in XML for this sort of element.
 o TableName
The name of this table.

Constructor Index

 o da_DatabaseTableElement()
Construct a database table element with no name.
 o da_DatabaseTableElement(String)
Construct a database table element with a name.

Method Index

 o analyseColumns(DatabaseMetaData)
Find out about the columns in this table.
 o analyseIndexes(DatabaseMetaData)
Find out about the indexes in this table.
 o analyseTable(DatabaseMetaData, ResultSet)
Analyse the definition of the table whose details are in the InputTableResultSet, and model it here.
 o toString()
Return a string representation of the element (intended for use as debug output).
 o verify()

Verify that this node is correct (ie.

Variables

 o TableName
 protected String TableName
The name of this table.

 o RegisteredName
 public static final String RegisteredName
The element type name normally used in XML for this sort of element.

 o NameAttName
 public static final String NameAttName
The name of the attribute which holds the name of this table.

Constructors

 o da_DatabaseTableElement
 public da_DatabaseTableElement()
Construct a database table element with no name.

 o da_DatabaseTableElement
 public da_DatabaseTableElement(String InputNodeName)
Construct a database table element with a name.

Parameters:
InputNodeName - The name of the element

Methods

 o verify
 public void verify() throws xg_VerificationException

Verify that this node is correct (ie. internally correct and/or consistent with other nodes - such as its parent). The node is OK if it possesses a 'Name' attribute.

Throws: xg_VerificationException
Description of verification problem
Overrides:
verify in class xg_Node
 o analyseTable
 public void analyseTable(DatabaseMetaData InputMetaData,
                          ResultSet InputTableResultSet)
Analyse the definition of the table whose details are in the InputTableResultSet, and model it here.

Parameters:
InputMetaData - the metadata describing the database to which this table belongs
InputTableResultSet - the result set from which to obtain details abolute name of this table
 o analyseColumns
 public void analyseColumns(DatabaseMetaData InputMetaData)
Find out about the columns in this table.

 o analyseIndexes
 public void analyseIndexes(DatabaseMetaData InputMetaData)
Find out about the indexes in this table.

 o toString
 public String toString()
Return a string representation of the element (intended for use as debug output).

Returns:
String representing its name.
Overrides:
toString in class xg_Element

All Packages  Class Hierarchy  This Package  Previous  Next  Index