|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.parameters.QueryResultSet
public class QueryResultSet
A collection of QueryResults.
Note that this class is NOT
read-only after construction, so calling classes should beware of
tampering.
Constructor Summary | |
---|---|
QueryResultSet()
|
Method Summary | |
---|---|
void |
add(QueryResult result)
|
void |
add(QueryResultSet otherResults)
|
static QueryResultSet |
dotProduct(QueryResultSet first,
QueryResultSet second)
Create a new QueryResultSet that is a dot product of two other sets, i.e., all the results from the first are combined with all the results from the second, with ordering preserved. |
java.util.Iterator |
getQueryResults()
Get an Iterator of the QueryResults. |
QueryResult |
getResult()
Get the first result, for an undefined ordering. |
QueryResultSet |
makeCopy()
Make a shallow copy of the QueryResultSet. |
int |
numResults()
Get the number of results. |
void |
remove(QueryResult result)
Remove a QueryResult from the set. |
java.lang.StringBuffer |
render()
Render the whole QueryResultSet without references. |
java.lang.StringBuffer |
render(boolean references)
Render the whole QueryResultSet. |
static QueryResultSet |
union(QueryResultSet first,
QueryResultSet second)
Create a new QueryResultSet that is a union of two other sets. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryResultSet()
Method Detail |
---|
public void add(QueryResult result) throws Scheherexception
Scheherexception
public void add(QueryResultSet otherResults) throws Scheherexception
Scheherexception
public void remove(QueryResult result)
public java.util.Iterator getQueryResults()
public QueryResult getResult() throws Scheherexception
Scheherexception
public int numResults()
public java.lang.StringBuffer render() throws Scheherexception
Scheherexception
public java.lang.StringBuffer render(boolean references) throws Scheherexception
references
- Print reference tables.
Scheherexception
public static QueryResultSet dotProduct(QueryResultSet first, QueryResultSet second) throws Scheherexception
Scheherexception
public static QueryResultSet union(QueryResultSet first, QueryResultSet second) throws Scheherexception
Scheherexception
public QueryResultSet makeCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |