Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

XmlReaderImpl.XmlHandler Class Reference

Inherits org::xml::sax::helpers::DefaultHandler.

List of all members.


Public Member Functions

 XmlHandler (WebRowSet webRs)
void startDocument () throws SAXException
 Receive notification of the beginning of the document.
void endDocument () throws SAXException
 Receive notification of the end of the document.
void startElement (String namespaceURI, String localName, String qName, Attributes attr) throws SAXException
 Receive notification of the start of an element.
void endElement (String namespaceURI, String localName, String qName) throws SAXException
 Receive notification of the end of an element.
void characters (char[] ch, int start, int length) throws SAXException

Private Member Functions

void readProperties () throws SQLException
void readMetadata () throws SQLException
void readData () throws SQLException
Object parseObject (String value) throws SQLException
int getType (String type) throws SQLException
void initRow ()
void insertRow (String tagName) throws SQLException
int parseInt (String value) throws SQLException
long parseLong (String value) throws SQLException
float parseFloat (String value) throws SQLException
double parseDouble (String value) throws SQLException
Date parseDate (String value) throws SQLException
Time parseTime (String value) throws SQLException
Timestamp parseTimestamp (String value) throws SQLException
boolean parseBoolean (String value)
BigDecimal parseBigDecimal (String value) throws SQLException

Private Attributes

WebRowSet webRs
int state = 0
String currentTagName
String currentValue
int colIndex
ArrayList< CachedRowrows
CachedRow currentRow
int columnCount
ArrayList< Object > columnData
ArrayList< Object > updateData
ArrayList< Integer > updateColIndex
ArrayList< Integer > keyCols
Map< String, Class<?> > map
String type
String className

Static Private Attributes

static final int READ_PROPERTIES = 1
static final int READ_METADATA = 2
static final int READ_DATA = 3

Constructor & Destructor Documentation

XmlHandler ( WebRowSet  webRs  ) 


Member Function Documentation

void startDocument (  )  throws SAXException

Receive notification of the beginning of the document.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).

Exceptions:
org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception.
See also:
org.xml.sax.ContentHandler.startDocument

Reimplemented from DefaultHandler.

void endDocument (  )  throws SAXException

Receive notification of the end of the document.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).

Exceptions:
org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception.
See also:
org.xml.sax.ContentHandler.endDocument

Reimplemented from DefaultHandler.

void startElement ( String  uri,
String  localName,
String  qName,
Attributes  attributes 
) throws SAXException

Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).

Parameters:
uri The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
localName The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName The qualified name (with prefix), or the empty string if qualified names are not available.
attributes The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Exceptions:
org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception.
See also:
org.xml.sax.ContentHandler.startElement

Reimplemented from DefaultHandler.

void endElement ( String  uri,
String  localName,
String  qName 
) throws SAXException

Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).

Parameters:
uri The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
localName The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName The qualified name (with prefix), or the empty string if qualified names are not available.
Exceptions:
org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception.
See also:
org.xml.sax.ContentHandler.endElement

Reimplemented from DefaultHandler.

void characters ( char[]  ch,
int  start,
int  length 
) throws SAXException

void readProperties (  )  throws SQLException [private]

void readMetadata (  )  throws SQLException [private]

void readData (  )  throws SQLException [private]

Object parseObject ( String  value  )  throws SQLException [private]

int getType ( String  type  )  throws SQLException [private]

void initRow (  )  [private]

void insertRow ( String  tagName  )  throws SQLException [private]

int parseInt ( String  value  )  throws SQLException [private]

long parseLong ( String  value  )  throws SQLException [private]

float parseFloat ( String  value  )  throws SQLException [private]

double parseDouble ( String  value  )  throws SQLException [private]

Date parseDate ( String  value  )  throws SQLException [private]

Time parseTime ( String  value  )  throws SQLException [private]

Timestamp parseTimestamp ( String  value  )  throws SQLException [private]

boolean parseBoolean ( String  value  )  [private]

BigDecimal parseBigDecimal ( String  value  )  throws SQLException [private]


Member Data Documentation

WebRowSet webRs [private]

final int READ_PROPERTIES = 1 [static, private]

final int READ_METADATA = 2 [static, private]

final int READ_DATA = 3 [static, private]

int state = 0 [private]

String currentTagName [private]

String currentValue [private]

int colIndex [private]

ArrayList<CachedRow> rows [private]

CachedRow currentRow [private]

int columnCount [private]

ArrayList<Object> columnData [private]

ArrayList<Object> updateData [private]

ArrayList<Integer> updateColIndex [private]

ArrayList<Integer> keyCols [private]

Map<String, Class<?> > map [private]

String type [private]

String className [private]