|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.datatools.sqltools.editor.core.result.ResultSupportRunnable
public abstract class ResultSupportRunnable
This is an utility class, that intended to be used by other parts of the system that want to utilize the result view to display their run information. Child class should override certain methods of this class. TODO add extension point for this class
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.jobs.Job |
---|
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING |
Constructor Summary | |
---|---|
ResultSupportRunnable(java.lang.String name,
org.eclipse.core.runtime.IProgressMonitor parentMonitor,
org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
|
Method Summary | |
---|---|
int |
getActionType()
Gets the action type for OperationCommand . |
abstract org.eclipse.debug.core.ILaunchConfiguration |
getConfiguration()
|
java.lang.String |
getConsumerName()
Gets the consumer name for OperationCommand . |
org.eclipse.datatools.sqltools.core.DatabaseIdentifier |
getDatabaseIdentifier()
|
OperationCommand |
getOperationCommand()
Creates the OperationCommand object which will be
used for results view display. |
int |
getOperationStatus()
|
OperationCommand |
getParentOperationCommand()
Returns the parent operation command |
void |
loopThroughResults(java.sql.Statement cstmt,
boolean moreResult)
loop through the results (update count and result set), push the results into the result instance. |
void |
run()
|
void |
setActionType(int type)
Sets the action type for OperationCommand . |
void |
setConsumerName(java.lang.String name)
Sets the consumer name for OperationCommand . |
void |
setNeedsInitConnection(boolean needInit)
|
void |
setParentOperCommand(OperationCommand operCommand)
|
void |
terminateExecution()
When the job is canceled from UI, synchorinize the statement status and the job status. |
Methods inherited from class org.eclipse.core.runtime.jobs.Job |
---|
addJobChangeListener, belongsTo, cancel, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule |
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob |
---|
compareTo |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public ResultSupportRunnable(java.lang.String name, org.eclipse.core.runtime.IProgressMonitor parentMonitor, org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
name
- Method Detail |
---|
public void setNeedsInitConnection(boolean needInit)
public void run()
run
in interface java.lang.Runnable
public OperationCommand getOperationCommand()
OperationCommand
object which will be
used for results view display.
public OperationCommand getParentOperationCommand()
public void loopThroughResults(java.sql.Statement cstmt, boolean moreResult) throws java.sql.SQLException
cstmt
- moreResult
-
java.sql.SQLException
public void terminateExecution()
public abstract org.eclipse.debug.core.ILaunchConfiguration getConfiguration()
public org.eclipse.datatools.sqltools.core.DatabaseIdentifier getDatabaseIdentifier()
public int getOperationStatus()
public void setParentOperCommand(OperationCommand operCommand)
public int getActionType()
OperationCommand
. The default
value is OperationCommand.ACTION_EXECUTE.
public void setActionType(int type)
OperationCommand
. The default
value is OperationCommand.ACTION_EXECUTE.
type
- OperationCommand
public java.lang.String getConsumerName()
OperationCommand
. The default
value is "SQL Editor".
public void setConsumerName(java.lang.String name)
OperationCommand
. The default
value is "SQL Editor".
type
- OperationCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |