BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xalan.lib.sql
Class ColumnAttribute

java.lang.Object
  |
  +--weblogic.apache.xml.utils.UnImplNode
        |
        +--weblogic.apache.xalan.lib.sql.StreamableNode
              |
              +--weblogic.apache.xalan.lib.sql.ColumnAttribute

public class ColumnAttribute
extends StreamableNode
implements org.w3c.dom.Attr

Represents a column attribute on a column-header element. Each column-header element can contain any of the following attributes, depending on the ResultSetMetadata object returned with the query result set.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.

See Also:
ColumnHeader

Field Summary
static int CASESENSITIVE
          Constant for CASESENSITIVE
static int CATALOGUE_NAME
          Constant for CATALOGUE_NAME
static int COLUMN_LABEL
          Constant for COLUMN_LABEL
static int COLUMN_NAME
          Constant for COLUMN_NAME
static int COLUMN_TYPE
          Constant for COLUMN_TYPE
static int COLUMN_TYPENAME
          Constant for COLUMN_TYPENAME
static int DEFINATELYWRITABLE
          Constant for DEFINATELYWRITABLE
static int DISPLAY_SIZE
          Constnat for DISPLAY_SIZE
static int ISNULLABLE
          Constant for ISNULLABLE
static int ISSEARCHABLE
          Constant for ISSEARCHABLE
static int ISSIGNED
          Constant for ISSIGNED
static int ISWRITEABLE
          Constant for ISWRITEABLE
static int NUMBER_ATTRIBUTES
          Constant for NUMBER_ATTRIBUTES
static int PRECISION
          Constant for PRECISION
static java.lang.String S_CASESENSITIVE
          Constant for S_CASESENSITIVE
static java.lang.String S_CATALOGUE_NAME
          Constant for S_CATALOGUE_NAME
static java.lang.String S_COLUMN_LABEL
          Constant for S_COLUMN_LABEL
static java.lang.String S_COLUMN_NAME
          Constant for S_COLUMN_NAME
static java.lang.String S_COLUMN_TYPE
          Constant for S_COLUMN_TYPE
static java.lang.String S_COLUMN_TYPENAME
          Constant for S_COLUMN_TYPENAME
static java.lang.String S_DEFINATELYWRITABLE
          Constant for S_DEFINATELYWRITABLE
static java.lang.String S_DISPLAY_SIZE
          Constant for S_DISPLAY_SIZE
static java.lang.String S_ISNULLABLE
          Constant for S_ISNULLABLE
static java.lang.String S_ISSEARCHABLE
          Constant for S_ISSEARCHABLE
static java.lang.String S_ISSIGNED
          Constant for S_ISSIGNED
static java.lang.String S_ISWRITEABLE
          Constant for S_ISWRITEABLE
static java.lang.String S_PRECISION
          Constant for S_PRECISION
static java.lang.String S_SCALE
          Constant for S_SCALE
static java.lang.String S_SCHEMA_NAME
          Constant for S_SCHEMA_NAME
static java.lang.String S_TABLE_NAME
          Constant for S_TABLE_NAME
static int SCALE
          Constant for SCALE
static int SCHEMA_NAME
          Constant for SCHEMA_NAME
static int TABLE_NAME
          Constant for TABLE_NAME
 
Constructor Summary
ColumnAttribute(XStatement statement, org.w3c.dom.Element owner, int columnIndex, int type, java.sql.ResultSetMetaData metadata)
          Constructor ColumnAttribute
 
Method Summary
 java.lang.String getName()
          Get the column name
 java.lang.String getNodeName()
          Get the column name
 short getNodeType()
          Return Node.ATTRIBUTE_NODE.
 java.lang.String getNodeValue()
          Return column value
 org.w3c.dom.Element getOwnerElement()
          Return column owner
 org.w3c.dom.Node getParentNode()
          Get parent node
 boolean getSpecified()
          Return Specified
 java.lang.String getValue()
          Return column value
 boolean setName(java.lang.String name)
          Set column name
 void setValue(java.lang.String value)
          setValue - Not supported
 
Methods inherited from class weblogic.apache.xalan.lib.sql.StreamableNode
getAttributes, getLength, getLocalName, getNamedItem, getNamedItemNS, getNamespaceURI, getNodeTest, getOwnerDocument, getPrefix, getUid, getXStatement, isSupported, item, removeNamedItem, removeNamedItemNS, setNamedItem, setNamedItemNS, setNodeTest
 
Methods inherited from class weblogic.apache.xml.utils.UnImplNode
appendChild, appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, error, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildNodes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getImplementation, getLastChild, getNextSibling, getPreviousSibling, getTagName, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importNode, insertBefore, insertData, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setNodeValue, setPrefix, splitText, substringData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CATALOGUE_NAME

public static final int CATALOGUE_NAME
Constant for CATALOGUE_NAME

DISPLAY_SIZE

public static final int DISPLAY_SIZE
Constnat for DISPLAY_SIZE

COLUMN_LABEL

public static final int COLUMN_LABEL
Constant for COLUMN_LABEL

COLUMN_NAME

public static final int COLUMN_NAME
Constant for COLUMN_NAME

COLUMN_TYPE

public static final int COLUMN_TYPE
Constant for COLUMN_TYPE

COLUMN_TYPENAME

