|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--uk.org.ogsadai.common.ResultSetToWebRowSetXMLStream
Generates a WebRowSet XML representation of the results of an SQL query held in a java.sql.ResultSet object.
The following types are currently unsupported:
| Field Summary | |
static java.lang.String |
EMPTY_BLOB_DATA_TAG
|
static java.lang.String |
EMPTY_STRING_DATA_TAG
|
static java.lang.String |
NULL_DATA_TAG
|
| Constructor Summary | |
ResultSetToWebRowSetXMLStream(java.sql.ResultSet rs)
Method ResultSetToWebRowSetXMLStream. |
|
ResultSetToWebRowSetXMLStream(java.sql.ResultSet rs,
int noOfRowsToCache)
Method ResultSetToWebRowSetXMLStream. |
|
| Method Summary | |
CommonException |
getError()
Returns a CommonException if there has been an error in the next() method, null otherwise. |
boolean |
hasNext()
Indicates whether or not there are any more blocks of data to be read from the block reader. |
java.lang.Object |
next()
Gets the next block of data contained in the block reader. |
int |
read()
|
java.lang.String |
readBlock()
Method readBlock. |
java.lang.String |
readBlocks(int count)
Method readBlocks. |
java.lang.String |
readMetaData()
Method readMetaData. |
java.lang.String |
readProperties()
Method readProperties. |
| Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NULL_DATA_TAG
public static final java.lang.String EMPTY_STRING_DATA_TAG
public static final java.lang.String EMPTY_BLOB_DATA_TAG
| Constructor Detail |
public ResultSetToWebRowSetXMLStream(java.sql.ResultSet rs)
rs -
java.lang.IllegalArgumentException - if rs is null
public ResultSetToWebRowSetXMLStream(java.sql.ResultSet rs,
int noOfRowsToCache)
rs - noOfRowsToCache -
java.lang.IllegalArgumentException - if rs is null| Method Detail |
public java.lang.String readMetaData()
public java.lang.String readProperties()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public java.lang.String readBlock()
throws CommonException
CommonException
public java.lang.String readBlocks(int count)
throws java.io.IOException,
CommonException
count -
java.io.IOException
CommonExceptionpublic java.lang.Object next()
BlockReader
next in interface BlockReaderObjectpublic boolean hasNext()
BlockReader
hasNext in interface BlockReaderpublic CommonException getError()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||