    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.

##

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

##

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

##

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

##

ViewName

     protected String ViewName

  The name of this view.

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

##

da_DatabaseViewElement

     public da_DatabaseViewElement()

  Construct a database view element with no name.

da_DatabaseViewElement

     public da_DatabaseViewElement(String InputNodeName)

  Construct a database view 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 'Class' attribute which names a valid database driver class.

  Throws: xg_VerificationException
    Description of verification problem
  Overrides:
    verify in class xg_Node

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

analyseColumns

     public void analyseColumns(DatabaseMetaData InputMetaData)

  Find out about the columns in this view.

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