|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.seag.qm.FutureQueryResult
If the ResultTable is requested with this class, the method "getResultTable" is waiting till the query with the spezified key is ready This Class is needed for synchronizing the asynchron queries.
Constructor Summary | |
FutureQueryResult()
Creates new (empty) FutureQueryResult |
|
FutureQueryResult(long queryKey)
Creates new FutureQueryResult |
|
FutureQueryResult(SqlDaemon daemon)
Creates new FutureQueryResult |
|
FutureQueryResult(SqlDaemon daemon,
long queryKey)
Creates new FutureQueryResult |
Method Summary | |
void |
finalize()
Removing the listener, when the object is destroyed |
QueryError |
getQueryError()
Is waiting, till query error occurs |
ResultTable[] |
getResultTable()
Is Waiting, till the query is executed |
void |
queryErrorOccured(QueryEvent e)
Invoked when a QueryError occurs. |
void |
queryPerformed(QueryEvent e)
Invoked when a Query is ready. |
void |
reinit(long key)
For reuse |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FutureQueryResult(long queryKey) throws QmInstantiationException
queryKey
- Key of the query you are waiting for.QmInstantiationException
- if the SqlDaemon isn't
initialized yet.public FutureQueryResult(SqlDaemon daemon)
daemon
- SqlDaemon.public FutureQueryResult(SqlDaemon daemon, long queryKey)
daemon
- Reference of the SqlDaemonqueryKey
- Key of the query you are waiting for.public FutureQueryResult() throws QmInstantiationException
QmInstantiationException
- if the SqlDaemon can't
be initialized.Method Detail |
public void reinit(long key)
key
- QueryKey of the new Query you are waiting forpublic ResultTable[] getResultTable()
public QueryError getQueryError()
public void queryPerformed(QueryEvent e)
queryPerformed
in interface QueryEventListener
e
- ; QueryEvent: contains the QueryKeypublic void queryErrorOccured(QueryEvent e)
queryErrorOccured
in interface QueryEventListener
e
- QueryEvent: contiains the QueryKeypublic void finalize()
finalize
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |