public class ResultSet extends Object implements Storable
Result
s which provides methods to access single
Result
s in the set, to retrieve the number of Result
s in the
set, to get a String
representation or an XML representation of all
the Result
s 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
Result s. |
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 Result
spublic ResultSet(Collection<? extends Result> results)
results
- a Collection
of Result
spublic ResultSet(StringBuffer representation) throws NonParsableException
Storable
.
Constructs a ResultSet
from its XML representation.representation
- the XML representation as StringBuffer
NonParsableException
- if the StringBuffer
representation
could
not be parsedpublic Result getResultAt(int index)
public Result[] getResults()
Result
s.Result
spublic int getNumberOfResults()
Result
spublic StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.protected void fromXML(StringBuffer representation) throws NonParsableException
representation
- the XML representation as StringBuffer
NonParsableException
- if the XML code could not be parsedpublic int findColumn(String columnName)
columnName
- the name of the column