public class ResultSet extends Object implements Storable
Results which provides methods to access single
Results in the set, to retrieve the number of Results in the
set, to get a String representation or an XML representation of all
the Results in the set.| Modifier and Type | Field and Description |
|---|---|
protected AnnotatedEntityList<Result> |
results
The internally stores results.
|
| Constructor and Description |
|---|
ResultSet(Collection<? extends Result> results)
|
ResultSet(Result result)
|
ResultSet(Result[]... results)
|
ResultSet(StringBuffer representation)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
int |
findColumn(String columnName)
This method enables you to search for a column.
|
protected void |
fromXML(StringBuffer representation)
|
int |
getNumberOfResults()
|
Result |
getResultAt(int index)
|
Result |
getResultForName(String name)
|
Result[] |
getResults()
Returns all internal results as an array of
Results. |
String |
toString() |
StringBuffer |
toXML()
This method returns an XML representation as
StringBuffer of an
instance of the implementing class. |
protected AnnotatedEntityList<Result> results
public ResultSet(Result[]... results)
results - the two-dimensional array of Resultspublic ResultSet(Collection<? extends Result> results)
results - a Collection of Resultspublic ResultSet(StringBuffer representation) throws NonParsableException
Storable.
Constructs a ResultSet from its XML representation.representation - the XML representation as StringBufferNonParsableException - if the StringBuffer representation could
not be parsedpublic Result getResultAt(int index)
public Result[] getResults()
Results.Resultspublic int getNumberOfResults()
Resultspublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.protected void fromXML(StringBuffer representation) throws NonParsableException
representation - the XML representation as StringBufferNonParsableException - if the XML code could not be parsedpublic int findColumn(String columnName)
columnName - the name of the column