Class QueryTask
java.lang.Object
ca.phon.worker.PhonTask
ca.phon.query.script.QueryTask
- All Implemented Interfaces:
Runnable
Run a query given a project, session and query script.
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.phon.worker.PhonTask
PhonTask.TaskStatus -
Field Summary
Fields inherited from class ca.phon.worker.PhonTask
err, PROGRESS_PROP, props, STATUS_PROP -
Constructor Summary
ConstructorsConstructorDescriptionQueryTask(Project project, Session session, QueryScript queryScript, int serial) QueryTask(Project project, Session session, Iterator<Integer> recordIterable, QueryScript queryScript, int serial) -
Method Summary
Modifier and TypeMethodDescriptionExecute the query and return the result set.intbooleanbooleanvoidThe abstract run method.voidsetDebugRecord(int debugRecord) voidsetDebugSession(boolean debugSession) voidsetIncludeExcludedRecords(boolean includeExcludedRecords) voidMethods inherited from class ca.phon.worker.PhonTask
addTaskListener, firePropertyChange, fireStatusChange, getException, getName, getProperty, getRunTime, getStartTime, getStatus, isShutdown, removeTaskListener, run, setName, setProperty, setStatus, shutdown
-
Constructor Details
-
QueryTask
-
QueryTask
public QueryTask(Project project, Session session, Iterator<Integer> recordIterable, QueryScript queryScript, int serial)
-
-
Method Details
-
getProject
-
getSession
-
getQueryScript
-
getResultSet
-
setResultSet
-
isIncludeExcludedRecords
public boolean isIncludeExcludedRecords() -
setIncludeExcludedRecords
public void setIncludeExcludedRecords(boolean includeExcludedRecords) -
getDebugRecord
public int getDebugRecord() -
setDebugRecord
public void setDebugRecord(int debugRecord) -
isDebugSession
public boolean isDebugSession() -
setDebugSession
public void setDebugSession(boolean debugSession) -
performTask
public void performTask()Description copied from class:PhonTaskThe abstract run method. This method must be implemented by all subclasses.- Specified by:
performTaskin classPhonTask
-
executeQuery
Execute the query and return the result set.- Returns:
- query results
- Throws:
PhonScriptException
-