|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.RecordListenerSupport
com.ricebridge.xmlman.ResultSetRecordListener
Implementation of RecordListener that stores data records as a ResultSet.
This class is used to implement the loadResultSet(*,RecordSpec)
methods in XmlManager.
It uses the XmlResultSet class to provide data using a ResultSet interface.
ResultSetRecordListener is designed to be subclassed. You can change the default implementation by calling the
setResultSetRecordListenerClass method of
XmlManagerStore, and providing a subclass of ResultSetRecordListener.
XmlManagerStore can be accessed using XmlManager.getXmlManagerStore().
The Source Code of this Java class is available under a BSD-style license.
| Field Summary | |
protected XmlResultSet |
iResultSet
XmlResultSet is an implementation of ResultSet. |
static String |
PROP_ResultSet_dataHasHeaders
First record specifies header names (name for XmlSpec.setProperty: ResultSet.dataHasHeaders). |
| Fields inherited from class com.ricebridge.xmlman.RecordListenerSupport |
iFieldNames |
| Constructor Summary | |
ResultSetRecordListener()
Constructor with no parameters required for creating new objects in XmlManagerStore.newResultSetRecordListener. |
|
| Method Summary | |
ResultSet |
getResultSet()
Get the data records as a ResultSet. |
protected BadRecord |
handleRecordImpl(String[] pRecord,
long pRecordNumber)
Store the data record String[]. |
protected void |
setFieldNamesImpl(String[] pFieldNames)
Set the field names of the XPath expressions. |
protected void |
setXmlSpecImpl(XmlSpec pXmlSpec)
Handle property settings for loading ResultSets. |
String |
toString()
Return a textual description suitable for debugging. |
| Methods inherited from class com.ricebridge.xmlman.RecordListenerSupport |
endProcess, endProcessImpl, handleRecord, setFieldNames, setXmlSpec, startProcess, startProcessImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String PROP_ResultSet_dataHasHeaders
XmlSpec.setProperty: ResultSet.dataHasHeaders).
protected XmlResultSet iResultSet
XmlResultSet is an implementation of ResultSet.
| Constructor Detail |
public ResultSetRecordListener()
XmlManagerStore.newResultSetRecordListener.
| Method Detail |
public ResultSet getResultSet()
ResultSet.
ResultSet instancepublic String toString()
protected void setXmlSpecImpl(XmlSpec pXmlSpec)
ResultSets.
You can change these using XmlSpec.
setXmlSpecImpl in class RecordListenerSupportpXmlSpec - XML specificationRecordListener.setXmlSpec(com.ricebridge.xmlman.XmlSpec),
PROP_ResultSet_dataHasHeadersprotected void setFieldNamesImpl(String[] pFieldNames)
These will be used as the table column headers.
setFieldNamesImpl in class RecordListenerSupportpFieldNames - data record field namesRecordListener.setFieldNames(java.lang.String[])
protected BadRecord handleRecordImpl(String[] pRecord,
long pRecordNumber)
String[].
handleRecordImpl in class RecordListenerSupportpRecord - record data as a String[]pRecordNumber - current count of recordsRecordListener.handleRecord(java.lang.String[], long)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||