org.apache.xalan.lib.sql
Class ColumnData

java.lang.Object
  |
  +--org.apache.xml.utils.UnImplNode
        |
        +--org.apache.xalan.lib.sql.StreamableNode
              |
              +--org.apache.xalan.lib.sql.ColumnData

public class ColumnData
extends StreamableNode
implements Text

Represents the col element text node, i.e., the column value.


Constructor Summary
ColumnData(XStatement statement, Column parent, java.sql.ResultSet resultSet)
          Constructor ColumnData
 
Method Summary
 void appendData(java.lang.String arg)
          Append Data to the Column Data
 void deleteData(int offset, int count)
          Delete Content from the Column Data
 java.lang.String getData()
          Return the value for this col element text node.
 Node getFirstChild()
          Return First child.
 int getLength()
          The number of 16-bit units that are available through data and the substringData method below.
 Node getNextSibling()
          Return next sibling.
 java.lang.String getNodeName()
          Return node name, "#Text".
 short getNodeType()
          Return node type, Node.TEXT_NODE.
 java.lang.String getNodeValue()
          Return the value for this col element text node.
 Document getOwnerDocument()
          The owner of a col text node is the #Document (represented by XStatement).
 Node getParentNode()
          The parent node of the col text node is the col node.
 boolean hasChildNodes()
          Tell if there are any children of the col node, which is always false.
 void insertData(int offset, java.lang.String arg)
          Insert data into the Column Data
 void replaceData(int start, int rSize, java.lang.String str)
           
 void setData(java.lang.String data)
           
 java.lang.String substringData(int offset, int count)
          substringData
 
Methods inherited from class org.apache.xalan.lib.sql.StreamableNode
getAttributes, getLocalName, getNamedItem, getNamedItemNS, getNamespaceURI, getNodeTest, getPrefix, getUid, getXStatement, incermentOrderIndex, isSupported, item, removeNamedItem, removeNamedItemNS, setNamedItem, setNamedItemNS, setNodeTest
 
Methods inherited from class org.apache.xml.utils.UnImplNode
appendChild, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, error, error, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildNodes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getLastChild, getOwnerElement, getPreviousSibling, getSpecified, getTagName, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertBefore, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setNodeValue, setPrefix, setValue, splitText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnData

public ColumnData(XStatement statement,
                  Column parent,
                  java.sql.ResultSet resultSet)
Constructor ColumnData
Parameters:
statement - Owning document
parent - Owning column
ResultSet - ResultSet
Throws:
SQLException, - make the Column Class deal with the problem
Method Detail

getNodeType

public short getNodeType()
Return node type, Node.TEXT_NODE.
Returns:
Node.TEXT_NODE.
Overrides:
getNodeType in class StreamableNode

getData

public java.lang.String getData()
Return the value for this col element text node. I.e., return a String representation of the data for this column in the current row.
Returns:
the data for this column

getNodeValue

public java.lang.String getNodeValue()
                              throws DOMException
Return the value for this col element text node. I.e., return a String representation of the data for this column in the current row. Calls @link #getNodeValue() getNodeValue()}.
Returns:
the value for this column
Throws:
DOMException -  
Overrides:
getNodeValue in class UnImplNode

getLength

public int getLength()
The number of 16-bit units that are available through data and the substringData method below. This may have the value zero, i.e., CharacterData nodes may be empty.
Returns:
Number of characters in data
Overrides:
getLength in class StreamableNode

substringData

public java.lang.String substringData(int offset,
                                      int count)
substringData
Parameters:
offset - Starting offset of substring
count - Number of characters in substring
Returns:
String
Overrides:
substringData in class UnImplNode

appendData

public void appendData(java.lang.String arg)
Append Data to the Column Data
Parameters:
arg - String data to append
Overrides:
appendData in class UnImplNode

insertData

public void insertData(int offset,
                       java.lang.String arg)
Insert data into the Column Data
Parameters:
offset -  
arg -  
Overrides:
insertData in class UnImplNode

deleteData

public void deleteData(int offset,
                       int count)
Delete Content from the Column Data
Parameters:
offset -  
count -  
Overrides:
deleteData in class UnImplNode

replaceData

public void replaceData(int start,
                        int rSize,
                        java.lang.String str)
Parameters:
offset -  
count -  
arg -  
Overrides:
replaceData in class UnImplNode

setData

public void setData(java.lang.String data)
Parameters:
data -  
Overrides:
setData in class UnImplNode

getOwnerDocument

public Document getOwnerDocument()
The owner of a col text node is the #Document (represented by XStatement).
Returns:
The owning document
Overrides:
getOwnerDocument in class StreamableNode

getNodeName

public java.lang.String getNodeName()
Return node name, "#Text".
Returns:
"#Text".
Overrides:
getNodeName in class UnImplNode

getFirstChild

public Node getFirstChild()
Return First child. This always returns null.
Returns:
null
Overrides:
getFirstChild in class UnImplNode

getNextSibling

public Node getNextSibling()
Return next sibling. This always returns null.
Returns:
null
Overrides:
getNextSibling in class UnImplNode

getParentNode

public Node getParentNode()
The parent node of the col text node is the col node.
Returns:
The parent node i.e the column node
Overrides:
getParentNode in class UnImplNode

hasChildNodes

public boolean hasChildNodes()
Tell if there are any children of the col node, which is always false.
Returns:
false
Overrides:
hasChildNodes in class UnImplNode


Copyright © 2000 Apache XML Project. All Rights Reserved.