edu.ucsb.nceas.morpho.query
Class HeadResultSet
edu.ucsb.nceas.morpho.query.ResultSet
|
+--edu.ucsb.nceas.morpho.query.HeadResultSet
- public class HeadResultSet
- extends ResultSet
A HeadResultSet encapsulates the list of results returned from either a
local query or a Metacat query, but only presents the most recent revision
of a document as part of the Table Model.
Constructor Summary |
HeadResultSet(Query query,
java.lang.String source,
java.io.InputStream resultsXMLStream,
ClientFramework cf)
Construct a HeadResultSet instance given a query object and a
InputStream that represents an XML encoding of the results. |
HeadResultSet(Query query,
java.lang.String source,
java.util.Vector vec,
ClientFramework cf)
Construct a HeadResultSet instance from a vector of vectors;
for use with LocalQuery |
Method Summary |
java.util.Vector |
getResultsVector()
get the resultsVector |
int |
getRowCount()
Return the number of records in this result set |
java.lang.Object |
getValueAt(int row,
int col)
Determine the value of a column by its row and column index |
void |
merge(ResultSet r2)
Merge a ResultSet onto this one using the docid as the join column |
void |
openResultRecord(int row)
Open a given row index of the result set using a delegated handler class |
Methods inherited from class edu.ucsb.nceas.morpho.query.ResultSet |
characters,
endDocument,
endElement,
endPrefixMapping,
getColumnClass,
getColumnCount,
getColumnName,
getFramework,
getQuery,
getRowHeight,
ignorableWhitespace,
openResultRecord,
processingInstruction,
setDocumentLocator,
setQuery,
setResultsVector,
skippedEntity,
startDocument,
startElement,
startPrefixMapping |
HeadResultSet
public HeadResultSet(Query query,
java.lang.String source,
java.io.InputStream resultsXMLStream,
ClientFramework cf)
- Construct a HeadResultSet instance given a query object and a
InputStream that represents an XML encoding of the results.
HeadResultSet
public HeadResultSet(Query query,
java.lang.String source,
java.util.Vector vec,
ClientFramework cf)
- Construct a HeadResultSet instance from a vector of vectors;
for use with LocalQuery
getRowCount
public int getRowCount()
- Return the number of records in this result set
- Overrides:
- getRowCount in class ResultSet
getResultsVector
public java.util.Vector getResultsVector()
- get the resultsVector
- Overrides:
- getResultsVector in class ResultSet
getValueAt
public java.lang.Object getValueAt(int row,
int col)
- Determine the value of a column by its row and column index
- Overrides:
- getValueAt in class ResultSet
openResultRecord
public void openResultRecord(int row)
- Open a given row index of the result set using a delegated handler class
- Overrides:
- openResultRecord in class ResultSet
merge
public void merge(ResultSet r2)
- Merge a ResultSet onto this one using the docid as the join column
- Overrides:
- merge in class ResultSet
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.