All Packages Class Hierarchy This Package Previous Next Index
Class da.da_ColumnElement
java.lang.Object
|
+----com.sun.java.swing.tree.DefaultMutableTreeNode
|
+----xg.xg_Node
|
+----xg.xg_Element
|
+----da.da_ColumnElement
- public class da_ColumnElement
- extends xg_Element
An XML element to represent the structure of one column in a database
table.
-
ColumnName
- The name of this column.
-
ColumnSizeAttName
- The name of the attribute which holds the size of this column.
-
DataTypeAttName
- The name of the attribute which holds the data type of this column (using
one of the values defined in java.sql.Types).
-
DataTypeNameAttName
- The name of the attribute which holds the data type name of this column.
-
DecimalDigitsAttName
- The name of the attribute which holds the number of decimal digits of this
column.
-
NameAttName
- The name of the attribute which holds the name of this column.
-
RegisteredName
- The element type name normally used in XML for this sort of element.
-
da_ColumnElement()
- Construct a database column element with no name.
-
da_ColumnElement(String)
- Construct a database column element with a name.
-
analyseColumn(DatabaseMetaData, ResultSet)
- Analyse the definition of the column whose details are in the
InputColumnResultSet, and model it here.
-
toString()
- Get a summary descriptive string suitable for display in the tree view or
elsewhere.
-
verify()
-
Verify that this node is correct (ie.
ColumnName
protected String ColumnName
- The name of this column.
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 column.
DataTypeAttName
public static final String DataTypeAttName
- The name of the attribute which holds the data type of this column (using
one of the values defined in java.sql.Types).
DataTypeNameAttName
public static final String DataTypeNameAttName
- The name of the attribute which holds the data type name of this column.
ColumnSizeAttName
public static final String ColumnSizeAttName
- The name of the attribute which holds the size of this column.
DecimalDigitsAttName
public static final String DecimalDigitsAttName
- The name of the attribute which holds the number of decimal digits of this
column.
da_ColumnElement
public da_ColumnElement()
- Construct a database column element with no name.
da_ColumnElement
public da_ColumnElement(String InputNodeName)
- Construct a database column 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
analyseColumn
public void analyseColumn(DatabaseMetaData InputMetaData,
ResultSet InputColumnResultSet)
- Analyse the definition of the column whose details are in the
InputColumnResultSet, and model it here.
- Parameters:
- InputMetaData - the metadata describing the database to which
this table belongs
- InputColumnResultSet - the result set from which to obtain details
about the column we represent
toString
public String toString()
- Get a summary descriptive string suitable for display in the tree view or
elsewhere.
- Returns:
- A description suitable for display in the tree view
- Overrides:
- toString in class xg_Element
All Packages Class Hierarchy This Package Previous Next Index