|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.UnImplNode | +--org.apache.xalan.lib.sql.StreamableNode | +--org.apache.xalan.lib.sql.Column
A JDBC Query returns a resultSet that contains rows of
Data. In each row are entried for each column. The Column
Object is used to represent the information about an
individual column. i.e. It represents the <col> element.
From this object, the attributes of that colum can be interrogated
ColumnAttribute
or the value of
the data that the current column rpresents
ColumnData
This object only represents the current column but a full array of all the columns are held in the Parent Row object. The array is zero based and the position of the current column is held in the m_columnIndex class field, the parent row information is held in the m_parentRow and the extent of the array is available in the m_childCount from the m_parentRow object.
Constructor Summary | |
Column(XStatement statement,
Row parent,
int columnIndex,
java.sql.ResultSetMetaData metadata,
java.sql.ResultSet resultSet)
Build up an instance of the Column object. |
Method Summary | |
NamedNodeMap |
getAttributes()
From the XConnection (the root of the variable), retrive the ColumnAttributes object. |
Node |
getFirstChild()
Return the col text node (the column value). |
Node |
getNextSibling()
Return the next col element for the current row. |
java.lang.String |
getNodeName()
Return "col". |
Document |
getOwnerDocument()
The parent of col is #Document (represented by XStatement). |
Node |
getParentNode()
The parent node of col is a row. |
boolean |
hasChildNodes()
Tell if there are any children of col, which is always true. |
Methods inherited from class org.apache.xalan.lib.sql.StreamableNode |
getLength,
getLocalName,
getNamedItem,
getNamedItemNS,
getNamespaceURI,
getNodeTest,
getNodeType,
getPrefix,
getUid,
getXStatement,
incermentOrderIndex,
isSupported,
item,
removeNamedItem,
removeNamedItemNS,
setNamedItem,
setNamedItemNS,
setNodeTest |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Column(XStatement statement, Row parent, int columnIndex, java.sql.ResultSetMetaData metadata, java.sql.ResultSet resultSet)
statement
- Current Documentparent
- Parent row node of this columncolumnIndex
- Index for this columnmetadata
- Meta data (column header).ResultSet
- ResultSet
Method Detail |
public Document getOwnerDocument()
public java.lang.String getNodeName()
public Node getFirstChild() throws DOMException
public Node getNextSibling()
public Node getParentNode()
public boolean hasChildNodes()
public NamedNodeMap getAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |