|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.converters.resultset.StrategicResultSetHandler
|
+--uk.org.ogsadai.converters.resultset.webrowset.WebRowSetResultSetHandler
A ResultSetHandler that uses the
strategy design pattern and builds an XML WebRowSet
representation of a java.sql.ResultSet.
Key columns and maps are not supported at present.
| Field Summary | |
private java.lang.String |
COLEND_TAG
|
private java.lang.String |
COLSTART_TAG
|
private static java.lang.String |
COPYRIGHT_NOTICE
|
private java.lang.String |
ROWEND_TAG
|
private java.lang.String |
ROWSTART_TAG
|
| Fields inherited from class uk.org.ogsadai.converters.resultset.StrategicResultSetHandler |
|
| Constructor Summary | |
WebRowSetResultSetHandler(java.sql.ResultSet rs)
Constructs a new handler. |
|
| Method Summary | |
void |
columnEnd(java.lang.StringBuffer output)
Write any data corresponding to the end of a new column. |
void |
columnStart(java.lang.StringBuffer output)
Write any data corresponding to the start of a new column. |
void |
footer(java.lang.StringBuffer output)
Write any footer data. |
void |
header(java.lang.StringBuffer output,
java.sql.ResultSet rs)
Write any header data to the output stream. |
private java.lang.String |
metadata(java.sql.ResultSetMetaData metaData)
Writes the metadata element of a WebRowSet document. |
private java.lang.String |
properties(java.sql.ResultSet rs)
Writes the properties element of a WebRowSet document. |
void |
rowEnd(java.lang.StringBuffer output)
Write any data corresponding to the end of a row. |
void |
rowStart(java.lang.StringBuffer output)
Write any data corresponding to the start of a new row. |
| Methods inherited from class uk.org.ogsadai.converters.resultset.StrategicResultSetHandler |
field |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.org.ogsadai.converters.resultset.ResultSetHandler |
field |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private final java.lang.String ROWSTART_TAG
private final java.lang.String ROWEND_TAG
private final java.lang.String COLSTART_TAG
private final java.lang.String COLEND_TAG
| Constructor Detail |
public WebRowSetResultSetHandler(java.sql.ResultSet rs)
throws ResultSetHandlerException
rs - Result set to convert
ResultSetHandlerException - If a problem occurs when accessing the ResultSet.| Method Detail |
public void header(java.lang.StringBuffer output,
java.sql.ResultSet rs)
throws ResultSetHandlerException
ResultSetHandlerResultSetConverter before any other events.
header in interface ResultSetHandleroutput - Output string buffer to append data tors - ResultSet from which to extract header information.
ResultSetHandlerException - If a problem occurs when accessing the ResultSet.public void rowStart(java.lang.StringBuffer output)
ResultSetHandler
rowStart in interface ResultSetHandleroutput - Output string buffer to append data to.public void columnStart(java.lang.StringBuffer output)
ResultSetHandler
columnStart in interface ResultSetHandleroutput - Output string buffer to append data to.public void columnEnd(java.lang.StringBuffer output)
ResultSetHandler
columnEnd in interface ResultSetHandleroutput - Output string buffer to append data to.public void rowEnd(java.lang.StringBuffer output)
ResultSetHandler
rowEnd in interface ResultSetHandleroutput - Output string buffer to append data to.public void footer(java.lang.StringBuffer output)
ResultSetHandler
footer in interface ResultSetHandleroutput - Output string buffer to append data to.
private java.lang.String properties(java.sql.ResultSet rs)
throws ResultSetHandlerException
properties element of a WebRowSet document.
rs - Result set.
ResultSetHandlerException - If a problem occurs when accessing the ResultSet.
private java.lang.String metadata(java.sql.ResultSetMetaData metaData)
throws ResultSetHandlerException
metadata element of a WebRowSet document.
metaData - ResultSet meta data.
ResultSetHandlerException - If a problem occurs when accessing the ResultSet.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||