|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A listener for table-like query results. The results are returned row-by-row. The values of the rows (tuples) are returned one after the other through the method tupleValue(Value). So a query result like:
| A | B | C |
| X | Y | Z |
will result in the following calls to this listener:
startTableQueryResult()
startTuple()
tupleValue(A)
tupleValue(B)
tupleValue(C)
endTuple()
startTuple()
tupleValue(X)
tupleValue(Y)
tupleValue(Z)
endTuple()
endTableQueryResult()
Note1: only one of the startTableQueryResult() methods will be called.
Note2: in case of an error occuring during query evaluation, an error message
will be reported using the reportError() method.
| Method Summary | |
void |
endTableQueryResult()
Indicates the end of a table-like query result. |
void |
endTuple()
Indicates the end of a tuple/row. |
void |
error(QueryErrorType errType,
String msg)
Reports an error that has occurred during the query evaluation. |
void |
startTableQueryResult()
Indicates the start of a table-like query result. |
void |
startTableQueryResult(String[] columnHeaders)
Indicates the start of a table-like query result. |
void |
startTuple()
Indicates the start of a tuple/row. |
void |
tupleValue(Value value)
Delivers the next value in the current tuple/row. |
| Method Detail |
public void startTableQueryResult()
throws IOException
IOException
public void startTableQueryResult(String[] columnHeaders)
throws IOException
IOException
public void endTableQueryResult()
throws IOException
IOException
public void startTuple()
throws IOException
IOException
public void endTuple()
throws IOException
IOException
public void tupleValue(Value value)
throws IOException
value - The next value in the current tuple/row.
IOException
public void error(QueryErrorType errType,
String msg)
throws IOException
errType - The type of error.msg - A message describing the error.
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||