    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.

##

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

##

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

##

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

  Verify that this node is correct (ie.

##

TableName

     protected String TableName

  The name of this table.

RegisteredName

     public static final String RegisteredName

  The element type name normally used in XML for this sort of element.

NameAttName

     public static final String NameAttName

  The name of the attribute which holds the name of this table.

##

da_DatabaseTableElement

     public da_DatabaseTableElement()

  Construct a database table element with no name.

da_DatabaseTableElement

     public da_DatabaseTableElement(String InputNodeName)

  Construct a database table element with a name.

  Parameters:
    InputNodeName - The name of the element

##

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

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

analyseColumns

     public void analyseColumns(DatabaseMetaData InputMetaData)

  Find out about the columns in this table.

analyseIndexes

     public void analyseIndexes(DatabaseMetaData InputMetaData)

  Find out about the indexes in this table.

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