|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RMI interface to a result set.
$Log: ResultSet.java,v $
Revision 1.3 2004/03/15 20:38:13 gjanee
Added method getQuery.
Revision 1.2 2003/06/10 16:01:35 gjanee
Query results are now Result objects, i.e., triplets
of standard metadata views.
Revision 1.1 2001/03/15 22:37:46 gjanee
Initial revision
| Method Summary | |
long |
getCompletionTime()
Returns the result set's completion time. |
long |
getCreationTime()
Returns the result set's creation time. |
java.lang.Exception |
getException()
Returns the exception that terminated the associated query. |
int |
getID()
Returns the result set's ID. |
int |
getNumResults()
Returns the current number of results in the result set. |
java.lang.String |
getQuery()
Returns the XML query associated with the result set. |
edu.ucsb.adl.middleware.Result |
getResult(int index)
Returns a result from the result set. |
edu.ucsb.adl.middleware.Result[] |
getResults(int from,
int to)
Returns a range of results from the result set. |
int |
getTotalResultCount()
Returns the total result count. |
boolean |
isComplete()
Tests if the result set is complete. |
void |
release()
Removes the result set from the system-wide registry. |
void |
waitForCompletion()
Returns when the result set is complete. |
| Method Detail |
public int getID()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an RMI error occurs.
public long getCreationTime()
throws java.rmi.RemoteException
System.currentTimeMillis.
java.rmi.RemoteException - If an RMI error occurs.
public java.lang.String getQuery()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an RMI error occurs.
public int getNumResults()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an RMI error occurs.
public edu.ucsb.adl.middleware.Result getResult(int index)
throws java.rmi.RemoteException
index - The index of the result to return.
java.lang.ArrayIndexOutOfBoundsException - If index is out of bounds.
java.rmi.RemoteException - If an RMI error occurs.
public edu.ucsb.adl.middleware.Result[] getResults(int from,
int to)
throws java.rmi.RemoteException
from - The starting index, inclusive.to - The ending index, exclusive.
java.lang.ArrayIndexOutOfBoundsException - If from or to are out of bounds or if
from is greater than to.
java.rmi.RemoteException - If an RMI error occurs.
public boolean isComplete()
throws java.rmi.RemoteException
true if the result set is complete.
java.rmi.RemoteException - If an RMI error occurs.
public long getCompletionTime()
throws java.rmi.RemoteException
System.currentTimeMillis or a negative value if
the result set is incomplete.
java.rmi.RemoteException - If an RMI error occurs.
public int getTotalResultCount()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an RMI error occurs.
public java.lang.Exception getException()
throws java.rmi.RemoteException
null if the query completed
successfully or the result set is incomplete.
java.rmi.RemoteException - If an RMI error occurs.
public void waitForCompletion()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an RMI error occurs.
public void release()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an RMI error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||