public static final int COLUMN_TYPENAME
Constant for COLUMN_TYPENAME

PRECISION

public static final int PRECISION
Constant for PRECISION

SCALE

public static final int SCALE
Constant for SCALE

SCHEMA_NAME

public static final int SCHEMA_NAME
Constant for SCHEMA_NAME

TABLE_NAME

public static final int TABLE_NAME
Constant for TABLE_NAME

CASESENSITIVE

public static final int CASESENSITIVE
Constant for CASESENSITIVE

DEFINATELYWRITABLE

public static final int DEFINATELYWRITABLE
Constant for DEFINATELYWRITABLE

ISNULLABLE

public static final int ISNULLABLE
Constant for ISNULLABLE

ISSIGNED

public static final int ISSIGNED
Constant for ISSIGNED

ISWRITEABLE

public static final int ISWRITEABLE
Constant for ISWRITEABLE

ISSEARCHABLE

public static final int ISSEARCHABLE
Constant for ISSEARCHABLE

NUMBER_ATTRIBUTES

public static final int NUMBER_ATTRIBUTES
Constant for NUMBER_ATTRIBUTES

S_CATALOGUE_NAME

public static final java.lang.String S_CATALOGUE_NAME
Constant for S_CATALOGUE_NAME

S_DISPLAY_SIZE

public static final java.lang.String S_DISPLAY_SIZE
Constant for S_DISPLAY_SIZE

S_COLUMN_LABEL

public static final java.lang.String S_COLUMN_LABEL
Constant for S_COLUMN_LABEL

S_COLUMN_NAME

public static final java.lang.String S_COLUMN_NAME
Constant for S_COLUMN_NAME

S_COLUMN_TYPE

public static final java.lang.String S_COLUMN_TYPE
Constant for S_COLUMN_TYPE

S_COLUMN_TYPENAME

public static final java.lang.String S_COLUMN_TYPENAME
Constant for S_COLUMN_TYPENAME

S_PRECISION

public static final java.lang.String S_PRECISION
Constant for S_PRECISION

S_SCALE

public static final java.lang.String S_SCALE
Constant for S_SCALE

S_SCHEMA_NAME

public static final java.lang.String S_SCHEMA_NAME
Constant for S_SCHEMA_NAME

S_TABLE_NAME

public static final java.lang.String S_TABLE_NAME
Constant for S_TABLE_NAME

S_CASESENSITIVE

public static final java.lang.String S_CASESENSITIVE
Constant for S_CASESENSITIVE

S_DEFINATELYWRITABLE

public static final java.lang.String S_DEFINATELYWRITABLE
Constant for S_DEFINATELYWRITABLE

S_ISNULLABLE

public static final java.lang.String S_ISNULLABLE
Constant for S_ISNULLABLE

S_ISSIGNED

public static final java.lang.String S_ISSIGNED
Constant for S_ISSIGNED

S_ISWRITEABLE

public static final java.lang.String S_ISWRITEABLE
Constant for S_ISWRITEABLE

S_ISSEARCHABLE

public static final java.lang.String S_ISSEARCHABLE
Constant for S_ISSEARCHABLE
Constructor Detail

ColumnAttribute

public ColumnAttribute(XStatement statement,
                       org.w3c.dom.Element owner,
                       int columnIndex,
                       int type,
                       java.sql.ResultSetMetaData metadata)
Constructor ColumnAttribute

Parameters:
statement - Owning document
owner - Column owning this attribute
columnIndex - Owning column index
type - attribute type
metadata - Column header
Method Detail

setName

public boolean setName(java.lang.String name)
Set column name

Parameters:
name - column attribute name
Returns:
True if the name is found in the lookup table

getNodeName

public java.lang.String getNodeName()
Get the column name

Returns:
the column name
Overrides:
getNodeName in class UnImplNode

getName

public java.lang.String getName()
Get the column name
Specified by:
getName in interface org.w3c.dom.Attr

Returns:
the column name

getSpecified

public boolean getSpecified()
Return Specified
Specified by:
getSpecified in interface org.w3c.dom.Attr

Returns:
true
Overrides:
getSpecified in class UnImplNode

getNodeValue

public java.lang.String getNodeValue()
Return column value

Returns:
column value
Overrides:
getNodeValue in class UnImplNode

getValue

public java.lang.String getValue()
Return column value
Specified by:
getValue in interface org.w3c.dom.Attr

Returns:
column value

setValue

public void setValue(java.lang.String value)
              throws org.w3c.dom.DOMException
setValue - Not supported
Specified by:
setValue in interface org.w3c.dom.Attr

Parameters:
value - column value to set
Throws:
org.w3c.dom.DOMException -  
Overrides:
setValue in class UnImplNode

getOwnerElement

public org.w3c.dom.Element getOwnerElement()
Return column owner
Specified by:
getOwnerElement in interface org.w3c.dom.Attr

Returns:
Column owner
Overrides:
getOwnerElement in class UnImplNode

getParentNode

public org.w3c.dom.Node getParentNode()
Get parent node

Returns:
null
Overrides:
getParentNode in class UnImplNode

getNodeType

public short getNodeType()
Return Node.ATTRIBUTE_NODE.

Returns:
ATTRIBUTE_NODE type
Overrides:
getNodeType in class StreamableNode

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.