All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class da.da_DatabaseViewElement

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

public class da_DatabaseViewElement
extends xg_Element
An XML element to represent the structure of a database view.


Variable Index

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

Constructor Index

 o da_DatabaseViewElement()
Construct a database view element with no name.
 o da_DatabaseViewElement(String)
Construct a database view element with a name.

Method Index

 o analyseColumns(DatabaseMetaData)
Find out about the columns in this view.
 o analyseView(DatabaseMetaData, ResultSet)
Analyse the definition of the view whose details are in the InputViewResultSet, 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 ViewName
 protected String ViewName
The name of this view.

 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 view.

Constructors

 o da_DatabaseViewElement
 public da_DatabaseViewElement()
Construct a database view element with no name.

 o da_DatabaseViewElement
 public da_DatabaseViewElement(String InputNodeName)
Construct a database view 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 'Class' attribute which names a valid database driver class.

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

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

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

Returns:
String representing the node's name.
Overrides:
toString in class xg_Element

All Packages  Class Hierarchy  This Package  Previous  Next  Index