|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--edu.ucsb.adl.middleware.rmi.ResultSetImpl
Bridge between the RMI interface to a result set and the result set itself.
$Log: ResultSetImpl.java,v $
Revision 1.3 2004/03/15 20:40:26 gjanee
Added method getQuery.
Revision 1.2 2003/06/10 16:03:58 gjanee
Query results are now Result objects, i.e., triplets
of standard metadata views.
Revision 1.1 2001/03/15 22:41:35 gjanee
Initial revision
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
ResultSetImpl(edu.ucsb.adl.middleware.ResultSet set)
Creates a ResultSetImpl. |
|
| 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. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ResultSetImpl(edu.ucsb.adl.middleware.ResultSet set)
throws java.rmi.RemoteException
ResultSetImpl.
set - The real result set.
java.rmi.RemoteException - If an RMI error occurs.| Method Detail |
public int getID()
getID in interface ResultSetpublic long getCreationTime()
getCreationTime in interface ResultSetSystem.currentTimeMillis.public java.lang.String getQuery()
getQuery in interface ResultSetpublic int getNumResults()
getNumResults in interface ResultSetpublic edu.ucsb.adl.middleware.Result getResult(int index)
getResult in interface ResultSetindex - The index of the result to return.
java.lang.ArrayIndexOutOfBoundsException - If index is out of bounds.
public edu.ucsb.adl.middleware.Result[] getResults(int from,
int to)
getResults in interface ResultSetfrom - 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.public boolean isComplete()
isComplete in interface ResultSettrue if the result set is complete.public long getCompletionTime()
getCompletionTime in interface ResultSetSystem.currentTimeMillis or a negative value if
the result set is incomplete.public int getTotalResultCount()
getTotalResultCount in interface ResultSetpublic java.lang.Exception getException()
getException in interface ResultSetnull if the query completed
successfully or the result set is incomplete.public void waitForCompletion()
waitForCompletion in interface ResultSetpublic void release()
release in interface ResultSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||