com.manspace.resultSetDOMWrapper
Class ResultSetElement

java.lang.Object
  |
  +--com.manspace.resultSetDOMWrapper.ReadOnlyNode
        |
        +--com.manspace.resultSetDOMWrapper.ReadOnlyElement
              |
              +--com.manspace.resultSetDOMWrapper.ArrayBasedElement
                    |
                    +--com.manspace.resultSetDOMWrapper.ResultSetElement
All Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.NodeList

public class ResultSetElement
extends ArrayBasedElement
implements org.w3c.dom.Element

Implements the DOM element that represents the result-set

Version:
1.0
Author:
Tal Rotbart

Field Summary
protected static java.lang.String _propertyColumnMetaData
          Static constant that holds the string identification for the column meta-data property; The constant is used to identify the properties in property / vetoable change events.
protected static java.lang.String _propertyResultSet
          Static constant that holds the string identification for the result-set property; The constant is used to identify the properties in property / vetoable change events.
protected static java.lang.String _propertyResultSetDocument
          Static constant that holds the string identification for the result-set document property; The constant is used to identify the properties in property / vetoable change events.
protected static java.lang.String _propertyRowElements
          Static constant that holds the string identification for the row elements array property; The constant is used to identify the properties in property / vetoable change events.
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
ResultSetElement(ResultSetDocument resultSetDocument, java.sql.ResultSet resultSet)
          Construct a new result-set element
 
Method Summary
 void clear()
          Clear the elements array for GC
 org.w3c.dom.Element[] getChildElements()
          Returns the array of child elements
 java.lang.String getChildElementsLocalName()
          The local name of child elements
protected  java.lang.String[][] getColumnMetaData()
          Returns the column meta-data property; If it doesn't exist -- creates it.
 java.lang.String getLocalName()
           
 java.lang.String getNamespaceURI()
           
 org.w3c.dom.Node getNextSibling()
           
 org.w3c.dom.Document getOwnerDocument()
           
 org.w3c.dom.Node getParentNode()
           
 java.lang.String getPrefix()
           
 org.w3c.dom.Node getPreviousSibling()
           
protected  java.sql.ResultSet getResultSet()
          Returns the result-set property
protected  ResultSetDocument getResultSetDocument()
          Returns the result-set document property
protected  RowElement[] getRowElements()
          Returns the row elements array property; If it doesn't exist -- creates it.
 
Methods inherited from class com.manspace.resultSetDOMWrapper.ArrayBasedElement
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getLength, getNodeValue, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, item
 
Methods inherited from class com.manspace.resultSetDOMWrapper.ReadOnlyElement
getNodeType, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from class com.manspace.resultSetDOMWrapper.ReadOnlyNode
appendChild, getNodeName, getTagName, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNodeName, getNodeType, getNodeValue, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

_propertyResultSetDocument

protected static final java.lang.String _propertyResultSetDocument
Static constant that holds the string identification for the result-set document property; The constant is used to identify the properties in property / vetoable change events.

See Also:
Constant Field Values

_propertyResultSet

protected static final java.lang.String _propertyResultSet
Static constant that holds the string identification for the result-set property; The constant is used to identify the properties in property / vetoable change events.

See Also:
Constant Field Values

_propertyRowElements

protected static final java.lang.String _propertyRowElements
Static constant that holds the string identification for the row elements array property; The constant is used to identify the properties in property / vetoable change events.

See Also:
Constant Field Values

_propertyColumnMetaData

protected static final java.lang.String _propertyColumnMetaData
Static constant that holds the string identification for the column meta-data property; The constant is used to identify the properties in property / vetoable change events.

See Also:
Constant Field Values
Constructor Detail

ResultSetElement

public ResultSetElement(ResultSetDocument resultSetDocument,
                        java.sql.ResultSet resultSet)
Construct a new result-set element

Method Detail

getResultSetDocument

protected ResultSetDocument getResultSetDocument()
Returns the result-set document property

Returns:
The result-set document reference.

getResultSet

protected java.sql.ResultSet getResultSet()
Returns the result-set property

Returns:
The result-set reference.

getRowElements

protected RowElement[] getRowElements()
Returns the row elements array property; If it doesn't exist -- creates it.

Returns:
The row elements array reference.

getColumnMetaData

protected java.lang.String[][] getColumnMetaData()
Returns the column meta-data property; If it doesn't exist -- creates it.

Returns:
The column meta-data reference.

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Specified by:
getOwnerDocument in interface org.w3c.dom.Node
See Also:
Node.getOwnerDocument()

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface org.w3c.dom.Node
See Also:
Node.getLocalName()

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface org.w3c.dom.Node
See Also:
Node.getPrefix()

getNamespaceURI

public java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in interface org.w3c.dom.Node
See Also:
Node.getNamespaceURI()

getNextSibling

public org.w3c.dom.Node getNextSibling()
Specified by:
getNextSibling in interface org.w3c.dom.Node
See Also:
Node.getNextSibling()

getParentNode

public org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node
See Also:
Node.getParentNode()

getPreviousSibling

public org.w3c.dom.Node getPreviousSibling()
Specified by:
getPreviousSibling in interface org.w3c.dom.Node
See Also:
Node.getPreviousSibling()

getChildElements

public org.w3c.dom.Element[] getChildElements()
Description copied from class: ArrayBasedElement
Returns the array of child elements

Specified by:
getChildElements in class ArrayBasedElement
Returns:
The array of child elements
See Also:
com.mercury.topaz.tdm.adapters.dbAdapter.ArrayBasedElement#getChildElements()

getChildElementsLocalName

public java.lang.String getChildElementsLocalName()
Description copied from class: ArrayBasedElement
The local name of child elements

Specified by:
getChildElementsLocalName in class ArrayBasedElement
Returns:
The local name of child elements
See Also:
com.mercury.topaz.tdm.adapters.dbAdapter.ArrayBasedElement#getChildElementsLocalName()

clear

public void clear()
Description copied from class: ArrayBasedElement
Clear the elements array for GC

Specified by:
clear in class ArrayBasedElement
See Also:
com.manspace.resultSetDOMWrapper.ArrayBasedElement#clearElements()


Copyright © 2003 Tal Rotbart, Manspace. See LICENSE.TXT for license.