Package ca.phon.query.script
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
ConstructorDescriptionQueryTask
(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.int
boolean
boolean
void
The abstract run method.void
setDebugRecord
(int debugRecord) void
setDebugSession
(boolean debugSession) void
setIncludeExcludedRecords
(boolean includeExcludedRecords) void
Methods 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:PhonTask
The abstract run method. This method must be implemented by all subclasses.- Specified by:
performTask
in classPhonTask
-
executeQuery
Execute the query and return the result set.- Returns:
- query results
- Throws:
PhonScriptException
-