public abstract class OBDADataQueryAction<T> extends Object implements OBDAProgressListener
| Constructor and Description |
|---|
OBDADataQueryAction(String msg,
Component rootView) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionCanceled() |
abstract T |
executeQuery(OntopOWLStatement st,
String queryString)
This function must do the call to e.g.
|
abstract org.protege.editor.owl.OWLEditorKit |
getEditorKit()
Must be implemented by the subclass for getting the current reasoner
|
long |
getExecutionTime() |
abstract int |
getNumberOfRows() |
abstract void |
handleResult(T res)
This function displays or handles the result
|
abstract void |
handleSQLTranslation(String sqlQuery) |
boolean |
isCancelled()
Set to true if the user has requested the operation to be cancelled, e.g.
|
boolean |
isErrorShown()
Set to true if the user has been shown an error message of the exception leading to
unsuccessful result.
|
abstract boolean |
isRunning() |
void |
run(String query) |
public abstract T executeQuery(OntopOWLStatement st, String queryString) throws org.semanticweb.owlapi.model.OWLException
org.semanticweb.owlapi.model.OWLExceptionpublic abstract org.protege.editor.owl.OWLEditorKit getEditorKit()
public abstract void handleResult(T res) throws org.semanticweb.owlapi.model.OWLException
res - THe result object ot be handlesorg.semanticweb.owlapi.model.OWLExceptionpublic abstract void handleSQLTranslation(String sqlQuery)
public void run(String query)
public long getExecutionTime()
public abstract int getNumberOfRows()
public abstract boolean isRunning()
public void actionCanceled()
actionCanceled in interface OBDAProgressListenerpublic boolean isCancelled()
OBDAProgressListenerisCancelled in interface OBDAProgressListenerpublic boolean isErrorShown()
OBDAProgressListenerisErrorShown in interface OBDAProgressListenerCopyright © 2009–2020 KRDB Research Centre for Knowledge and Data, Free University of Bozen-Bolzano. All rights reserved.